2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="src/version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
709 HAVE_FREEBSD_OS_FALSE
713 HAVE_OPENBSD_OS_FALSE
744 BUILD_INCLUDED_LIBINTL
751 INTL_LIBTOOL_SUFFIX_PREFIX
761 TRAY_MONITOR_CPPFLAGS
838 ac_subst_files='MCOMMON'
839 ac_precious_vars='build_alias
855 # Initialize some variables set by options.
857 ac_init_version=false
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
941 cache_file=config.cache ;;
943 -datadir | --datadir | --datadi | --datad)
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
955 -disable-* | --disable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 -enable-* | --enable-*)
975 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
978 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979 { (exit 1); exit 1; }; }
980 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
981 eval enable_$ac_feature=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid package name: $ac_package" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_package=`echo $ac_package| sed 's/-/_/g'`
1178 eval with_$ac_package=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid package name: $ac_package" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_package=`echo $ac_package | sed 's/-/_/g'`
1187 eval with_$ac_package=no ;;
1190 # Obsolete; use --with-x.
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) { echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209 { (exit 1); exit 1; }; }
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217 { (exit 1); exit 1; }; }
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 { echo "$as_me: error: missing argument to $ac_option" >&2
1235 { (exit 1); exit 1; }; }
1238 # Be sure to have absolute directory names.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1244 eval ac_val=\$$ac_var
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250 { (exit 1); exit 1; }; }
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 { echo "$as_me: error: Working directory cannot be determined" >&2
1281 { (exit 1); exit 1; }; }
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 { echo "$as_me: error: pwd does not report name of working directory" >&2
1284 { (exit 1); exit 1; }; }
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$0" ||
1292 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$0" : 'X\(//\)[^/]' \| \
1294 X"$0" : 'X\(//\)$' \| \
1295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324 { (exit 1); exit 1; }; }
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1329 { (exit 1); exit 1; }; }
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures this package to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1413 --x-includes=DIR X include files are in DIR
1414 --x-libraries=DIR X library files are in DIR
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 if test -n "$ac_init_help"; then
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --disable-nls do not use Native Language Support
1430 --disable-rpath do not hardcode runtime library paths
1431 --enable-gnome enable build of gnome-console GUI disabled
1432 --enable-bat enable build of bat Qt4 GUI disabled
1433 --enable-wx-console enable build of wxWidgets console disabled
1434 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1435 --enable-smartalloc enable smartalloc debugging support disabled
1436 --enable-static-tools enable static tape tools disabled
1437 --enable-static-fd enable static File daemon disabled
1438 --enable-static-sd enable static Storage daemon disabled
1439 --enable-static-dir enable static Director disabled
1440 --enable-static-cons enable static Console disabled
1441 --enable-client-only build client (File daemon) only disabled
1442 --enable-build-dird enable building of dird (Director) enabled
1443 --enable-build-stored enable building of stored (Storage daemon) enabled
1444 --disable-conio disable conio support enabled
1446 --enable-ipv6 enable ipv6 support enabled
1448 --disable-readline disable readline support disable
1450 --disable-largefile omit support for large files
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-gnu-ld assume the C compiler uses GNU ld default=no
1456 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1457 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1458 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1459 --without-libintl-prefix don't search for libintl in includedir and libdir
1460 --with-included-gettext use the GNU gettext library included here
1461 --with-readline[=DIR] specify readline library directory
1463 --with-python[=DIR] Include Python support. DIR is the Python base
1464 install directory, default is to search through
1465 a number of common places for the Python files.
1466 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1467 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1468 --with-working-dir=PATH specify path of Bacula working directory
1469 --with-scriptdir=PATH specify path of Bacula scripts directory
1470 --with-dump-email=EMAIL dump email address
1471 --with-job-email=EMAIL job output email address
1472 --with-smtp-host=HOST SMTP mail host address
1473 --with-pid-dir=PATH specify location of Bacula pid files
1474 --with-subsys-dir=PATH specify location of Bacula subsys file
1475 --with-baseport=PORT specify base port address for daemons
1476 --with-dir-password=PASSWORD specify Director's password
1477 --with-fd-password=PASSWORD specify Client's password
1478 --with-sd-password=PASSWORD specify Storage daemon's password
1479 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1480 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1481 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1482 --with-dir-user=USER specify user for Director daemon
1483 --with-dir-group=GROUP specify group for Director daemon
1484 --with-sd-user=USER specify user for Storage daemon
1485 --with-sd-group=GROUP specify group for Storage daemon
1486 --with-fd-user=USER specify user for File daemon
1487 --with-fd-group=GROUP specify group for File daemon
1488 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1489 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1490 base install directory, defaults to /usr/local/pgsql
1492 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1493 install directory, default is to search through
1494 a number of common places for the MySQL files.
1496 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1497 install directory, default is to search through
1498 a number of common places for the MySQL files.
1500 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1501 install directory, default is to search through
1502 a number of common places for the SQLite3 files.
1504 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1505 install directory, default is to search through
1506 a number of common places for the SQLite files.
1507 --with-x use the X Window System
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1519 WXCONFIG wx-config command. On some systems, you must set it to
1520 wx-config-2.6 to use wxWidgets 2.6.
1521 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1522 XMKMF Path to xmkmf, Makefile generator for X Window System
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" || continue
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1554 .) # We are building in place.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1588 generated by GNU Autoconf 2.60
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1597 cat >config.log <<_ACEOF
1598 This file contains any messages produced by compilers while
1599 running configure, to aid debugging if configure makes a mistake.
1601 It was created by $as_me, which was
1602 generated by GNU Autoconf 2.60. Invocation command line was
1614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1623 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1624 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1627 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1628 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1629 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir=.
1638 echo "PATH: $as_dir"
1654 # Keep a trace of the command line.
1655 # Strip out --no-create and --no-recursion so they do not pile up.
1656 # Strip out --silent because we don't want to record it for future runs.
1657 # Also quote any args containing shell meta-characters.
1658 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_must_keep_next=false
1668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1670 | -silent | --silent | --silen | --sile | --sil)
1673 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1679 if test $ac_must_keep_next = true; then
1680 ac_must_keep_next=false # Got value, back to normal.
1683 *=* | --config-cache | -C | -disable-* | --disable-* \
1684 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1685 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1686 | -with-* | --with-* | -without-* | --without-* | --x)
1687 case "$ac_configure_args0 " in
1688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 -* ) ac_must_keep_next=true ;;
1694 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1700 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702 # When interrupted or exit'd, cleanup temporary files, and complete
1703 # config.log. We remove comments because anyway the quotes in there
1704 # would cause problems or look ugly.
1705 # WARNING: Use '\'' to represent an apostrophe within the trap.
1706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707 trap 'exit_status=$?
1708 # Save into config.log some information that might help in debugging.
1713 ## ---------------- ##
1714 ## Cache variables. ##
1715 ## ---------------- ##
1718 # The following way of writing the cache mishandles newlines in values,
1720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721 eval ac_val=\$$ac_var
1725 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 _ | IFS | as_nl) ;; #(
1730 *) $as_unset $ac_var ;;
1735 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1736 *${as_nl}ac_space=\ *)
1738 "s/'\''/'\''\\\\'\'''\''/g;
1739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1750 ## ----------------- ##
1751 ## Output variables. ##
1752 ## ----------------- ##
1755 for ac_var in $ac_subst_vars
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1765 if test -n "$ac_subst_files"; then
1767 ## ------------------- ##
1768 ## File substitutions. ##
1769 ## ------------------- ##
1772 for ac_var in $ac_subst_files
1774 eval ac_val=\$$ac_var
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 echo "$ac_var='\''$ac_val'\''"
1783 if test -s confdefs.h; then
1793 test "$ac_signal" != 0 &&
1794 echo "$as_me: caught signal $ac_signal"
1795 echo "$as_me: exit $exit_status"
1797 rm -f core *.core core.conftest.* &&
1798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801 for ac_signal in 1 2 13 15; do
1802 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1807 rm -f -r conftest* confdefs.h
1809 # Predefined preprocessor variables.
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 # Let the site file select an alternate cache file if it wants to.
1837 # Prefer explicitly selected file to automatically selected ones.
1838 if test -n "$CONFIG_SITE"; then
1839 set x "$CONFIG_SITE"
1840 elif test "x$prefix" != xNONE; then
1841 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 set x "$ac_default_prefix/share/config.site" \
1844 "$ac_default_prefix/etc/config.site"
1849 if test -r "$ac_site_file"; then
1850 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 echo "$as_me: loading cache $cache_file" >&6;}
1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865 *) . "./$cache_file";;
1869 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 echo "$as_me: creating cache $cache_file" >&6;}
1874 # Check that the precious variables saved in the cache have kept the same
1876 ac_cache_corrupted=false
1877 for ac_var in $ac_precious_vars; do
1878 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1879 eval ac_new_set=\$ac_env_${ac_var}_set
1880 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1881 eval ac_new_val=\$ac_env_${ac_var}_value
1882 case $ac_old_set,$ac_new_set in
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1893 if test "x$ac_old_val" != "x$ac_new_val"; then
1894 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1895 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1896 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1897 echo "$as_me: former value: $ac_old_val" >&2;}
1898 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1899 echo "$as_me: current value: $ac_new_val" >&2;}
1900 ac_cache_corrupted=:
1903 # Pass precious variables to config.status.
1904 if test "$ac_new_set" = set; then
1906 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1907 *) ac_arg=$ac_var=$ac_new_val ;;
1909 case " $ac_configure_args " in
1910 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1911 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915 if $ac_cache_corrupted; then
1916 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1917 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1918 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1919 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1920 { (exit 1); exit 1; }; }
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1954 if test -f "$ac_dir/install-sh"; then
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 elif test -f "$ac_dir/install.sh"; then
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 elif test -f "$ac_dir/shtool"; then
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 if test -z "$ac_aux_dir"; then
1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1971 { (exit 1); exit 1; }; }
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1991 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992 set dummy $ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2010 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 TRUEPRG=$ac_cv_path_TRUEPRG
2022 if test -n "$TRUEPRG"; then
2023 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2024 echo "${ECHO_T}$TRUEPRG" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2031 test -n "$TRUEPRG" && break
2033 test -n "$TRUEPRG" || TRUEPRG=":"
2035 for ac_prog in false
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2041 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2056 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 FALSEPRG=$ac_cv_path_FALSEPRG
2068 if test -n "$FALSEPRG"; then
2069 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2070 echo "${ECHO_T}$FALSEPRG" >&6; }
2072 { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2077 test -n "$FALSEPRG" && break
2079 test -n "$FALSEPRG" || FALSEPRG=":"
2084 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2085 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2086 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2087 echo "configuring for bacula $VERSION ($DATE)"
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096 if test -n "$ac_tool_prefix"; then
2097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 { echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6; }
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2135 if test -z "$ac_cv_prog_CC"; then
2137 # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test -n "$ac_ct_CC"; then
2145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_ac_ct_CC="gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2173 if test "x$ac_ct_CC" = x; then
2176 case $cross_compiling:$ac_tool_warned in
2178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&5
2181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet. If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2184 ac_tool_warned=yes ;;
2192 if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_CC="${ac_tool_prefix}cc"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2233 if test -z "$CC"; then
2234 # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253 ac_prog_rejected=yes
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test $ac_prog_rejected = yes; then
2265 # We found a bogon in the path, so make sure we never use it.
2266 set dummy $ac_cv_prog_CC
2268 if test $# != 0; then
2269 # We chose a different compiler from the bogus one.
2270 # However, it has the same basename, so the bogon will be chosen
2271 # first if we set CC to just the basename; use the full file name.
2273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279 if test -n "$CC"; then
2280 { echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 for ac_prog in cl.exe
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 test -n "$CC" && break
2333 if test -z "$CC"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_CC="$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$ac_ct_CC" && break
2377 if test "x$ac_ct_CC" = x; then
2380 case $cross_compiling:$ac_tool_warned in
2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388 ac_tool_warned=yes ;;
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO: checking for C compiler version" >&5
2405 ac_compiler=`set X $ac_compile; echo $2`
2406 { (ac_try="$ac_compiler --version >&5"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compiler --version >&5") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (ac_try="$ac_compiler -v >&5"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compiler -v >&5") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (ac_try="$ac_compiler -V >&5"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compiler -V >&5") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2452 ac_clean_files_save=$ac_clean_files
2453 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2454 # Try to create an executable without -o first, disregard a.out.
2455 # It will help us diagnose broken compilers, and finding out an intuition
2457 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2458 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2459 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2461 # List of possible output files, starting from the most likely.
2462 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2463 # only as a last resort. b.out is created by i960 compilers.
2464 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2466 # The IRIX 6 linker writes into existing files which may not be
2467 # executable, retaining their permissions. Remove them first so a
2468 # subsequent execution test works.
2470 for ac_file in $ac_files
2473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2479 if { (ac_try="$ac_link_default"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_link_default") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2492 # so that the user can short-circuit this test for compilers unknown to
2494 for ac_file in $ac_files
2496 test -f "$ac_file" || continue
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2501 # We found the default executable, but exeext='' is most
2505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 # We set ac_cv_exeext here because the later test for it is not
2510 # safe: cross compilers may not add the suffix if given an `-o'
2511 # argument, so we may need to know it at that point already.
2512 # Even if this section looks crufty: it has the advantage of
2519 test "$ac_cv_exeext" = no && ac_cv_exeext=
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: C compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529 { (exit 77); exit 77; }; }
2532 ac_exeext=$ac_cv_exeext
2533 { echo "$as_me:$LINENO: result: $ac_file" >&5
2534 echo "${ECHO_T}$ac_file" >&6; }
2536 # Check that the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2539 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2540 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2541 # If not cross compiling, check that we can run a simple program.
2542 if test "$cross_compiling" != yes; then
2543 if { ac_try='./$ac_file'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 if test "$cross_compiling" = maybe; then
2558 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: cannot run C compiled programs.
2562 If you meant to cross compile, use \`--host'.
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2568 { echo "$as_me:$LINENO: result: yes" >&5
2569 echo "${ECHO_T}yes" >&6; }
2571 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2572 ac_clean_files=$ac_clean_files_save
2573 # Check that the compiler produces executables we can run. If not, either
2574 # the compiler is broken, or we cross compile.
2575 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2576 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2577 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2578 echo "${ECHO_T}$cross_compiling" >&6; }
2580 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2581 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2582 if { (ac_try="$ac_link"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_link") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2594 # work properly (i.e., refer to `conftest.exe'), while it won't with
2596 for ac_file in conftest.exe conftest conftest.*; do
2597 test -f "$ac_file" || continue
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2613 rm -f conftest$ac_cv_exeext
2614 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2620 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2622 if test "${ac_cv_objext+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.o conftest.obj
2641 if { (ac_try="$ac_compile"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; then
2651 for ac_file in conftest.o conftest.obj conftest.*; do
2652 test -f "$ac_file" || continue;
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2670 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2672 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2673 echo "${ECHO_T}$ac_cv_objext" >&6; }
2674 OBJEXT=$ac_cv_objext
2676 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2677 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2678 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_try") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2745 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2746 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2747 GCC=`test $ac_compiler_gnu = yes && echo yes`
2748 ac_test_CFLAGS=${CFLAGS+set}
2749 ac_save_CFLAGS=$CFLAGS
2750 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2751 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_cc_g+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_save_c_werror_flag=$ac_c_werror_flag
2756 ac_c_werror_flag=yes
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2789 { (case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_try") 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_try") 2>&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2829 rm -f conftest.$ac_objext
2830 if { (ac_try="$ac_compile"
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compile") 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_try") 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2900 { (case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_try") 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_try") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 ac_c_werror_flag=$ac_save_c_werror_flag
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2938 if test "$ac_test_CFLAGS" = set; then
2939 CFLAGS=$ac_save_CFLAGS
2940 elif test $ac_cv_prog_cc_g = yes; then
2941 if test "$GCC" = yes; then
2947 if test "$GCC" = yes; then
2953 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2954 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_cc_c89+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 ac_cv_prog_cc_c89=no
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 #include <sys/types.h>
2969 #include <sys/stat.h>
2970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2971 struct buf { int x; };
2972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2984 s = g (p, va_arg (v,int));
2989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2990 function prototypes and stuff, but not '\xHH' hex character constants.
2991 These don't provoke an error unfortunately, instead are silently treated
2992 as 'x'. The following induces an error, until -std is added to get
2993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2994 array size at least. It's necessary to write '\x00'==0 to get something
2995 that's true only with -std. */
2996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999 inside strings and character constants. */
3001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3003 int test (int i, double x);
3004 struct s1 {int (*f) (int a);};
3005 struct s2 {int (*f) (double a);};
3006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020 CC="$ac_save_CC $ac_arg"
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cc_c89=$ac_arg
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f core conftest.err conftest.$ac_objext
3064 test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 rm -f conftest.$ac_ext
3071 case "x$ac_cv_prog_cc_c89" in
3073 { echo "$as_me:$LINENO: result: none needed" >&5
3074 echo "${ECHO_T}none needed" >&6; } ;;
3076 { echo "$as_me:$LINENO: result: unsupported" >&5
3077 echo "${ECHO_T}unsupported" >&6; } ;;
3079 CC="$CC $ac_cv_prog_cc_c89"
3080 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3081 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 ac_cpp='$CXXCPP $CPPFLAGS'
3093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3096 if test -z "$CXX"; then
3097 if test -n "$CCC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_CXX+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$CXX"; then
3111 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$CXX"; then
3132 { echo "$as_me:$LINENO: result: $CXX" >&5
3133 echo "${ECHO_T}$CXX" >&6; }
3135 { echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6; }
3140 test -n "$CXX" && break
3143 if test -z "$CXX"; then
3145 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 if test -n "$ac_ct_CXX"; then
3155 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_ac_ct_CXX="$ac_prog"
3165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3175 if test -n "$ac_ct_CXX"; then
3176 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3177 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3179 { echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6; }
3184 test -n "$ac_ct_CXX" && break
3187 if test "x$ac_ct_CXX" = x; then
3190 case $cross_compiling:$ac_tool_warned in
3192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3193 whose name does not start with the host triplet. If you think this
3194 configuration is useful to you, please write to autoconf@gnu.org." >&5
3195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3196 whose name does not start with the host triplet. If you think this
3197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3198 ac_tool_warned=yes ;;
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3208 ac_compiler=`set X $ac_compile; echo $2`
3209 { (ac_try="$ac_compiler --version >&5"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler --version >&5") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (ac_try="$ac_compiler -v >&5"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compiler -v >&5") 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (ac_try="$ac_compiler -V >&5"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler -V >&5") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3240 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3241 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3242 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3263 rm -f conftest.$ac_objext
3264 if { (ac_try="$ac_compile"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3278 { (case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_try") 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_try") 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3309 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3311 GXX=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CXXFLAGS=${CXXFLAGS+set}
3313 ac_save_CXXFLAGS=$CXXFLAGS
3314 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3315 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3316 if test "${ac_cv_prog_cxx_g+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3320 ac_cxx_werror_flag=yes
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_prog_cxx_g=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3408 { (case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_try") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_try") 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3464 { (case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_try") 2>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_try") 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_prog_cxx_g=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3500 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3501 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3502 if test "$ac_test_CXXFLAGS" = set; then
3503 CXXFLAGS=$ac_save_CXXFLAGS
3504 elif test $ac_cv_prog_cxx_g = yes; then
3505 if test "$GXX" = yes; then
3511 if test "$GXX" = yes; then
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 if test "x$CC" != xcc; then
3524 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3525 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3527 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3528 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3530 set dummy $CC; ac_cc=`echo $2 |
3531 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3532 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3550 # Make sure it works both with $CC and with simple cc.
3551 # We do the test twice because some compilers refuse to overwrite an
3552 # existing .o file with -o, though they will create one.
3553 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3555 if { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_try") 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); };
3574 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3575 if test "x$CC" != xcc; then
3576 # Test first that cc exists at all.
3577 if { ac_try='cc -c conftest.$ac_ext >&5'
3578 { (case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_try") 2>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3589 if { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_try") 2>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_try") 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); };
3611 # cc exists but doesn't like -o.
3612 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3617 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3619 rm -f core conftest*
3622 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3623 { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3626 { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3629 cat >>confdefs.h <<\_ACEOF
3630 #define NO_MINUS_C_MINUS_O 1
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3646 if test -z "$CPP"; then
3647 if test "${ac_cv_prog_CPP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 # Double quotes because CPP needs to be expanded
3651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3654 for ac_c_preproc_warn_flag in '' yes
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null; then
3688 if test -s conftest.err; then
3689 ac_cpp_err=$ac_c_preproc_warn_flag
3690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3697 if test -z "$ac_cpp_err"; then
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 # Broken: fails on valid input.
3707 rm -f conftest.err conftest.$ac_ext
3709 # OK, works on sane cases. Now check whether nonexistent headers
3710 # can be detected and how.
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <ac_nonexistent.h>
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3741 if test -z "$ac_cpp_err"; then
3742 # Broken: success on invalid input.
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 # Passes both tests.
3753 rm -f conftest.err conftest.$ac_ext
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3770 { echo "$as_me:$LINENO: result: $CPP" >&5
3771 echo "${ECHO_T}$CPP" >&6; }
3773 for ac_c_preproc_warn_flag in '' yes
3775 # Use a header file that comes with gcc, so configuring glibc
3776 # with a fresh cross-compiler works.
3777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3778 # <limits.h> exists even on freestanding compilers.
3779 # On the NeXT, cc -E runs the code through the compiler's parser,
3780 # not just through cpp. "Syntax error" is here to catch this case.
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3788 # include <limits.h>
3790 # include <assert.h>
3794 if { (ac_try="$ac_cpp conftest.$ac_ext"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } >/dev/null; then
3807 if test -s conftest.err; then
3808 ac_cpp_err=$ac_c_preproc_warn_flag
3809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3816 if test -z "$ac_cpp_err"; then
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 # Broken: fails on valid input.
3826 rm -f conftest.err conftest.$ac_ext
3828 # OK, works on sane cases. Now check whether nonexistent headers
3829 # can be detected and how.
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } >/dev/null; then
3851 if test -s conftest.err; then
3852 ac_cpp_err=$ac_c_preproc_warn_flag
3853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860 if test -z "$ac_cpp_err"; then
3861 # Broken: success on invalid input.
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 # Passes both tests.
3872 rm -f conftest.err conftest.$ac_ext
3875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876 rm -f conftest.err conftest.$ac_ext
3877 if $ac_preproc_ok; then
3880 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&2;}
3884 { (exit 1); exit 1; }; }
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3895 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_GREP+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 # Extract the first word of "grep ggrep" to use in msg output
3900 if test -z "$GREP"; then
3901 set dummy grep ggrep; ac_prog_name=$2
3902 if test "${ac_cv_path_GREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in grep ggrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3916 # Check for GNU ac_path_GREP and select it if it is found.
3917 # Check for GNU $ac_path_GREP
3918 case `"$ac_path_GREP" --version 2>&1` in
3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3923 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 echo 'GREP' >> "conftest.nl"
3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 ac_count=`expr $ac_count + 1`
3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_GREP="$ac_path_GREP"
3936 ac_path_GREP_max=$ac_count
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3945 $ac_path_GREP_found && break 3
3955 GREP="$ac_cv_path_GREP"
3956 if test -z "$GREP"; then
3957 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3958 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3959 { (exit 1); exit 1; }; }
3963 ac_cv_path_GREP=$GREP
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3970 GREP="$ac_cv_path_GREP"
3973 { echo "$as_me:$LINENO: checking for egrep" >&5
3974 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_EGREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3979 then ac_cv_path_EGREP="$GREP -E"
3981 # Extract the first word of "egrep" to use in msg output
3982 if test -z "$EGREP"; then
3983 set dummy egrep; ac_prog_name=$2
3984 if test "${ac_cv_path_EGREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_EGREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in egrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3998 # Check for GNU ac_path_EGREP and select it if it is found.
3999 # Check for GNU $ac_path_EGREP
4000 case `"$ac_path_EGREP" --version 2>&1` in
4002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'EGREP' >> "conftest.nl"
4012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_EGREP="$ac_path_EGREP"
4018 ac_path_EGREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_EGREP_found && break 3
4037 EGREP="$ac_cv_path_EGREP"
4038 if test -z "$EGREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_EGREP=$EGREP
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4053 EGREP="$ac_cv_path_EGREP"
4056 if test $ac_cv_c_compiler_gnu = yes; then
4057 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4058 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4059 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_pattern="Autoconf.*'x'"
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4074 ac_cv_prog_gcc_traditional=yes
4076 ac_cv_prog_gcc_traditional=no
4081 if test $ac_cv_prog_gcc_traditional = no; then
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4093 ac_cv_prog_gcc_traditional=yes
4099 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4100 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4101 if test $ac_cv_prog_gcc_traditional = yes; then
4102 CC="$CC -traditional"
4106 BASECC=`basename $CC`
4108 if test "x$BASECC" = xgcc; then
4109 cat >>confdefs.h <<\_ACEOF
4115 # Extract the first word of "$CXX", so it can be a program name with args.
4116 set dummy $CXX; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_path_CXX+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4147 if test -n "$CXX"; then
4148 { echo "$as_me:$LINENO: result: $CXX" >&5
4149 echo "${ECHO_T}$CXX" >&6; }
4151 { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4156 if test ! -e $CXX; then
4157 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4158 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4159 { (exit 1); exit 1; }; }
4162 # Find a good install program. We prefer a C program (faster),
4163 # so one script is as good as another. But avoid the broken or
4164 # incompatible versions:
4165 # SysV /etc/install, /usr/sbin/install
4166 # SunOS /usr/etc/install
4167 # IRIX /sbin/install
4169 # AmigaOS /C/install, which installs bootblocks on floppy discs
4170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4173 # OS/2's system install, which has a completely different semantic
4174 # ./install, which can be erroneously created by make from ./install.sh.
4175 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4177 if test -z "$INSTALL"; then
4178 if test "${ac_cv_path_install+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 # Account for people who put trailing slashes in PATH elements.
4188 ./ | .// | /cC/* | \
4189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4193 # OSF1 and SCO ODT 3.0 have their own names for install.
4194 # Don't use installbsd from OSF since it installs stuff as root
4196 for ac_prog in ginstall scoinst install; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4199 if test $ac_prog = install &&
4200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4201 # AIX install. It has an incompatible calling convention.
4203 elif test $ac_prog = install &&
4204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4205 # program-specific install script used by HP pwplus--don't use.
4208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4221 if test "${ac_cv_path_install+set}" = set; then
4222 INSTALL=$ac_cv_path_install
4224 # As a last resort, use the slow shell script. Don't cache a
4225 # value for INSTALL within a source directory, because that will
4226 # break other packages using the cache if that directory is
4227 # removed, or if the value is a relative name.
4228 INSTALL=$ac_install_sh
4231 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4232 echo "${ECHO_T}$INSTALL" >&6; }
4234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4235 # It thinks the first close brace ends the variable substitution.
4236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4242 if test -n "$ac_tool_prefix"; then
4243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_RANLIB+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$RANLIB"; then
4251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 RANLIB=$ac_cv_prog_RANLIB
4271 if test -n "$RANLIB"; then
4272 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4273 echo "${ECHO_T}$RANLIB" >&6; }
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4281 if test -z "$ac_cv_prog_RANLIB"; then
4282 ac_ct_RANLIB=$RANLIB
4283 # Extract the first word of "ranlib", so it can be a program name with args.
4284 set dummy ranlib; ac_word=$2
4285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$ac_ct_RANLIB"; then
4291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_ac_ct_RANLIB="ranlib"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4311 if test -n "$ac_ct_RANLIB"; then
4312 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4313 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4315 { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4319 if test "x$ac_ct_RANLIB" = x; then
4322 case $cross_compiling:$ac_tool_warned in
4324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4325 whose name does not start with the host triplet. If you think this
4326 configuration is useful to you, please write to autoconf@gnu.org." >&5
4327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4328 whose name does not start with the host triplet. If you think this
4329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4330 ac_tool_warned=yes ;;
4332 RANLIB=$ac_ct_RANLIB
4335 RANLIB="$ac_cv_prog_RANLIB"
4338 # Extract the first word of "mv", so it can be a program name with args.
4339 set dummy mv; ac_word=$2
4340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4342 if test "${ac_cv_path_MV+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4370 if test -n "$MV"; then
4371 { echo "$as_me:$LINENO: result: $MV" >&5
4372 echo "${ECHO_T}$MV" >&6; }
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 # Extract the first word of "rm", so it can be a program name with args.
4380 set dummy rm; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_path_RM+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4411 if test -n "$RM"; then
4412 { echo "$as_me:$LINENO: result: $RM" >&5
4413 echo "${ECHO_T}$RM" >&6; }
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 # Extract the first word of "cp", so it can be a program name with args.
4421 set dummy cp; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_path_CP+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4452 if test -n "$CP"; then
4453 { echo "$as_me:$LINENO: result: $CP" >&5
4454 echo "${ECHO_T}$CP" >&6; }
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 # Extract the first word of "sed", so it can be a program name with args.
4462 set dummy sed; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_path_SED+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4493 if test -n "$SED"; then
4494 { echo "$as_me:$LINENO: result: $SED" >&5
4495 echo "${ECHO_T}$SED" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4502 # Extract the first word of "echo", so it can be a program name with args.
4503 set dummy echo; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_path_ECHO+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4533 ECHO=$ac_cv_path_ECHO
4534 if test -n "$ECHO"; then
4535 { echo "$as_me:$LINENO: result: $ECHO" >&5
4536 echo "${ECHO_T}$ECHO" >&6; }
4538 { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4543 # Extract the first word of "cmp", so it can be a program name with args.
4544 set dummy cmp; ac_word=$2
4545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4547 if test "${ac_cv_path_CMP+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4575 if test -n "$CMP"; then
4576 { echo "$as_me:$LINENO: result: $CMP" >&5
4577 echo "${ECHO_T}$CMP" >&6; }
4579 { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4584 # Extract the first word of "tbl", so it can be a program name with args.
4585 set dummy tbl; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_path_TBL+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4616 if test -n "$TBL"; then
4617 { echo "$as_me:$LINENO: result: $TBL" >&5
4618 echo "${ECHO_T}$TBL" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 # Extract the first word of "ar", so it can be a program name with args.
4626 set dummy ar; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_path_AR+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4657 if test -n "$AR"; then
4658 { echo "$as_me:$LINENO: result: $AR" >&5
4659 echo "${ECHO_T}$AR" >&6; }
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4666 # Extract the first word of "openssl", so it can be a program name with args.
4667 set dummy openssl; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_path_OPENSSL+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4697 OPENSSL=$ac_cv_path_OPENSSL
4698 if test -n "$OPENSSL"; then
4699 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4700 echo "${ECHO_T}$OPENSSL" >&6; }
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4707 # Extract the first word of "mtx", so it can be a program name with args.
4708 set dummy mtx; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_path_MTX+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4739 if test -n "$MTX"; then
4740 { echo "$as_me:$LINENO: result: $MTX" >&5
4741 echo "${ECHO_T}$MTX" >&6; }
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4748 # Extract the first word of "dd", so it can be a program name with args.
4749 set dummy dd; ac_word=$2
4750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752 if test "${ac_cv_path_DD+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4780 if test -n "$DD"; then
4781 { echo "$as_me:$LINENO: result: $DD" >&5
4782 echo "${ECHO_T}$DD" >&6; }
4784 { echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6; }
4789 # Extract the first word of "mkisofs", so it can be a program name with args.
4790 set dummy mkisofs; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_path_MKISOFS+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4820 MKISOFS=$ac_cv_path_MKISOFS
4821 if test -n "$MKISOFS"; then
4822 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4823 echo "${ECHO_T}$MKISOFS" >&6; }
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4830 # Extract the first word of "python", so it can be a program name with args.
4831 set dummy python; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_PYTHON+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4861 PYTHON=$ac_cv_path_PYTHON
4862 if test -n "$PYTHON"; then
4863 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4864 echo "${ECHO_T}$PYTHON" >&6; }
4866 { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4871 # Extract the first word of "growisofs", so it can be a program name with args.
4872 set dummy growisofs; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4902 GROWISOFS=$ac_cv_path_GROWISOFS
4903 if test -n "$GROWISOFS"; then
4904 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4905 echo "${ECHO_T}$GROWISOFS" >&6; }
4907 { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4912 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4913 set dummy dvd+rw-mediainfo; ac_word=$2
4914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4916 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 case $DVDRWMEDIAINFO in
4921 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4943 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4944 if test -n "$DVDRWMEDIAINFO"; then
4945 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4946 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4948 { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4953 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4954 set dummy dvd+rw-format; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 case $DVDRWFORMAT in
4962 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4984 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4985 if test -n "$DVDRWFORMAT"; then
4986 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4987 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4994 # Extract the first word of "pkg-config", so it can be a program name with args.
4995 set dummy pkg-config; ac_word=$2
4996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4998 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5025 PKGCONFIG=$ac_cv_path_PKGCONFIG
5026 if test -n "$PKGCONFIG"; then
5027 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5028 echo "${ECHO_T}$PKGCONFIG" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test "x$WXCONFIG" = x; then
5039 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5040 set dummy ${WXCONFIG}; ac_word=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5070 WXCONFIG=$ac_cv_path_WXCONFIG
5071 if test -n "$WXCONFIG"; then
5072 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5073 echo "${ECHO_T}$WXCONFIG" >&6; }
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5081 # Extract the first word of "cdrecord", so it can be a program name with args.
5082 set dummy cdrecord; ac_word=$2
5083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5085 if test "${ac_cv_path_CDRECORD+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5112 CDRECORD=$ac_cv_path_CDRECORD
5113 if test -n "$CDRECORD"; then
5114 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5115 echo "${ECHO_T}$CDRECORD" >&6; }
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5122 # Extract the first word of "pidof", so it can be a program name with args.
5123 set dummy pidof; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_path_PIDOF+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5153 PIDOF=$ac_cv_path_PIDOF
5154 if test -n "$PIDOF"; then
5155 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5156 echo "${ECHO_T}$PIDOF" >&6; }
5158 { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5163 for ac_prog in gawk mawk nawk awk
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_prog_AWK+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test -n "$AWK"; then
5173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_AWK="$ac_prog"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 if test -n "$AWK"; then
5194 { echo "$as_me:$LINENO: result: $AWK" >&5
5195 echo "${ECHO_T}$AWK" >&6; }
5197 { echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6; }
5202 test -n "$AWK" && break
5205 # Some AWK programs fail, so test it and warn the user
5206 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5207 { if ((prog == $2) || (("(" prog ")") == $2) ||
5208 (("" prog "") == $2) ||
5209 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5211 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5212 The regex engine of $AWK is too broken to be used you
5213 might want to install GNU AWK.
5214 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5215 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5216 The regex engine of $AWK is too broken to be used you
5217 might want to install GNU AWK.
5218 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5219 { (exit 1); exit 1; }; }
5222 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5223 set dummy $THE_AWK; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_AWK+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5254 if test -n "$AWK"; then
5255 { echo "$as_me:$LINENO: result: $AWK" >&5
5256 echo "${ECHO_T}$AWK" >&6; }
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5264 test -n "$ARFLAG" || ARFLAGS="cr"
5275 # Make sure we can run config.sub.
5276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5277 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5279 { (exit 1); exit 1; }; }
5281 { echo "$as_me:$LINENO: checking build system type" >&5
5282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5283 if test "${ac_cv_build+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 ac_build_alias=$build_alias
5287 test "x$ac_build_alias" = x &&
5288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5289 test "x$ac_build_alias" = x &&
5290 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5292 { (exit 1); exit 1; }; }
5293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5294 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5296 { (exit 1); exit 1; }; }
5299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5300 echo "${ECHO_T}$ac_cv_build" >&6; }
5301 case $ac_cv_build in
5303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5304 echo "$as_me: error: invalid value of canonical build" >&2;}
5305 { (exit 1); exit 1; }; };;
5308 ac_save_IFS=$IFS; IFS='-'
5314 # Remember, the first character of IFS is used to create $*,
5315 # except with old shells:
5318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5322 { echo "$as_me:$LINENO: checking host system type" >&5
5323 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5324 if test "${ac_cv_host+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 if test "x$host_alias" = x; then
5328 ac_cv_host=$ac_cv_build
5330 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5331 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5332 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5333 { (exit 1); exit 1; }; }
5337 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5338 echo "${ECHO_T}$ac_cv_host" >&6; }
5341 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5342 echo "$as_me: error: invalid value of canonical host" >&2;}
5343 { (exit 1); exit 1; }; };;
5346 ac_save_IFS=$IFS; IFS='-'
5352 # Remember, the first character of IFS is used to create $*,
5353 # except with old shells:
5356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5360 *cygwin* ) CYGWIN=yes;;
5364 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5370 HAVE_SUN_OS_FALSE='#'
5372 HAVE_SUN_OS_TRUE='#'
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_SUN_OS 1
5384 HAVE_SUN_OS_FALSE='#'
5386 HAVE_SUN_OS_TRUE='#'
5391 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5397 HAVE_OSF1_OS_FALSE='#'
5399 HAVE_OSF1_OS_TRUE='#'
5402 cat >>confdefs.h <<\_ACEOF
5403 #define HAVE_OSF1_OS 1
5411 HAVE_OSF1_OS_FALSE='#'
5413 HAVE_OSF1_OS_TRUE='#'
5418 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5424 HAVE_AIX_OS_FALSE='#'
5426 HAVE_AIX_OS_TRUE='#'
5429 cat >>confdefs.h <<\_ACEOF
5430 #define HAVE_AIX_OS 1
5438 HAVE_AIX_OS_FALSE='#'
5440 HAVE_AIX_OS_TRUE='#'
5445 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5451 HAVE_HPUX_OS_FALSE='#'
5453 HAVE_HPUX_OS_TRUE='#'
5456 cat >>confdefs.h <<\_ACEOF
5457 #define HAVE_HPUX_OS 1
5465 HAVE_HPUX_OS_FALSE='#'
5467 HAVE_HPUX_OS_TRUE='#'
5472 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5478 HAVE_LINUX_OS_FALSE='#'
5480 HAVE_LINUX_OS_TRUE='#'
5481 HAVE_LINUX_OS_FALSE=
5483 cat >>confdefs.h <<\_ACEOF
5484 #define HAVE_LINUX_OS 1
5492 HAVE_LINUX_OS_FALSE='#'
5494 HAVE_LINUX_OS_TRUE='#'
5495 HAVE_LINUX_OS_FALSE=
5499 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5504 HAVE_FREEBSD_OS_TRUE=
5505 HAVE_FREEBSD_OS_FALSE='#'
5507 HAVE_FREEBSD_OS_TRUE='#'
5508 HAVE_FREEBSD_OS_FALSE=
5510 cat >>confdefs.h <<\_ACEOF
5511 #define HAVE_FREEBSD_OS 1
5518 HAVE_FREEBSD_OS_TRUE=
5519 HAVE_FREEBSD_OS_FALSE='#'
5521 HAVE_FREEBSD_OS_TRUE='#'
5522 HAVE_FREEBSD_OS_FALSE=
5526 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5531 HAVE_NETBSD_OS_TRUE=
5532 HAVE_NETBSD_OS_FALSE='#'
5534 HAVE_NETBSD_OS_TRUE='#'
5535 HAVE_NETBSD_OS_FALSE=
5537 cat >>confdefs.h <<\_ACEOF
5538 #define HAVE_NETBSD_OS 1
5545 HAVE_NETBSD_OS_TRUE=
5546 HAVE_NETBSD_OS_FALSE='#'
5548 HAVE_NETBSD_OS_TRUE='#'
5549 HAVE_NETBSD_OS_FALSE=
5553 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5558 HAVE_OPENBSD_OS_TRUE=
5559 HAVE_OPENBSD_OS_FALSE='#'
5561 HAVE_OPENBSD_OS_TRUE='#'
5562 HAVE_OPENBSD_OS_FALSE=
5564 cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_OPENBSD_OS 1
5572 HAVE_OPENBSD_OS_TRUE=
5573 HAVE_OPENBSD_OS_FALSE='#'
5575 HAVE_OPENBSD_OS_TRUE='#'
5576 HAVE_OPENBSD_OS_FALSE=
5580 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5586 HAVE_BSDI_OS_FALSE='#'
5588 HAVE_BSDI_OS_TRUE='#'
5591 cat >>confdefs.h <<\_ACEOF
5592 #define HAVE_BSDI_OS 1
5600 HAVE_BSDI_OS_FALSE='#'
5602 HAVE_BSDI_OS_TRUE='#'
5607 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5613 HAVE_SGI_OS_FALSE='#'
5615 HAVE_SGI_OS_TRUE='#'
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_SGI_OS 1
5627 HAVE_SGI_OS_FALSE='#'
5629 HAVE_SGI_OS_TRUE='#'
5634 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5640 HAVE_IRIX_OS_FALSE='#'
5642 HAVE_IRIX_OS_TRUE='#'
5645 cat >>confdefs.h <<\_ACEOF
5646 #define HAVE_IRIX_OS 1
5654 HAVE_IRIX_OS_FALSE='#'
5656 HAVE_IRIX_OS_TRUE='#'
5661 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5666 HAVE_DARWIN_OS_TRUE=
5667 HAVE_DARWIN_OS_FALSE='#'
5669 HAVE_DARWIN_OS_TRUE='#'
5670 HAVE_DARWIN_OS_FALSE=
5672 cat >>confdefs.h <<\_ACEOF
5673 #define HAVE_DARWIN_OS 1
5680 HAVE_DARWIN_OS_TRUE=
5681 HAVE_DARWIN_OS_FALSE='#'
5683 HAVE_DARWIN_OS_TRUE='#'
5684 HAVE_DARWIN_OS_FALSE=
5689 # -----------------------------------------------------------
5690 # ----------------------------------------------------------
5691 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5692 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5693 if test "x$DISTNAME" != "x"
5695 echo "distname set to $DISTNAME"
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5699 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5702 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5705 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5708 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5711 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5714 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5717 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5720 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5723 elif test -f /etc/SuSE-release
5726 elif test -d /etc/SuSEconfig
5729 elif test -f /etc/mandrake-release
5732 elif test -f /etc/whitebox-release
5735 elif test -f /etc/redhat-release
5738 elif test -f /etc/gentoo-release
5741 elif test -f /etc/debian_version
5744 elif test -f /etc/slackware-version
5747 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5750 elif test -f /etc/engarde-version
5753 elif test "$CYGWIN" = yes
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_CYGWIN 1
5763 { echo "$as_me:$LINENO: result: done" >&5
5764 echo "${ECHO_T}done" >&6; }
5767 # --------------------------------------------------
5768 # Suppport for gettext (translations)
5769 # By default, $datadir is ${prefix}/share
5770 # --------------------------------------------------
5771 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5772 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5773 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 cat >conftest.make <<\_ACEOF
5780 @echo '@@@%%%=$(MAKE)=@@@%%%'
5782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5785 eval ac_cv_prog_make_${ac_make}_set=yes;;
5787 eval ac_cv_prog_make_${ac_make}_set=no;;
5791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792 { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5796 { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798 SET_MAKE="MAKE=${MAKE-make}"
5804 if test -n "$ac_aux_dir"; then
5805 case "$ac_aux_dir" in
5806 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5807 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5810 if test -z "$MKINSTALLDIRS"; then
5811 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5816 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5817 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5818 # Check whether --enable-nls was given.
5819 if test "${enable_nls+set}" = set; then
5820 enableval=$enable_nls; USE_NLS=$enableval
5825 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5826 echo "${ECHO_T}$USE_NLS" >&6; }
5833 # Prepare PATH_SEPARATOR.
5834 # The user is always right.
5835 if test "${PATH_SEPARATOR+set}" != set; then
5836 echo "#! /bin/sh" >conf$$.sh
5837 echo "exit 0" >>conf$$.sh
5839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5847 # Find out how to test for executable files. Don't use a zero-byte file,
5848 # as systems may use methods other than mode bits to determine executability.
5849 cat >conf$$.file <<_ASEOF
5853 chmod +x conf$$.file
5854 if test -x conf$$.file >/dev/null 2>&1; then
5855 ac_executable_p="test -x"
5857 ac_executable_p="test -f"
5861 # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_MSGFMT+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5874 for ac_dir in $PATH; do
5876 test -z "$ac_dir" && ac_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5879 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5880 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5881 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5882 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5889 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5893 MSGFMT="$ac_cv_path_MSGFMT"
5894 if test "$MSGFMT" != ":"; then
5895 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5896 echo "${ECHO_T}$MSGFMT" >&6; }
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5902 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5903 set dummy gmsgfmt; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5933 GMSGFMT=$ac_cv_path_GMSGFMT
5934 if test -n "$GMSGFMT"; then
5935 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5936 echo "${ECHO_T}$GMSGFMT" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5945 # Prepare PATH_SEPARATOR.
5946 # The user is always right.
5947 if test "${PATH_SEPARATOR+set}" != set; then
5948 echo "#! /bin/sh" >conf$$.sh
5949 echo "exit 0" >>conf$$.sh
5951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5959 # Find out how to test for executable files. Don't use a zero-byte file,
5960 # as systems may use methods other than mode bits to determine executability.
5961 cat >conf$$.file <<_ASEOF
5965 chmod +x conf$$.file
5966 if test -x conf$$.file >/dev/null 2>&1; then
5967 ac_executable_p="test -x"
5969 ac_executable_p="test -f"
5973 # Extract the first word of "xgettext", so it can be a program name with args.
5974 set dummy xgettext; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5986 for ac_dir in $PATH; do
5988 test -z "$ac_dir" && ac_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5991 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5992 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5993 (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
5994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6001 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6005 XGETTEXT="$ac_cv_path_XGETTEXT"
6006 if test "$XGETTEXT" != ":"; then
6007 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6008 echo "${ECHO_T}$XGETTEXT" >&6; }
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6017 # Prepare PATH_SEPARATOR.
6018 # The user is always right.
6019 if test "${PATH_SEPARATOR+set}" != set; then
6020 echo "#! /bin/sh" >conf$$.sh
6021 echo "exit 0" >>conf$$.sh
6023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6031 # Find out how to test for executable files. Don't use a zero-byte file,
6032 # as systems may use methods other than mode bits to determine executability.
6033 cat >conf$$.file <<_ASEOF
6037 chmod +x conf$$.file
6038 if test -x conf$$.file >/dev/null 2>&1; then
6039 ac_executable_p="test -x"
6041 ac_executable_p="test -f"
6045 # Extract the first word of "msgmerge", so it can be a program name with args.
6046 set dummy msgmerge; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6057 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6058 for ac_dir in $PATH; do
6060 test -z "$ac_dir" && ac_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6063 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6064 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6065 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6072 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6076 MSGMERGE="$ac_cv_path_MSGMERGE"
6077 if test "$MSGMERGE" != ":"; then
6078 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6079 echo "${ECHO_T}$MSGMERGE" >&6; }
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6086 if test "$GMSGFMT" != ":"; then
6087 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6088 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6091 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6092 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6093 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6098 if test "$XGETTEXT" != ":"; then
6099 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6100 (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
6103 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6104 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6110 ac_config_commands="$ac_config_commands default-1"
6114 if test "X$prefix" = "XNONE"; then
6115 acl_final_prefix="$ac_default_prefix"
6117 acl_final_prefix="$prefix"
6119 if test "X$exec_prefix" = "XNONE"; then
6120 acl_final_exec_prefix='${prefix}'
6122 acl_final_exec_prefix="$exec_prefix"
6124 acl_save_prefix="$prefix"
6125 prefix="$acl_final_prefix"
6126 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6127 prefix="$acl_save_prefix"
6130 # Check whether --with-gnu-ld was given.
6131 if test "${with_gnu_ld+set}" = set; then
6132 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6137 # Prepare PATH_SEPARATOR.
6138 # The user is always right.
6139 if test "${PATH_SEPARATOR+set}" != set; then
6140 echo "#! /bin/sh" >conf$$.sh
6141 echo "exit 0" >>conf$$.sh
6143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6151 if test "$GCC" = yes; then
6152 # Check if gcc -print-prog-name=ld gives a path.
6153 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6157 # gcc leaves a trailing carriage return which upsets mingw
6158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6163 # Accept absolute paths.
6164 [\\/]* | [A-Za-z]:[\\/]*)
6165 re_direlt='/[^/][^/]*/\.\./'
6166 # Canonicalize the path of ld
6167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6171 test -z "$LD" && LD="$ac_prog"
6174 # If it fails, then pretend we aren't using GCC.
6178 # If it is relative, then search for the first ld in PATH.
6182 elif test "$with_gnu_ld" = yes; then
6183 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6186 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6189 if test "${acl_cv_path_LD+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 if test -z "$LD"; then
6193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6194 for ac_dir in $PATH; do
6195 test -z "$ac_dir" && ac_dir=.
6196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6197 acl_cv_path_LD="$ac_dir/$ac_prog"
6198 # Check to see if the program is GNU ld. I'd rather use --version,
6199 # but apparently some GNU ld's only accept -v.
6200 # Break only if it was the GNU/non-GNU ld that we prefer.
6201 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6202 *GNU* | *'with BFD'*)
6203 test "$with_gnu_ld" != no && break ;;
6205 test "$with_gnu_ld" != yes && break ;;
6211 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6215 LD="$acl_cv_path_LD"
6216 if test -n "$LD"; then
6217 { echo "$as_me:$LINENO: result: $LD" >&5
6218 echo "${ECHO_T}$LD" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6225 { (exit 1); exit 1; }; }
6226 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6228 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6232 case `$LD -v 2>&1 </dev/null` in
6233 *GNU* | *'with BFD'*)
6234 acl_cv_prog_gnu_ld=yes ;;
6236 acl_cv_prog_gnu_ld=no ;;
6239 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6240 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6241 with_gnu_ld=$acl_cv_prog_gnu_ld
6246 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6247 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6248 if test "${acl_cv_rpath+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6253 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6259 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6260 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6262 libext="$acl_cv_libext"
6263 shlibext="$acl_cv_shlibext"
6264 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6265 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6266 hardcode_direct="$acl_cv_hardcode_direct"
6267 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6268 # Check whether --enable-rpath was given.
6269 if test "${enable_rpath+set}" = set; then
6270 enableval=$enable_rpath; :
6284 acl_save_prefix="$prefix"
6285 prefix="$acl_final_prefix"
6286 acl_save_exec_prefix="$exec_prefix"
6287 exec_prefix="$acl_final_exec_prefix"
6289 eval additional_includedir=\"$includedir\"
6290 eval additional_libdir=\"$libdir\"
6292 exec_prefix="$acl_save_exec_prefix"
6293 prefix="$acl_save_prefix"
6296 # Check whether --with-libiconv-prefix was given.
6297 if test "${with_libiconv_prefix+set}" = set; then
6298 withval=$with_libiconv_prefix;
6299 if test "X$withval" = "Xno"; then
6302 if test "X$withval" = "X"; then
6304 acl_save_prefix="$prefix"
6305 prefix="$acl_final_prefix"
6306 acl_save_exec_prefix="$exec_prefix"
6307 exec_prefix="$acl_final_exec_prefix"
6309 eval additional_includedir=\"$includedir\"
6310 eval additional_libdir=\"$libdir\"
6312 exec_prefix="$acl_save_exec_prefix"
6313 prefix="$acl_save_prefix"
6316 additional_includedir="$withval/include"
6317 additional_libdir="$withval/lib"
6328 names_already_handled=
6329 names_next_round='iconv '
6330 while test -n "$names_next_round"; do
6331 names_this_round="$names_next_round"
6333 for name in $names_this_round; do
6335 for n in $names_already_handled; do
6336 if test "$n" = "$name"; then
6341 if test -z "$already_handled"; then
6342 names_already_handled="$names_already_handled $name"
6343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6344 eval value=\"\$HAVE_LIB$uppername\"
6345 if test -n "$value"; then
6346 if test "$value" = yes; then
6347 eval value=\"\$LIB$uppername\"
6348 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6349 eval value=\"\$LTLIB$uppername\"
6350 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6359 if test $use_additional = yes; then
6360 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6361 found_dir="$additional_libdir"
6362 found_so="$additional_libdir/lib$name.$shlibext"
6363 if test -f "$additional_libdir/lib$name.la"; then
6364 found_la="$additional_libdir/lib$name.la"
6367 if test -f "$additional_libdir/lib$name.$libext"; then
6368 found_dir="$additional_libdir"
6369 found_a="$additional_libdir/lib$name.$libext"
6370 if test -f "$additional_libdir/lib$name.la"; then
6371 found_la="$additional_libdir/lib$name.la"
6376 if test "X$found_dir" = "X"; then
6377 for x in $LDFLAGS $LTLIBICONV; do
6379 acl_save_prefix="$prefix"
6380 prefix="$acl_final_prefix"
6381 acl_save_exec_prefix="$exec_prefix"
6382 exec_prefix="$acl_final_exec_prefix"
6384 exec_prefix="$acl_save_exec_prefix"
6385 prefix="$acl_save_prefix"
6389 dir=`echo "X$x" | sed -e 's/^X-L//'`
6390 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6392 found_so="$dir/lib$name.$shlibext"
6393 if test -f "$dir/lib$name.la"; then
6394 found_la="$dir/lib$name.la"
6397 if test -f "$dir/lib$name.$libext"; then
6399 found_a="$dir/lib$name.$libext"
6400 if test -f "$dir/lib$name.la"; then
6401 found_la="$dir/lib$name.la"
6407 if test "X$found_dir" != "X"; then
6412 if test "X$found_dir" != "X"; then
6413 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6414 if test "X$found_so" != "X"; then
6415 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6419 for x in $ltrpathdirs; do
6420 if test "X$x" = "X$found_dir"; then
6425 if test -z "$haveit"; then
6426 ltrpathdirs="$ltrpathdirs $found_dir"
6428 if test "$hardcode_direct" = yes; then
6429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6431 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6434 for x in $rpathdirs; do
6435 if test "X$x" = "X$found_dir"; then
6440 if test -z "$haveit"; then
6441 rpathdirs="$rpathdirs $found_dir"
6445 for x in $LDFLAGS $LIBICONV; do
6447 acl_save_prefix="$prefix"
6448 prefix="$acl_final_prefix"
6449 acl_save_exec_prefix="$exec_prefix"
6450 exec_prefix="$acl_final_exec_prefix"
6452 exec_prefix="$acl_save_exec_prefix"
6453 prefix="$acl_save_prefix"
6455 if test "X$x" = "X-L$found_dir"; then
6460 if test -z "$haveit"; then
6461 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6463 if test "$hardcode_minus_L" != no; then
6464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6466 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6472 if test "X$found_a" != "X"; then
6473 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6478 additional_includedir=
6479 case "$found_dir" in
6481 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6482 additional_includedir="$basedir/include"
6485 if test "X$additional_includedir" != "X"; then
6486 if test "X$additional_includedir" != "X/usr/include"; then
6488 if test "X$additional_includedir" = "X/usr/local/include"; then
6489 if test -n "$GCC"; then
6491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6495 if test -z "$haveit"; then
6496 for x in $CPPFLAGS $INCICONV; do
6498 acl_save_prefix="$prefix"
6499 prefix="$acl_final_prefix"
6500 acl_save_exec_prefix="$exec_prefix"
6501 exec_prefix="$acl_final_exec_prefix"
6503 exec_prefix="$acl_save_exec_prefix"
6504 prefix="$acl_save_prefix"
6506 if test "X$x" = "X-I$additional_includedir"; then
6511 if test -z "$haveit"; then
6512 if test -d "$additional_includedir"; then
6513 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6519 if test -n "$found_la"; then
6520 save_libdir="$libdir"
6522 */* | *\\*) . "$found_la" ;;
6523 *) . "./$found_la" ;;
6525 libdir="$save_libdir"
6526 for dep in $dependency_libs; do
6529 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6530 if test "X$additional_libdir" != "X/usr/lib"; then
6532 if test "X$additional_libdir" = "X/usr/local/lib"; then
6533 if test -n "$GCC"; then
6535 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6539 if test -z "$haveit"; then
6541 for x in $LDFLAGS $LIBICONV; do
6543 acl_save_prefix="$prefix"
6544 prefix="$acl_final_prefix"
6545 acl_save_exec_prefix="$exec_prefix"
6546 exec_prefix="$acl_final_exec_prefix"
6548 exec_prefix="$acl_save_exec_prefix"
6549 prefix="$acl_save_prefix"
6551 if test "X$x" = "X-L$additional_libdir"; then
6556 if test -z "$haveit"; then
6557 if test -d "$additional_libdir"; then
6558 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6562 for x in $LDFLAGS $LTLIBICONV; do
6564 acl_save_prefix="$prefix"
6565 prefix="$acl_final_prefix"
6566 acl_save_exec_prefix="$exec_prefix"
6567 exec_prefix="$acl_final_exec_prefix"
6569 exec_prefix="$acl_save_exec_prefix"
6570 prefix="$acl_save_prefix"
6572 if test "X$x" = "X-L$additional_libdir"; then
6577 if test -z "$haveit"; then
6578 if test -d "$additional_libdir"; then
6579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6586 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6587 if test "$enable_rpath" != no; then
6589 for x in $rpathdirs; do
6590 if test "X$x" = "X$dir"; then
6595 if test -z "$haveit"; then
6596 rpathdirs="$rpathdirs $dir"
6599 for x in $ltrpathdirs; do
6600 if test "X$x" = "X$dir"; then
6605 if test -z "$haveit"; then
6606 ltrpathdirs="$ltrpathdirs $dir"
6611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6617 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6618 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6624 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6631 if test "X$rpathdirs" != "X"; then
6632 if test -n "$hardcode_libdir_separator"; then
6634 for found_dir in $rpathdirs; do
6635 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6637 acl_save_libdir="$libdir"
6639 eval flag=\"$hardcode_libdir_flag_spec\"
6640 libdir="$acl_save_libdir"
6641 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6643 for found_dir in $rpathdirs; do
6644 acl_save_libdir="$libdir"
6646 eval flag=\"$hardcode_libdir_flag_spec\"
6647 libdir="$acl_save_libdir"
6648 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6652 if test "X$ltrpathdirs" != "X"; then
6653 for found_dir in $ltrpathdirs; do
6654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6675 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6676 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6677 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 gt_save_CPPFLAGS="$CPPFLAGS"
6681 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6682 gt_save_LIBS="$LIBS"
6683 LIBS="$LIBS -framework CoreFoundation"
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 #include <CFPreferences.h>
6694 CFPreferencesCopyAppValue(NULL, NULL)
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (ac_try="$ac_link"
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_link") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6714 { (case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_try") 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 gt_cv_func_CFPreferencesCopyAppValue=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 gt_cv_func_CFPreferencesCopyAppValue=no
6741 rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 CPPFLAGS="$gt_save_CPPFLAGS"
6744 LIBS="$gt_save_LIBS"
6746 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6747 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6748 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6755 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6756 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6757 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 gt_save_CPPFLAGS="$CPPFLAGS"
6761 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6762 gt_save_LIBS="$LIBS"
6763 LIBS="$LIBS -framework CoreFoundation"
6764 cat >conftest.$ac_ext <<_ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <CFLocale.h>
6774 CFLocaleCopyCurrent();
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (ac_try="$ac_link"
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6786 (eval "$ac_link") 2>conftest.er1
6788 grep -v '^ *+' conftest.er1 >conftest.err
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6794 { (case "(($ac_try" in
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_try") 2>&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_try") 2>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 gt_cv_func_CFLocaleCopyCurrent=yes
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 gt_cv_func_CFLocaleCopyCurrent=no
6821 rm -f core conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6823 CPPFLAGS="$gt_save_CPPFLAGS"
6824 LIBS="$gt_save_LIBS"
6826 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6827 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6828 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6830 cat >>confdefs.h <<\_ACEOF
6831 #define HAVE_CFLOCALECOPYCURRENT 1
6836 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6837 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6843 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6844 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6845 # Check whether --enable-nls was given.
6846 if test "${enable_nls+set}" = set; then
6847 enableval=$enable_nls; USE_NLS=$enableval
6852 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6853 echo "${ECHO_T}$USE_NLS" >&6; }
6862 if test "$USE_NLS" = "yes"; then
6863 gt_use_preinstalled_gnugettext=no
6870 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6871 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6872 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <libintl.h>
6882 extern int _nl_msg_cat_cntr;
6883 extern int *_nl_domain_bindings;
6887 bindtextdomain ("", "");
6888 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897 *) ac_try_echo=$ac_try;;
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900 (eval "$ac_link") 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6908 { (case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_try") 2>&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try='test -s conftest$ac_exeext'
6918 { (case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_try") 2>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 gt_cv_func_gnugettext1_libc=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 gt_cv_func_gnugettext1_libc=no
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6938 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6939 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6941 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6947 am_save_CPPFLAGS="$CPPFLAGS"
6949 for element in $INCICONV; do
6951 for x in $CPPFLAGS; do
6953 acl_save_prefix="$prefix"
6954 prefix="$acl_final_prefix"
6955 acl_save_exec_prefix="$exec_prefix"
6956 exec_prefix="$acl_final_exec_prefix"
6958 exec_prefix="$acl_save_exec_prefix"
6959 prefix="$acl_save_prefix"
6961 if test "X$x" = "X$element"; then
6966 if test -z "$haveit"; then
6967 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6972 { echo "$as_me:$LINENO: checking for iconv" >&5
6973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6974 if test "${am_cv_func_iconv+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 am_cv_func_iconv="no, consider installing GNU libiconv"
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6991 iconv_t cd = iconv_open("","");
6992 iconv(cd,NULL,NULL,NULL,NULL);
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (ac_try="$ac_link"
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_link") 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7013 { (case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_try") 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_try") 2>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 am_cv_func_iconv=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f core conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 if test "$am_cv_func_iconv" != yes; then
7043 am_save_LIBS="$LIBS"
7044 LIBS="$LIBS $LIBICONV"
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7056 iconv_t cd = iconv_open("","");
7057 iconv(cd,NULL,NULL,NULL,NULL);
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (ac_try="$ac_link"
7066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067 *) ac_try_echo=$ac_try;;
7069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7070 (eval "$ac_link") 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7078 { (case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_try") 2>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest$ac_exeext'
7088 { (case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_try") 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7098 am_cv_func_iconv=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 LIBS="$am_save_LIBS"
7112 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7113 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7114 if test "$am_cv_func_iconv" = yes; then
7116 cat >>confdefs.h <<\_ACEOF
7117 #define HAVE_ICONV 1
7121 if test "$am_cv_lib_iconv" = yes; then
7122 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7123 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7124 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7125 echo "${ECHO_T}$LIBICONV" >&6; }
7127 CPPFLAGS="$am_save_CPPFLAGS"
7139 acl_save_prefix="$prefix"
7140 prefix="$acl_final_prefix"
7141 acl_save_exec_prefix="$exec_prefix"
7142 exec_prefix="$acl_final_exec_prefix"
7144 eval additional_includedir=\"$includedir\"
7145 eval additional_libdir=\"$libdir\"
7147 exec_prefix="$acl_save_exec_prefix"
7148 prefix="$acl_save_prefix"
7151 # Check whether --with-libintl-prefix was given.
7152 if test "${with_libintl_prefix+set}" = set; then
7153 withval=$with_libintl_prefix;
7154 if test "X$withval" = "Xno"; then
7157 if test "X$withval" = "X"; then
7159 acl_save_prefix="$prefix"
7160 prefix="$acl_final_prefix"
7161 acl_save_exec_prefix="$exec_prefix"
7162 exec_prefix="$acl_final_exec_prefix"
7164 eval additional_includedir=\"$includedir\"
7165 eval additional_libdir=\"$libdir\"
7167 exec_prefix="$acl_save_exec_prefix"
7168 prefix="$acl_save_prefix"
7171 additional_includedir="$withval/include"
7172 additional_libdir="$withval/lib"
7183 names_already_handled=
7184 names_next_round='intl '
7185 while test -n "$names_next_round"; do
7186 names_this_round="$names_next_round"
7188 for name in $names_this_round; do
7190 for n in $names_already_handled; do
7191 if test "$n" = "$name"; then
7196 if test -z "$already_handled"; then
7197 names_already_handled="$names_already_handled $name"
7198 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7199 eval value=\"\$HAVE_LIB$uppername\"
7200 if test -n "$value"; then
7201 if test "$value" = yes; then
7202 eval value=\"\$LIB$uppername\"
7203 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7204 eval value=\"\$LTLIB$uppername\"
7205 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7214 if test $use_additional = yes; then
7215 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7216 found_dir="$additional_libdir"
7217 found_so="$additional_libdir/lib$name.$shlibext"
7218 if test -f "$additional_libdir/lib$name.la"; then
7219 found_la="$additional_libdir/lib$name.la"
7222 if test -f "$additional_libdir/lib$name.$libext"; then
7223 found_dir="$additional_libdir"
7224 found_a="$additional_libdir/lib$name.$libext"
7225 if test -f "$additional_libdir/lib$name.la"; then
7226 found_la="$additional_libdir/lib$name.la"
7231 if test "X$found_dir" = "X"; then
7232 for x in $LDFLAGS $LTLIBINTL; do
7234 acl_save_prefix="$prefix"
7235 prefix="$acl_final_prefix"
7236 acl_save_exec_prefix="$exec_prefix"
7237 exec_prefix="$acl_final_exec_prefix"
7239 exec_prefix="$acl_save_exec_prefix"
7240 prefix="$acl_save_prefix"
7244 dir=`echo "X$x" | sed -e 's/^X-L//'`
7245 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7247 found_so="$dir/lib$name.$shlibext"
7248 if test -f "$dir/lib$name.la"; then
7249 found_la="$dir/lib$name.la"
7252 if test -f "$dir/lib$name.$libext"; then
7254 found_a="$dir/lib$name.$libext"
7255 if test -f "$dir/lib$name.la"; then
7256 found_la="$dir/lib$name.la"
7262 if test "X$found_dir" != "X"; then
7267 if test "X$found_dir" != "X"; then
7268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7269 if test "X$found_so" != "X"; then
7270 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7271 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7274 for x in $ltrpathdirs; do
7275 if test "X$x" = "X$found_dir"; then
7280 if test -z "$haveit"; then
7281 ltrpathdirs="$ltrpathdirs $found_dir"
7283 if test "$hardcode_direct" = yes; then
7284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7286 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7287 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7289 for x in $rpathdirs; do
7290 if test "X$x" = "X$found_dir"; then
7295 if test -z "$haveit"; then
7296 rpathdirs="$rpathdirs $found_dir"
7300 for x in $LDFLAGS $LIBINTL; do
7302 acl_save_prefix="$prefix"
7303 prefix="$acl_final_prefix"
7304 acl_save_exec_prefix="$exec_prefix"
7305 exec_prefix="$acl_final_exec_prefix"
7307 exec_prefix="$acl_save_exec_prefix"
7308 prefix="$acl_save_prefix"
7310 if test "X$x" = "X-L$found_dir"; then
7315 if test -z "$haveit"; then
7316 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7318 if test "$hardcode_minus_L" != no; then
7319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7321 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7327 if test "X$found_a" != "X"; then
7328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7330 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7333 additional_includedir=
7334 case "$found_dir" in
7336 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7337 additional_includedir="$basedir/include"
7340 if test "X$additional_includedir" != "X"; then
7341 if test "X$additional_includedir" != "X/usr/include"; then
7343 if test "X$additional_includedir" = "X/usr/local/include"; then
7344 if test -n "$GCC"; then
7346 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7350 if test -z "$haveit"; then
7351 for x in $CPPFLAGS $INCINTL; do
7353 acl_save_prefix="$prefix"
7354 prefix="$acl_final_prefix"
7355 acl_save_exec_prefix="$exec_prefix"
7356 exec_prefix="$acl_final_exec_prefix"
7358 exec_prefix="$acl_save_exec_prefix"
7359 prefix="$acl_save_prefix"
7361 if test "X$x" = "X-I$additional_includedir"; then
7366 if test -z "$haveit"; then
7367 if test -d "$additional_includedir"; then
7368 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7374 if test -n "$found_la"; then
7375 save_libdir="$libdir"
7377 */* | *\\*) . "$found_la" ;;
7378 *) . "./$found_la" ;;
7380 libdir="$save_libdir"
7381 for dep in $dependency_libs; do
7384 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7385 if test "X$additional_libdir" != "X/usr/lib"; then
7387 if test "X$additional_libdir" = "X/usr/local/lib"; then
7388 if test -n "$GCC"; then
7390 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7394 if test -z "$haveit"; then
7396 for x in $LDFLAGS $LIBINTL; do
7398 acl_save_prefix="$prefix"
7399 prefix="$acl_final_prefix"
7400 acl_save_exec_prefix="$exec_prefix"
7401 exec_prefix="$acl_final_exec_prefix"
7403 exec_prefix="$acl_save_exec_prefix"
7404 prefix="$acl_save_prefix"
7406 if test "X$x" = "X-L$additional_libdir"; then
7411 if test -z "$haveit"; then
7412 if test -d "$additional_libdir"; then
7413 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7417 for x in $LDFLAGS $LTLIBINTL; do
7419 acl_save_prefix="$prefix"
7420 prefix="$acl_final_prefix"
7421 acl_save_exec_prefix="$exec_prefix"
7422 exec_prefix="$acl_final_exec_prefix"
7424 exec_prefix="$acl_save_exec_prefix"
7425 prefix="$acl_save_prefix"
7427 if test "X$x" = "X-L$additional_libdir"; then
7432 if test -z "$haveit"; then
7433 if test -d "$additional_libdir"; then
7434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7441 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7442 if test "$enable_rpath" != no; then
7444 for x in $rpathdirs; do
7445 if test "X$x" = "X$dir"; then
7450 if test -z "$haveit"; then
7451 rpathdirs="$rpathdirs $dir"
7454 for x in $ltrpathdirs; do
7455 if test "X$x" = "X$dir"; then
7460 if test -z "$haveit"; then
7461 ltrpathdirs="$ltrpathdirs $dir"
7466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7469 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7472 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7479 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7486 if test "X$rpathdirs" != "X"; then
7487 if test -n "$hardcode_libdir_separator"; then
7489 for found_dir in $rpathdirs; do
7490 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7492 acl_save_libdir="$libdir"
7494 eval flag=\"$hardcode_libdir_flag_spec\"
7495 libdir="$acl_save_libdir"
7496 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7498 for found_dir in $rpathdirs; do
7499 acl_save_libdir="$libdir"
7501 eval flag=\"$hardcode_libdir_flag_spec\"
7502 libdir="$acl_save_libdir"
7503 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7507 if test "X$ltrpathdirs" != "X"; then
7508 for found_dir in $ltrpathdirs; do
7509 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7513 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7514 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7515 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 gt_save_CPPFLAGS="$CPPFLAGS"
7519 CPPFLAGS="$CPPFLAGS $INCINTL"
7520 gt_save_LIBS="$LIBS"
7521 LIBS="$LIBS $LIBINTL"
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 #include <libintl.h>
7529 extern int _nl_msg_cat_cntr;
7534 const char *_nl_expand_alias (const char *);
7538 bindtextdomain ("", "");
7539 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7551 (eval "$ac_link") 2>conftest.er1
7553 grep -v '^ *+' conftest.er1 >conftest.err
7555 cat conftest.err >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7559 { (case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_try") 2>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_try") 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 gt_cv_func_gnugettext1_libintl=yes
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 gt_cv_func_gnugettext1_libintl=no
7586 rm -f core conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7589 LIBS="$LIBS $LIBICONV"
7590 cat >conftest.$ac_ext <<_ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 #include <libintl.h>
7597 extern int _nl_msg_cat_cntr;
7602 const char *_nl_expand_alias (const char *);
7606 bindtextdomain ("", "");
7607 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (ac_try="$ac_link"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_link") 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7627 { (case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_try") 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_try") 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 LIBINTL="$LIBINTL $LIBICONV"
7647 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7648 gt_cv_func_gnugettext1_libintl=yes
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7660 CPPFLAGS="$gt_save_CPPFLAGS"
7661 LIBS="$gt_save_LIBS"
7663 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7664 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7667 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7668 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7669 && test "$PACKAGE" != gettext-runtime \
7670 && test "$PACKAGE" != gettext-tools; }; then
7671 gt_use_preinstalled_gnugettext=yes
7680 if test -n "$INTL_MACOSX_LIBS"; then
7681 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7682 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7683 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7684 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7688 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7689 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define ENABLE_NLS 1
7700 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7701 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7702 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7703 echo "${ECHO_T}$USE_NLS" >&6; }
7704 if test "$USE_NLS" = "yes"; then
7705 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7706 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7707 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7708 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7709 gt_source="external libintl"
7714 gt_source="included intl directory"
7716 { echo "$as_me:$LINENO: result: $gt_source" >&5
7717 echo "${ECHO_T}$gt_source" >&6; }
7720 if test "$USE_NLS" = "yes"; then
7722 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7723 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7724 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7725 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7726 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7727 echo "${ECHO_T}$LIBINTL" >&6; }
7729 for element in $INCINTL; do
7731 for x in $CPPFLAGS; do
7733 acl_save_prefix="$prefix"
7734 prefix="$acl_final_prefix"
7735 acl_save_exec_prefix="$exec_prefix"
7736 exec_prefix="$acl_final_exec_prefix"
7738 exec_prefix="$acl_save_exec_prefix"
7739 prefix="$acl_save_prefix"
7741 if test "X$x" = "X$element"; then
7746 if test -z "$haveit"; then
7747 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_GETTEXT 1
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_DCGETTEXT 1
7777 if test x${prefix} = xNONE ; then
7778 if test `eval echo ${datadir}` = NONE/share ; then
7783 # ------------------------------------------------------------------
7784 # If the user has not set --prefix, we set our default to nothing.
7785 # In this case, if the user has not set --sysconfdir, we set it
7786 # to the package default of /etc/bacula. If either --prefix or
7787 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7788 # ------------------------------------------------------------------
7789 if test x${prefix} = xNONE ; then
7790 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7791 sysconfdir=/etc/bacula
7795 sysconfdir=`eval echo ${sysconfdir}`
7796 datadir=`eval echo ${datadir}`
7797 localedir=`eval echo ${datadir}/locale`
7798 cat >>confdefs.h <<_ACEOF
7799 #define LOCALEDIR "$localedir"
7802 cat >>confdefs.h <<_ACEOF
7803 #define SYSCONFDIR "$sysconfdir"
7807 # -------------------------------------------------------------------------
7808 # If the user has not set --exec-prefix, we default to ${prefix}
7809 # -------------------------------------------------------------------------
7810 if test x${exec_prefix} = xNONE ; then
7811 exec_prefix=${prefix}
7814 # ------------------------------------------------------------------
7815 # If the user has not set --sbindir, we set our default as /sbin
7816 # ------------------------------------------------------------------
7817 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7818 sbindir=${exec_prefix}/sbin
7820 sbindir=`eval echo ${sbindir}`
7822 # -------------------------------------------------------------------------
7823 # If the user has not set --mandir, we default to /usr/share/man
7824 # -------------------------------------------------------------------------
7825 if test x$mandir = x'${prefix}/man' ; then
7826 mandir=/usr/share/man
7830 # ------------------------------------------------------------------
7831 # All list of languages for which a translation exist. Each
7832 # language is separated by a space.
7833 # ------------------------------------------------------------------
7836 for ac_prog in msgfmt
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_MSGFMT+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 MSGFMT=$ac_cv_path_MSGFMT
7869 if test -n "$MSGFMT"; then
7870 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7871 echo "${ECHO_T}$MSGFMT" >&6; }
7873 { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7878 test -n "$MSGFMT" && break
7880 test -n "$MSGFMT" || MSGFMT="no"
7882 if test "$MSGFMT" = "no"
7884 echo 'msgfmt program not found, disabling NLS !'
7886 USE_INCLUDED_LIBINTL=no
7889 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7890 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7891 if test "${ac_cv_gnu_library_2+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7901 #include <features.h>
7902 #ifdef __GNU_LIBRARY__
7903 #if (__GLIBC__ >= 2)
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7911 ac_cv_gnu_library_2=yes
7913 ac_cv_gnu_library_2=no
7920 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7921 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7923 GLIBC2="$ac_cv_gnu_library_2"
7927 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7928 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7929 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 ac_check_lib_save_LIBS=$LIBS
7933 LIBS="-lcposix $LIBS"
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_link") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest$ac_exeext'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_try") 2>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_lib_cposix_strerror=yes
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_lib_cposix_strerror=no
7998 rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8003 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8004 if test $ac_cv_lib_cposix_strerror = yes; then
8005 LIBS="$LIBS -lcposix"
8010 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8011 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8012 if test "${ac_cv_header_stdc+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_header_stdc=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_cv_header_stdc=no
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 if test $ac_cv_header_stdc = yes; then
8079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090 $EGREP "memchr" >/dev/null 2>&1; then
8093 ac_cv_header_stdc=no
8099 if test $ac_cv_header_stdc = yes; then
8100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "free" >/dev/null 2>&1; then
8114 ac_cv_header_stdc=no
8120 if test $ac_cv_header_stdc = yes; then
8121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122 if test "$cross_compiling" = yes; then
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8156 rm -f conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_link") 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8178 echo "$as_me: program exited with status $ac_status" >&5
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_header_stdc=no
8185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8191 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8192 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8193 if test $ac_cv_header_stdc = yes; then
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STDC_HEADERS 1
8201 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8203 if test "${ac_cv_c_const+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8216 /* FIXME: Include the comments suggested by Paul. */
8218 /* Ultrix mips cc rejects this. */
8219 typedef int charset[2];
8221 /* SunOS 4.1.1 cc rejects this. */
8222 char const *const *ccp;
8224 /* NEC SVR4.0.2 mips cc rejects this. */
8225 struct point {int x, y;};
8226 static struct point const zero = {0,0};
8227 /* AIX XL C 1.02.0.0 rejects this.
8228 It does not let you subtract one const X* pointer from another in
8229 an arm of an if-expression whose if-part is not a constant
8231 const char *g = "string";
8232 ccp = &g + (g ? g-g : 0);
8233 /* HPUX 7.0 cc rejects these. */
8236 ccp = (char const *const *) p;
8237 { /* SCO 3.2v4 cc rejects this. */
8239 char const *s = 0 ? (char *) 0 : (char const *) 0;
8244 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8246 const int *foo = &x[0];
8249 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8250 typedef const int *iptr;
8254 { /* AIX XL C 1.02.0.0 rejects this saying
8255 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8256 struct s { int j; const int *ap[3]; };
8257 struct s *b; b->j = 5;
8259 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8263 return !x[0] && !zero.x;
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8315 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8316 if test $ac_cv_c_const = no; then
8318 cat >>confdefs.h <<\_ACEOF
8325 { echo "$as_me:$LINENO: checking for signed" >&5
8326 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8327 if test "${bh_cv_c_signed+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest.$ac_objext'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8390 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8391 if test $bh_cv_c_signed = no; then
8393 cat >>confdefs.h <<\_ACEOF
8399 { echo "$as_me:$LINENO: checking for inline" >&5
8400 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8401 if test "${ac_cv_c_inline+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 for ac_kw in inline __inline__ __inline; do
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 static $ac_kw foo_t static_foo () {return 0; }
8415 $ac_kw foo_t foo () {return 0; }
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_c_inline=$ac_kw
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 test "$ac_cv_c_inline" != no && break
8466 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8467 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8470 case $ac_cv_c_inline in
8473 case $ac_cv_c_inline in
8475 *) ac_val=$ac_cv_c_inline;;
8477 cat >>confdefs.h <<_ACEOF
8479 #define inline $ac_val
8485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8496 inttypes.h stdint.h unistd.h
8498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8512 #include <$ac_header>
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest.$ac_objext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 eval "$as_ac_Header=yes"
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 eval "$as_ac_Header=no"
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559 { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8562 cat >>confdefs.h <<_ACEOF
8563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 { echo "$as_me:$LINENO: checking for off_t" >&5
8572 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8573 if test "${ac_cv_type_off_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 typedef off_t ac__type_new_;
8587 if ((ac__type_new_ *) 0)
8589 if (sizeof (ac__type_new_))
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_compile") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_try") 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_type_off_t=yes
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8640 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8641 if test $ac_cv_type_off_t = yes; then
8645 cat >>confdefs.h <<_ACEOF
8646 #define off_t long int
8651 { echo "$as_me:$LINENO: checking for size_t" >&5
8652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8653 if test "${ac_cv_type_size_t+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 typedef size_t ac__type_new_;
8667 if ((ac__type_new_ *) 0)
8669 if (sizeof (ac__type_new_))
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest.$ac_objext'
8700 { (case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_try") 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_type_size_t=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_cv_type_size_t=no
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8720 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8721 if test $ac_cv_type_size_t = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define size_t unsigned int
8732 { echo "$as_me:$LINENO: checking for long long" >&5
8733 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8734 if test "${ac_cv_type_long_long+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 long long ll = 1LL; int i = 63;
8747 long long llmax = (long long) -1;
8748 return ll << i | ll >> i | llmax / ll | llmax % ll;
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (ac_try="$ac_link"
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_link") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_try") 2>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest$ac_exeext'
8778 { (case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_try") 2>&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_type_long_long=yes
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_cv_type_long_long=no
8795 rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8798 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8799 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8800 if test $ac_cv_type_long_long = yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_LONG_LONG 1
8809 { echo "$as_me:$LINENO: checking for long double" >&5
8810 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8811 if test "${gt_cv_c_long_double+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 if test "$GCC" = yes; then
8815 gt_cv_c_long_double=yes
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8824 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8825 long double foo = 0.0;
8826 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8827 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_try") 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 gt_cv_c_long_double=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 gt_cv_c_long_double=no
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8883 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8884 if test $gt_cv_c_long_double = yes; then
8886 cat >>confdefs.h <<\_ACEOF
8887 #define HAVE_LONG_DOUBLE 1
8893 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8894 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8895 if test "${gt_cv_c_wchar_t+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 wchar_t foo = (wchar_t)'\0';
8914 rm -f conftest.$ac_objext
8915 if { (ac_try="$ac_compile"
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_compile") 2>conftest.er1
8923 grep -v '^ *+' conftest.er1 >conftest.err
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_try") 2>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8959 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8960 if test $gt_cv_c_wchar_t = yes; then
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_WCHAR_T 1
8969 { echo "$as_me:$LINENO: checking for wint_t" >&5
8970 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8971 if test "${gt_cv_c_wint_t+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 wint_t foo = (wchar_t)'\0';
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9005 { (case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_try") 2>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest.$ac_objext'
9015 { (case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_try") 2>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9035 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9036 if test $gt_cv_c_wint_t = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_WINT_T 1
9045 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9046 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9047 if test "${gl_cv_header_inttypes_h+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 #include <sys/types.h>
9057 #include <inttypes.h>
9061 uintmax_t i = (uintmax_t) -1;
9066 rm -f conftest.$ac_objext
9067 if { (ac_try="$ac_compile"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_compile") 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9081 { (case "(($ac_try" in
9082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083 *) ac_try_echo=$ac_try;;
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086 (eval "$ac_try") 2>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest.$ac_objext'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 gl_cv_header_inttypes_h=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 gl_cv_header_inttypes_h=no
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9111 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9112 if test $gl_cv_header_inttypes_h = yes; then
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9121 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9122 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9123 if test "${gl_cv_header_stdint_h+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <sys/types.h>
9137 uintmax_t i = (uintmax_t) -1;
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_compile") 2>conftest.er1
9151 grep -v '^ *+' conftest.er1 >conftest.err
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest.$ac_objext'
9167 { (case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_try") 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 gl_cv_header_stdint_h=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 gl_cv_header_stdint_h=no
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9187 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9188 if test $gl_cv_header_stdint_h = yes; then
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_STDINT_H_WITH_UINTMAX 1
9199 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9200 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9201 if test "${gt_cv_c_intmax_t+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9213 #if HAVE_STDINT_H_WITH_UINTMAX
9216 #if HAVE_INTTYPES_H_WITH_UINTMAX
9217 #include <inttypes.h>
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_compile") 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9243 { (case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_try") 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest.$ac_objext'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 gt_cv_c_intmax_t=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9273 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9274 if test $gt_cv_c_intmax_t = yes; then
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_INTMAX_T 1
9284 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9285 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9286 if test "${gt_cv_func_printf_posix+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 if test "$cross_compiling" = yes; then
9292 cat >conftest.$ac_ext <<_ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9299 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9305 $EGREP "notposix" >/dev/null 2>&1; then
9306 gt_cv_func_printf_posix="guessing no"
9308 gt_cv_func_printf_posix="guessing yes"
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9323 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9324 dollar expansion (possibly an autoconf bug). */
9325 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9326 static char buf[100];
9329 sprintf (buf, format, 33, 55);
9330 return (strcmp (buf, "55 33") != 0);
9333 rm -f conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_link") 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_try") 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 gt_cv_func_printf_posix=yes
9355 echo "$as_me: program exited with status $ac_status" >&5
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9360 gt_cv_func_printf_posix=no
9362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9368 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9369 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9370 case $gt_cv_func_printf_posix in
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_POSIX_PRINTF 1
9380 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9381 # for constant arguments. Useless!
9382 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9383 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_working_alloca_h+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9397 char *p = (char *) alloca (2 * sizeof (int));
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (ac_try="$ac_link"
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_link") 2>conftest.er1
9412 grep -v '^ *+' conftest.er1 >conftest.err
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_try") 2>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 ac_cv_working_alloca_h=yes
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 ac_cv_working_alloca_h=no
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9448 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9449 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9450 if test $ac_cv_working_alloca_h = yes; then
9452 cat >>confdefs.h <<\_ACEOF
9453 #define HAVE_ALLOCA_H 1
9458 { echo "$as_me:$LINENO: checking for alloca" >&5
9459 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9460 if test "${ac_cv_func_alloca_works+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9470 # define alloca __builtin_alloca
9473 # include <malloc.h>
9474 # define alloca _alloca
9477 # include <alloca.h>
9482 # ifndef alloca /* predefined by HP cc +Olibcalls */
9493 char *p = (char *) alloca (1);
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_link") 2>conftest.er1
9508 grep -v '^ *+' conftest.er1 >conftest.err
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9514 { (case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_try") 2>&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest$ac_exeext'
9524 { (case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_try") 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_func_alloca_works=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_func_alloca_works=no
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9544 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9547 if test $ac_cv_func_alloca_works = yes; then
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_ALLOCA 1
9554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble. Some versions do not even contain alloca or
9556 # contain a buggy version. If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9561 cat >>confdefs.h <<\_ACEOF
9566 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9568 if test "${ac_cv_os_cray+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 #if defined CRAY && ! defined CRAY2
9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9585 $EGREP "webecray" >/dev/null 2>&1; then
9593 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9594 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9595 if test $ac_cv_os_cray = yes; then
9596 for ac_func in _getb67 GETB67 getb67; do
9597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9611 #define $ac_func innocuous_$ac_func
9613 /* System header to define __stub macros and hopefully few prototypes,
9614 which can conflict with char $ac_func (); below.
9615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616 <limits.h> exists even on freestanding compilers. */
9619 # include <limits.h>
9621 # include <assert.h>
9626 /* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
9633 /* The GNU C library defines this for functions which it implements
9634 to always fail with ENOSYS. Some functions are actually named
9635 something starting with __ and the normal name is an alias. */
9636 #if defined __stub_$ac_func || defined __stub___$ac_func
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_link") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663 { (case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_try") 2>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 eval "$as_ac_var=yes"
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 eval "$as_ac_var=no"
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9693 ac_res=`eval echo '${'$as_ac_var'}'`
9694 { echo "$as_me:$LINENO: result: $ac_res" >&5
9695 echo "${ECHO_T}$ac_res" >&6; }
9696 if test `eval echo '${'$as_ac_var'}'` = yes; then
9698 cat >>confdefs.h <<_ACEOF
9699 #define CRAY_STACKSEG_END $ac_func
9708 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9709 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9710 if test "${ac_cv_c_stack_direction+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 if test "$cross_compiling" = yes; then
9714 ac_cv_c_stack_direction=0
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9724 find_stack_direction ()
9726 static char *addr = 0;
9731 return find_stack_direction ();
9734 return (&dummy > addr) ? 1 : -1;
9740 return find_stack_direction () < 0;
9743 rm -f conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_c_stack_direction=1
9765 echo "$as_me: program exited with status $ac_status" >&5
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_c_stack_direction=-1
9772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9777 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9778 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9780 cat >>confdefs.h <<_ACEOF
9781 #define STACK_DIRECTION $ac_cv_c_stack_direction
9789 for ac_header in stdlib.h unistd.h
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_res=`eval echo '${'$as_ac_Header'}'`
9799 { echo "$as_me:$LINENO: result: $ac_res" >&5
9800 echo "${ECHO_T}$ac_res" >&6; }
9802 # Is the header compilable?
9803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 $ac_includes_default
9812 #include <$ac_header>
9814 rm -f conftest.$ac_objext
9815 if { (ac_try="$ac_compile"
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_compile") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest.$ac_objext'
9839 { (case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_try") 2>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_header_compiler=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_header_compiler=no
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9858 echo "${ECHO_T}$ac_header_compiler" >&6; }
9860 # Is the header present?
9861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9869 #include <$ac_header>
9871 if { (ac_try="$ac_cpp conftest.$ac_ext"
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } >/dev/null; then
9884 if test -s conftest.err; then
9885 ac_cpp_err=$ac_c_preproc_warn_flag
9886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9893 if test -z "$ac_cpp_err"; then
9894 ac_header_preproc=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_header_preproc=no
9902 rm -f conftest.err conftest.$ac_ext
9903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6; }
9906 # So? What about this header?
9907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9913 ac_header_preproc=yes
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 eval "$as_ac_Header=\$ac_header_preproc"
9938 ac_res=`eval echo '${'$as_ac_Header'}'`
9939 { echo "$as_me:$LINENO: result: $ac_res" >&5
9940 echo "${ECHO_T}$ac_res" >&6; }
9943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9944 cat >>confdefs.h <<_ACEOF
9945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9953 for ac_func in getpagesize
9955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9969 #define $ac_func innocuous_$ac_func
9971 /* System header to define __stub macros and hopefully few prototypes,
9972 which can conflict with char $ac_func (); below.
9973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9974 <limits.h> exists even on freestanding compilers. */
9977 # include <limits.h>
9979 # include <assert.h>
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9991 /* The GNU C library defines this for functions which it implements
9992 to always fail with ENOSYS. Some functions are actually named
9993 something starting with __ and the normal name is an alias. */
9994 #if defined __stub_$ac_func || defined __stub___$ac_func
10001 return $ac_func ();
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_link") 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 eval "$as_ac_var=yes"
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 eval "$as_ac_var=no"
10048 rm -f core conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10051 ac_res=`eval echo '${'$as_ac_var'}'`
10052 { echo "$as_me:$LINENO: result: $ac_res" >&5
10053 echo "${ECHO_T}$ac_res" >&6; }
10054 if test `eval echo '${'$as_ac_var'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062 { echo "$as_me:$LINENO: checking for working mmap" >&5
10063 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10064 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 if test "$cross_compiling" = yes; then
10068 ac_cv_func_mmap_fixed_mapped=no
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 /* malloc might have been renamed as rpl_malloc. */
10080 /* Thanks to Mike Haertel and Jim Avera for this test.
10081 Here is a matrix of mmap possibilities:
10082 mmap private not fixed
10083 mmap private fixed at somewhere currently unmapped
10084 mmap private fixed at somewhere already mapped
10085 mmap shared not fixed
10086 mmap shared fixed at somewhere currently unmapped
10087 mmap shared fixed at somewhere already mapped
10088 For private mappings, we should verify that changes cannot be read()
10089 back from the file, nor mmap's back from the file at a different
10090 address. (There have been systems where private was not correctly
10091 implemented like the infamous i386 svr4.0, and systems where the
10092 VM page cache was not coherent with the file system buffer cache
10093 like early versions of FreeBSD and possibly contemporary NetBSD.)
10094 For shared mappings, we should conversely verify that changes get
10095 propagated back to all the places they're supposed to be.
10097 Grep wants private fixed already mapped.
10098 The main things grep needs to know about mmap are:
10099 * does it exist and is it safe to write into the mmap'd area
10100 * how to use it (BSD variants) */
10103 #include <sys/mman.h>
10105 #if !STDC_HEADERS && !HAVE_STDLIB_H
10109 /* This mess was copied from the GNU getpagesize.h. */
10110 #if !HAVE_GETPAGESIZE
10111 /* Assume that all systems that can run configure have sys/param.h. */
10112 # if !HAVE_SYS_PARAM_H
10113 # define HAVE_SYS_PARAM_H 1
10116 # ifdef _SC_PAGESIZE
10117 # define getpagesize() sysconf(_SC_PAGESIZE)
10118 # else /* no _SC_PAGESIZE */
10119 # if HAVE_SYS_PARAM_H
10120 # include <sys/param.h>
10121 # ifdef EXEC_PAGESIZE
10122 # define getpagesize() EXEC_PAGESIZE
10123 # else /* no EXEC_PAGESIZE */
10125 # define getpagesize() NBPG * CLSIZE
10128 # endif /* no CLSIZE */
10129 # else /* no NBPG */
10131 # define getpagesize() NBPC
10132 # else /* no NBPC */
10134 # define getpagesize() PAGESIZE
10135 # endif /* PAGESIZE */
10136 # endif /* no NBPC */
10137 # endif /* no NBPG */
10138 # endif /* no EXEC_PAGESIZE */
10139 # else /* no HAVE_SYS_PARAM_H */
10140 # define getpagesize() 8192 /* punt totally */
10141 # endif /* no HAVE_SYS_PARAM_H */
10142 # endif /* no _SC_PAGESIZE */
10144 #endif /* no HAVE_GETPAGESIZE */
10149 char *data, *data2, *data3;
10153 pagesize = getpagesize ();
10155 /* First, make a file with some known garbage in it. */
10156 data = (char *) malloc (pagesize);
10159 for (i = 0; i < pagesize; ++i)
10160 *(data + i) = rand ();
10162 fd = creat ("conftest.mmap", 0600);
10165 if (write (fd, data, pagesize) != pagesize)
10169 /* Next, try to mmap the file at a fixed address which already has
10170 something else allocated at it. If we can, also make sure that
10171 we see the same garbage. */
10172 fd = open ("conftest.mmap", O_RDWR);
10175 data2 = (char *) malloc (2 * pagesize);
10178 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10179 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10180 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10182 for (i = 0; i < pagesize; ++i)
10183 if (*(data + i) != *(data2 + i))
10186 /* Finally, make sure that changes to the mapped area do not
10187 percolate back to the file as seen by read(). (This is a bug on
10188 some variants of i386 svr4.0.) */
10189 for (i = 0; i < pagesize; ++i)
10190 *(data2 + i) = *(data2 + i) + 1;
10191 data3 = (char *) malloc (pagesize);
10194 if (read (fd, data3, pagesize) != pagesize)
10196 for (i = 0; i < pagesize; ++i)
10197 if (*(data + i) != *(data3 + i))
10203 rm -f conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10214 { (case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_try") 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_func_mmap_fixed_mapped=yes
10225 echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ( exit $ac_status )
10230 ac_cv_func_mmap_fixed_mapped=no
10232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10237 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10238 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10241 cat >>confdefs.h <<\_ACEOF
10242 #define HAVE_MMAP 1
10246 rm -f conftest.mmap
10249 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10250 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10251 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10261 #include <features.h>
10262 #ifdef __GNU_LIBRARY__
10263 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10270 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10271 ac_cv_gnu_library_2_1=yes
10273 ac_cv_gnu_library_2_1=no
10280 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10281 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10283 GLIBC21="$ac_cv_gnu_library_2_1"
10288 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10289 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10290 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 if test "$cross_compiling" = yes; then
10296 # Guess based on the CPU.
10297 case "$host_cpu" in
10298 alpha* | i3456786 | m68k | s390*)
10299 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10301 gt_cv_int_divbyzero_sigfpe="guessing no";;
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10312 #include <stdlib.h>
10313 #include <signal.h>
10317 sigfpe_handler (int sig)
10319 sigfpe_handler (sig) int sig;
10322 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10323 exit (sig != SIGFPE);
10333 signal (SIGFPE, sigfpe_handler);
10334 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10335 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10336 signal (SIGTRAP, sigfpe_handler);
10338 /* Linux/SPARC yields signal SIGILL. */
10339 #if defined (__sparc__) && defined (__linux__)
10340 signal (SIGILL, sigfpe_handler);
10349 rm -f conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 gt_cv_int_divbyzero_sigfpe=yes
10371 echo "$as_me: program exited with status $ac_status" >&5
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ( exit $ac_status )
10376 gt_cv_int_divbyzero_sigfpe=no
10378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10384 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10385 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10386 case "$gt_cv_int_divbyzero_sigfpe" in
10391 cat >>confdefs.h <<_ACEOF
10392 #define INTDIV0_RAISES_SIGFPE $value
10397 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10398 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10399 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 unsigned long long ull = 1ULL; int i = 63;
10412 unsigned long long ullmax = (unsigned long long) -1;
10413 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_try") 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_type_unsigned_long_long=yes
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_cv_type_unsigned_long_long=no
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10464 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10465 if test $ac_cv_type_unsigned_long_long = yes; then
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE_UNSIGNED_LONG_LONG 1
10476 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10478 test $ac_cv_type_unsigned_long_long = yes \
10479 && ac_type='unsigned long long' \
10480 || ac_type='unsigned long'
10482 cat >>confdefs.h <<_ACEOF
10483 #define uintmax_t $ac_type
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_UINTMAX_T 1
10495 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10496 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10497 if test "${gt_cv_header_inttypes_h+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 #include <sys/types.h>
10508 #include <inttypes.h>
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 gt_cv_header_inttypes_h=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 gt_cv_header_inttypes_h=no
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10563 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10564 if test $gt_cv_header_inttypes_h = yes; then
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_INTTYPES_H 1
10574 if test $gt_cv_header_inttypes_h = yes; then
10575 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10576 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10577 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <inttypes.h>
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 gt_cv_inttypes_pri_broken=no
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 gt_cv_inttypes_pri_broken=yes
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10646 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10648 if test "$gt_cv_inttypes_pri_broken" = yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define PRI_MACROS_BROKEN 1
10658 for ac_header in stdint.h
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10671 # Is the header compilable?
10672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 #include <$ac_header>
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_header_compiler=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727 echo "${ECHO_T}$ac_header_compiler" >&6; }
10729 # Is the header present?
10730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 #include <$ac_header>
10740 if { (ac_try="$ac_cpp conftest.$ac_ext"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 if test -z "$ac_cpp_err"; then
10763 ac_header_preproc=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_header_preproc=no
10771 rm -f conftest.err conftest.$ac_ext
10772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 echo "${ECHO_T}$ac_header_preproc" >&6; }
10775 # So? What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 eval "$as_ac_Header=\$ac_header_preproc"
10807 ac_res=`eval echo '${'$as_ac_Header'}'`
10808 { echo "$as_me:$LINENO: result: $ac_res" >&5
10809 echo "${ECHO_T}$ac_res" >&6; }
10812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10813 cat >>confdefs.h <<_ACEOF
10814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10821 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10822 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10831 #include <limits.h>
10833 #include <stdint.h>
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841 $EGREP "Found it" >/dev/null 2>&1; then
10846 if test -z "$result"; then
10847 if test "$cross_compiling" = yes; then
10848 # Depending upon the size, compute the lo and hi bounds.
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <stddef.h>
10859 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <stddef.h>
10912 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_hi=$ac_mid; break
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_lo=`expr $ac_mid + 1`
10959 if test $ac_lo -le $ac_mid; then
10963 ac_mid=`expr 2 '*' $ac_mid + 1`
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 cat >conftest.$ac_ext <<_ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 #include <stddef.h>
10982 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10989 rm -f conftest.$ac_objext
10990 if { (ac_try="$ac_compile"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 #include <stddef.h>
11035 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11042 rm -f conftest.$ac_objext
11043 if { (ac_try="$ac_compile"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_compile") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11057 { (case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_try") 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } &&
11066 { ac_try='test -s conftest.$ac_objext'
11067 { (case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_try") 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 ac_lo=$ac_mid; break
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11081 ac_hi=`expr '(' $ac_mid ')' - 1`
11082 if test $ac_mid -le $ac_hi; then
11086 ac_mid=`expr 2 '*' $ac_mid`
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 # Binary search between lo and hi bounds.
11103 while test "x$ac_lo" != "x$ac_hi"; do
11104 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <stddef.h>
11115 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_compile") 2>conftest.er1
11131 grep -v '^ *+' conftest.er1 >conftest.err
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11137 { (case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_try") 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest.$ac_objext'
11147 { (case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_try") 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ac_lo=`expr '(' $ac_mid ')' + 1`
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 ?*) res_hi=$ac_lo;;
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <stddef.h>
11178 static long int longval () { return ~(size_t)0 / 10; }
11179 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11181 #include <stdlib.h>
11186 FILE *f = fopen ("conftest.val", "w");
11189 if ((~(size_t)0 / 10) < 0)
11191 long int i = longval ();
11192 if (i != (~(size_t)0 / 10))
11194 fprintf (f, "%ld\n", i);
11198 unsigned long int i = ulongval ();
11199 if (i != (~(size_t)0 / 10))
11201 fprintf (f, "%lu\n", i);
11203 return ferror (f) || fclose (f) != 0;
11209 rm -f conftest$ac_exeext
11210 if { (ac_try="$ac_link"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_link") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 res_hi=`cat conftest.val`
11231 echo "$as_me: program exited with status $ac_status" >&5
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ( exit $ac_status )
11238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11241 if test "$cross_compiling" = yes; then
11242 # Depending upon the size, compute the lo and hi bounds.
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <stddef.h>
11253 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11296 cat >conftest.$ac_ext <<_ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 #include <stddef.h>
11306 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11313 rm -f conftest.$ac_objext
11314 if { (ac_try="$ac_compile"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_compile") 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11328 { (case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_try") 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest.$ac_objext'
11338 { (case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_try") 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_hi=$ac_mid; break
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_lo=`expr $ac_mid + 1`
11353 if test $ac_lo -le $ac_mid; then
11357 ac_mid=`expr 2 '*' $ac_mid + 1`
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <stddef.h>
11376 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11383 rm -f conftest.$ac_objext
11384 if { (ac_try="$ac_compile"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_compile") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11398 { (case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_try") 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_try") 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <stddef.h>
11429 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_compile") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_lo=$ac_mid; break
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_hi=`expr '(' $ac_mid ')' - 1`
11476 if test $ac_mid -le $ac_hi; then
11480 ac_mid=`expr 2 '*' $ac_mid`
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 # Binary search between lo and hi bounds.
11497 while test "x$ac_lo" != "x$ac_hi"; do
11498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <stddef.h>
11509 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11516 rm -f conftest.$ac_objext
11517 if { (ac_try="$ac_compile"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 ac_lo=`expr '(' $ac_mid ')' + 1`
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 ?*) res_lo=$ac_lo;;
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <stddef.h>
11572 static long int longval () { return ~(size_t)0 % 10; }
11573 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11575 #include <stdlib.h>
11580 FILE *f = fopen ("conftest.val", "w");
11583 if ((~(size_t)0 % 10) < 0)
11585 long int i = longval ();
11586 if (i != (~(size_t)0 % 10))
11588 fprintf (f, "%ld\n", i);
11592 unsigned long int i = ulongval ();
11593 if (i != (~(size_t)0 % 10))
11595 fprintf (f, "%lu\n", i);
11597 return ferror (f) || fclose (f) != 0;
11603 rm -f conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_link") 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11614 { (case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_try") 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 res_lo=`cat conftest.val`
11625 echo "$as_me: program exited with status $ac_status" >&5
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ( exit $ac_status )
11632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11635 if test "$cross_compiling" = yes; then
11636 # Depending upon the size, compute the lo and hi bounds.
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 #include <stddef.h>
11647 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 #include <stddef.h>
11700 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11722 { (case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_try") 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; } &&
11731 { ac_try='test -s conftest.$ac_objext'
11732 { (case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_try") 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_hi=$ac_mid; break
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_lo=`expr $ac_mid + 1`
11747 if test $ac_lo -le $ac_mid; then
11751 ac_mid=`expr 2 '*' $ac_mid + 1`
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 #include <stddef.h>
11770 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <stddef.h>
11823 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11830 rm -f conftest.$ac_objext
11831 if { (ac_try="$ac_compile"
11832 case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11845 { (case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_try") 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
11855 { (case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_try") 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_lo=$ac_mid; break
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_hi=`expr '(' $ac_mid ')' - 1`
11870 if test $ac_mid -le $ac_hi; then
11874 ac_mid=`expr 2 '*' $ac_mid`
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 # Binary search between lo and hi bounds.
11891 while test "x$ac_lo" != "x$ac_hi"; do
11892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 #include <stddef.h>
11903 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_lo=`expr '(' $ac_mid ')' + 1`
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 ?*) fits_in_uint=$ac_lo;;
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #include <stddef.h>
11966 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11967 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11969 #include <stdlib.h>
11974 FILE *f = fopen ("conftest.val", "w");
11977 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11979 long int i = longval ();
11980 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11982 fprintf (f, "%ld\n", i);
11986 unsigned long int i = ulongval ();
11987 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11989 fprintf (f, "%lu\n", i);
11991 return ferror (f) || fclose (f) != 0;
11997 rm -f conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 fits_in_uint=`cat conftest.val`
12019 echo "$as_me: program exited with status $ac_status" >&5
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ( exit $ac_status )
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12029 if test "$fits_in_uint" = 1; then
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <stddef.h>
12038 extern unsigned long foo;
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 if test -z "$result"; then
12093 if test "$fits_in_uint" = 1; then
12094 result="$res_hi$res_lo"U
12096 result="$res_hi$res_lo"UL
12099 result='~(size_t)0'
12102 { echo "$as_me:$LINENO: result: $result" >&5
12103 echo "${ECHO_T}$result" >&6; }
12104 if test "$result" != yes; then
12106 cat >>confdefs.h <<_ACEOF
12107 #define SIZE_MAX $result
12116 for ac_header in stdint.h
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12129 # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12139 #include <$ac_header>
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_header_compiler=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_header_compiler=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <$ac_header>
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } >/dev/null; then
12211 if test -s conftest.err; then
12212 ac_cpp_err=$ac_c_preproc_warn_flag
12213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12220 if test -z "$ac_cpp_err"; then
12221 ac_header_preproc=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 eval "$as_ac_Header=\$ac_header_preproc"
12265 ac_res=`eval echo '${'$as_ac_Header'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12286 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12287 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12288 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 $ac_includes_default
12298 typedef ptrdiff_t ac__type_new_;
12302 if ((ac__type_new_ *) 0)
12304 if (sizeof (ac__type_new_))
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_compile") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_type_ptrdiff_t=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_type_ptrdiff_t=no
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12355 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12356 if test $ac_cv_type_ptrdiff_t = yes; then
12360 cat >>confdefs.h <<\_ACEOF
12361 #define ptrdiff_t long
12377 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12378 stdlib.h string.h unistd.h sys/param.h
12380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12391 # Is the header compilable?
12392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12401 #include <$ac_header>
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_header_compiler=no
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6; }
12449 # Is the header present?
12450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #include <$ac_header>
12460 if { (ac_try="$ac_cpp conftest.$ac_ext"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } >/dev/null; then
12473 if test -s conftest.err; then
12474 ac_cpp_err=$ac_c_preproc_warn_flag
12475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12482 if test -z "$ac_cpp_err"; then
12483 ac_header_preproc=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_preproc=no
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12495 # So? What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 eval "$as_ac_Header=\$ac_header_preproc"
12527 ac_res=`eval echo '${'$as_ac_Header'}'`
12528 { echo "$as_me:$LINENO: result: $ac_res" >&5
12529 echo "${ECHO_T}$ac_res" >&6; }
12532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12533 cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12565 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12566 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12583 #define $ac_func innocuous_$ac_func
12585 /* System header to define __stub macros and hopefully few prototypes,
12586 which can conflict with char $ac_func (); below.
12587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12588 <limits.h> exists even on freestanding compilers. */
12591 # include <limits.h>
12593 # include <assert.h>
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12605 /* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
12608 #if defined __stub_$ac_func || defined __stub___$ac_func
12615 return $ac_func ();
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (ac_try="$ac_link"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_link") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 eval "$as_ac_var=yes"
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 eval "$as_ac_var=no"
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12665 ac_res=`eval echo '${'$as_ac_var'}'`
12666 { echo "$as_me:$LINENO: result: $ac_res" >&5
12667 echo "${ECHO_T}$ac_res" >&6; }
12668 if test `eval echo '${'$as_ac_var'}'` = yes; then
12669 cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12678 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12679 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12680 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12695 char *p = (char *) _snprintf;
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717 { (case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_try") 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_try") 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_have_decl__snprintf=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_cv_have_decl__snprintf=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12747 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12748 if test $ac_cv_have_decl__snprintf = yes; then
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_DECL__SNPRINTF $gt_value
12760 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12761 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12762 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12777 char *p = (char *) _snwprintf;
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_compile") 2>conftest.er1
12793 grep -v '^ *+' conftest.er1 >conftest.err
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_have_decl__snwprintf=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_cv_have_decl__snwprintf=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12829 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12830 if test $ac_cv_have_decl__snwprintf = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_DECL__SNWPRINTF $gt_value
12843 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12844 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12845 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12859 #ifndef feof_unlocked
12860 char *p = (char *) feof_unlocked;
12867 rm -f conftest.$ac_objext
12868 if { (ac_try="$ac_compile"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_compile") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest.$ac_objext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_have_decl_feof_unlocked=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_cv_have_decl_feof_unlocked=no
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12912 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12913 if test $ac_cv_have_decl_feof_unlocked = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12925 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12926 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12927 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12941 #ifndef fgets_unlocked
12942 char *p = (char *) fgets_unlocked;
12949 rm -f conftest.$ac_objext
12950 if { (ac_try="$ac_compile"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_compile") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_have_decl_fgets_unlocked=yes
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 ac_cv_have_decl_fgets_unlocked=no
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12994 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12995 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13001 cat >>confdefs.h <<_ACEOF
13002 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13007 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13008 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13009 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13023 #ifndef getc_unlocked
13024 char *p = (char *) getc_unlocked;
13031 rm -f conftest.$ac_objext
13032 if { (ac_try="$ac_compile"
13033 case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_compile") 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest.$ac_objext'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_cv_have_decl_getc_unlocked=yes
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 ac_cv_have_decl_getc_unlocked=no
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13076 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13077 if test $ac_cv_have_decl_getc_unlocked = yes; then
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13089 case $gt_cv_func_printf_posix in
13090 *yes) HAVE_POSIX_PRINTF=1 ;;
13091 *) HAVE_POSIX_PRINTF=0 ;;
13094 if test "$ac_cv_func_asprintf" = yes; then
13100 if test "$ac_cv_func_snprintf" = yes; then
13106 if test "$ac_cv_func_wprintf" = yes; then
13118 am_save_CPPFLAGS="$CPPFLAGS"
13120 for element in $INCICONV; do
13122 for x in $CPPFLAGS; do
13124 acl_save_prefix="$prefix"
13125 prefix="$acl_final_prefix"
13126 acl_save_exec_prefix="$exec_prefix"
13127 exec_prefix="$acl_final_exec_prefix"
13129 exec_prefix="$acl_save_exec_prefix"
13130 prefix="$acl_save_prefix"
13132 if test "X$x" = "X$element"; then
13137 if test -z "$haveit"; then
13138 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13143 { echo "$as_me:$LINENO: checking for iconv" >&5
13144 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13145 if test "${am_cv_func_iconv+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 am_cv_func_iconv="no, consider installing GNU libiconv"
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 #include <stdlib.h>
13162 iconv_t cd = iconv_open("","");
13163 iconv(cd,NULL,NULL,NULL,NULL);
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (ac_try="$ac_link"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_link") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1 >conftest.err
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 am_cv_func_iconv=yes
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13211 rm -f core conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213 if test "$am_cv_func_iconv" != yes; then
13214 am_save_LIBS="$LIBS"
13215 LIBS="$LIBS $LIBICONV"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <stdlib.h>
13227 iconv_t cd = iconv_open("","");
13228 iconv(cd,NULL,NULL,NULL,NULL);
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest$ac_exeext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 am_cv_lib_iconv=yes
13269 am_cv_func_iconv=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS="$am_save_LIBS"
13283 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13284 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13285 if test "$am_cv_func_iconv" = yes; then
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_ICONV 1
13292 if test "$am_cv_lib_iconv" = yes; then
13293 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13294 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13295 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13296 echo "${ECHO_T}$LIBICONV" >&6; }
13298 CPPFLAGS="$am_save_CPPFLAGS"
13305 if test "$am_cv_func_iconv" = yes; then
13306 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13307 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13308 if test "${am_cv_proto_iconv+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 #include <stdlib.h>
13325 #if defined(__STDC__) || defined(__cplusplus)
13326 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_compile") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13354 { (case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_try") 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 am_cv_proto_iconv_arg1=""
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 am_cv_proto_iconv_arg1="const"
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 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);"
13385 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13386 { echo "$as_me:$LINENO: result: ${ac_t:-
13387 }$am_cv_proto_iconv" >&5
13388 echo "${ECHO_T}${ac_t:-
13389 }$am_cv_proto_iconv" >&6; }
13391 cat >>confdefs.h <<_ACEOF
13392 #define ICONV_CONST $am_cv_proto_iconv_arg1
13398 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13399 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13400 if test "${am_cv_langinfo_codeset+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <langinfo.h>
13413 char* cs = nl_langinfo(CODESET);
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (ac_try="$ac_link"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_link") 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 am_cv_langinfo_codeset=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 am_cv_langinfo_codeset=no
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13464 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13465 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13466 if test $am_cv_langinfo_codeset = yes; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_LANGINFO_CODESET 1
13474 if test $ac_cv_header_locale_h = yes; then
13476 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13477 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13478 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 #include <locale.h>
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_link") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 gt_cv_val_LC_MESSAGES=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 gt_cv_val_LC_MESSAGES=no
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13542 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13543 if test $gt_cv_val_LC_MESSAGES = yes; then
13545 cat >>confdefs.h <<\_ACEOF
13546 #define HAVE_LC_MESSAGES 1
13553 if test -n "$INTL_MACOSX_LIBS"; then
13554 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13557 for ac_prog in bison
13559 # Extract the first word of "$ac_prog", so it can be a program name with args.
13560 set dummy $ac_prog; ac_word=$2
13561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13563 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 if test -n "$INTLBISON"; then
13567 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_INTLBISON="$ac_prog"
13577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 INTLBISON=$ac_cv_prog_INTLBISON
13587 if test -n "$INTLBISON"; then
13588 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13589 echo "${ECHO_T}$INTLBISON" >&6; }
13591 { echo "$as_me:$LINENO: result: no" >&5
13592 echo "${ECHO_T}no" >&6; }
13596 test -n "$INTLBISON" && break
13599 if test -z "$INTLBISON"; then
13602 { echo "$as_me:$LINENO: checking version of bison" >&5
13603 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13604 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13605 case $ac_prog_version in
13606 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13607 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13608 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13609 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13611 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13612 echo "${ECHO_T}$ac_prog_version" >&6; }
13614 if test $ac_verc_fail = yes; then
13633 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13634 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13635 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 gt_save_CPPFLAGS="$CPPFLAGS"
13639 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13640 gt_save_LIBS="$LIBS"
13641 LIBS="$LIBS -framework CoreFoundation"
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <CFPreferences.h>
13652 CFPreferencesCopyAppValue(NULL, NULL)
13657 rm -f conftest.$ac_objext conftest$ac_exeext
13658 if { (ac_try="$ac_link"
13659 case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_link") 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 gt_cv_func_CFPreferencesCopyAppValue=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 gt_cv_func_CFPreferencesCopyAppValue=no
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701 CPPFLAGS="$gt_save_CPPFLAGS"
13702 LIBS="$gt_save_LIBS"
13704 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13705 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13706 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13713 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13714 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13715 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 gt_save_CPPFLAGS="$CPPFLAGS"
13719 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13720 gt_save_LIBS="$LIBS"
13721 LIBS="$LIBS -framework CoreFoundation"
13722 cat >conftest.$ac_ext <<_ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13728 #include <CFLocale.h>
13732 CFLocaleCopyCurrent();
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_link") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 gt_cv_func_CFLocaleCopyCurrent=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 gt_cv_func_CFLocaleCopyCurrent=no
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 CPPFLAGS="$gt_save_CPPFLAGS"
13782 LIBS="$gt_save_LIBS"
13784 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13785 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13786 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_CFLOCALECOPYCURRENT 1
13794 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13795 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13801 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13803 # Check whether --enable-nls was given.
13804 if test "${enable_nls+set}" = set; then
13805 enableval=$enable_nls; USE_NLS=$enableval
13810 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13811 echo "${ECHO_T}$USE_NLS" >&6; }
13816 BUILD_INCLUDED_LIBINTL=no
13817 USE_INCLUDED_LIBINTL=no
13823 if test "$USE_NLS" = "yes"; then
13824 gt_use_preinstalled_gnugettext=no
13826 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13827 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13829 # Check whether --with-included-gettext was given.
13830 if test "${with_included_gettext+set}" = set; then
13831 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13833 nls_cv_force_use_gnu_gettext=no
13836 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13837 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13839 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13840 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13847 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13848 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13849 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <libintl.h>
13859 extern int _nl_msg_cat_cntr;
13860 extern int *_nl_domain_bindings;
13864 bindtextdomain ("", "");
13865 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885 { (case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_try") 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 gt_cv_func_gnugettext1_libc=yes
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 gt_cv_func_gnugettext1_libc=no
13912 rm -f core conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13915 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13916 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13918 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13924 acl_save_prefix="$prefix"
13925 prefix="$acl_final_prefix"
13926 acl_save_exec_prefix="$exec_prefix"
13927 exec_prefix="$acl_final_exec_prefix"
13929 eval additional_includedir=\"$includedir\"
13930 eval additional_libdir=\"$libdir\"
13932 exec_prefix="$acl_save_exec_prefix"
13933 prefix="$acl_save_prefix"
13936 # Check whether --with-libintl-prefix was given.
13937 if test "${with_libintl_prefix+set}" = set; then
13938 withval=$with_libintl_prefix;
13939 if test "X$withval" = "Xno"; then
13942 if test "X$withval" = "X"; then
13944 acl_save_prefix="$prefix"
13945 prefix="$acl_final_prefix"
13946 acl_save_exec_prefix="$exec_prefix"
13947 exec_prefix="$acl_final_exec_prefix"
13949 eval additional_includedir=\"$includedir\"
13950 eval additional_libdir=\"$libdir\"
13952 exec_prefix="$acl_save_exec_prefix"
13953 prefix="$acl_save_prefix"
13956 additional_includedir="$withval/include"
13957 additional_libdir="$withval/lib"
13968 names_already_handled=
13969 names_next_round='intl '
13970 while test -n "$names_next_round"; do
13971 names_this_round="$names_next_round"
13973 for name in $names_this_round; do
13975 for n in $names_already_handled; do
13976 if test "$n" = "$name"; then
13977 already_handled=yes
13981 if test -z "$already_handled"; then
13982 names_already_handled="$names_already_handled $name"
13983 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13984 eval value=\"\$HAVE_LIB$uppername\"
13985 if test -n "$value"; then
13986 if test "$value" = yes; then
13987 eval value=\"\$LIB$uppername\"
13988 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13989 eval value=\"\$LTLIB$uppername\"
13990 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13999 if test $use_additional = yes; then
14000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14001 found_dir="$additional_libdir"
14002 found_so="$additional_libdir/lib$name.$shlibext"
14003 if test -f "$additional_libdir/lib$name.la"; then
14004 found_la="$additional_libdir/lib$name.la"
14007 if test -f "$additional_libdir/lib$name.$libext"; then
14008 found_dir="$additional_libdir"
14009 found_a="$additional_libdir/lib$name.$libext"
14010 if test -f "$additional_libdir/lib$name.la"; then
14011 found_la="$additional_libdir/lib$name.la"
14016 if test "X$found_dir" = "X"; then
14017 for x in $LDFLAGS $LTLIBINTL; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14029 dir=`echo "X$x" | sed -e 's/^X-L//'`
14030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14032 found_so="$dir/lib$name.$shlibext"
14033 if test -f "$dir/lib$name.la"; then
14034 found_la="$dir/lib$name.la"
14037 if test -f "$dir/lib$name.$libext"; then
14039 found_a="$dir/lib$name.$libext"
14040 if test -f "$dir/lib$name.la"; then
14041 found_la="$dir/lib$name.la"
14047 if test "X$found_dir" != "X"; then
14052 if test "X$found_dir" != "X"; then
14053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14054 if test "X$found_so" != "X"; then
14055 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14056 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14059 for x in $ltrpathdirs; do
14060 if test "X$x" = "X$found_dir"; then
14065 if test -z "$haveit"; then
14066 ltrpathdirs="$ltrpathdirs $found_dir"
14068 if test "$hardcode_direct" = yes; then
14069 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14074 for x in $rpathdirs; do
14075 if test "X$x" = "X$found_dir"; then
14080 if test -z "$haveit"; then
14081 rpathdirs="$rpathdirs $found_dir"
14085 for x in $LDFLAGS $LIBINTL; do
14087 acl_save_prefix="$prefix"
14088 prefix="$acl_final_prefix"
14089 acl_save_exec_prefix="$exec_prefix"
14090 exec_prefix="$acl_final_exec_prefix"
14092 exec_prefix="$acl_save_exec_prefix"
14093 prefix="$acl_save_prefix"
14095 if test "X$x" = "X-L$found_dir"; then
14100 if test -z "$haveit"; then
14101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14103 if test "$hardcode_minus_L" != no; then
14104 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14106 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14112 if test "X$found_a" != "X"; then
14113 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14115 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14118 additional_includedir=
14119 case "$found_dir" in
14121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14122 additional_includedir="$basedir/include"
14125 if test "X$additional_includedir" != "X"; then
14126 if test "X$additional_includedir" != "X/usr/include"; then
14128 if test "X$additional_includedir" = "X/usr/local/include"; then
14129 if test -n "$GCC"; then
14131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14135 if test -z "$haveit"; then
14136 for x in $CPPFLAGS $INCINTL; do
14138 acl_save_prefix="$prefix"
14139 prefix="$acl_final_prefix"
14140 acl_save_exec_prefix="$exec_prefix"
14141 exec_prefix="$acl_final_exec_prefix"
14143 exec_prefix="$acl_save_exec_prefix"
14144 prefix="$acl_save_prefix"
14146 if test "X$x" = "X-I$additional_includedir"; then
14151 if test -z "$haveit"; then
14152 if test -d "$additional_includedir"; then
14153 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14159 if test -n "$found_la"; then
14160 save_libdir="$libdir"
14161 case "$found_la" in
14162 */* | *\\*) . "$found_la" ;;
14163 *) . "./$found_la" ;;
14165 libdir="$save_libdir"
14166 for dep in $dependency_libs; do
14169 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14170 if test "X$additional_libdir" != "X/usr/lib"; then
14172 if test "X$additional_libdir" = "X/usr/local/lib"; then
14173 if test -n "$GCC"; then
14175 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14179 if test -z "$haveit"; then
14181 for x in $LDFLAGS $LIBINTL; do
14183 acl_save_prefix="$prefix"
14184 prefix="$acl_final_prefix"
14185 acl_save_exec_prefix="$exec_prefix"
14186 exec_prefix="$acl_final_exec_prefix"
14188 exec_prefix="$acl_save_exec_prefix"
14189 prefix="$acl_save_prefix"
14191 if test "X$x" = "X-L$additional_libdir"; then
14196 if test -z "$haveit"; then
14197 if test -d "$additional_libdir"; then
14198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14202 for x in $LDFLAGS $LTLIBINTL; do
14204 acl_save_prefix="$prefix"
14205 prefix="$acl_final_prefix"
14206 acl_save_exec_prefix="$exec_prefix"
14207 exec_prefix="$acl_final_exec_prefix"
14209 exec_prefix="$acl_save_exec_prefix"
14210 prefix="$acl_save_prefix"
14212 if test "X$x" = "X-L$additional_libdir"; then
14217 if test -z "$haveit"; then
14218 if test -d "$additional_libdir"; then
14219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14227 if test "$enable_rpath" != no; then
14229 for x in $rpathdirs; do
14230 if test "X$x" = "X$dir"; then
14235 if test -z "$haveit"; then
14236 rpathdirs="$rpathdirs $dir"
14239 for x in $ltrpathdirs; do
14240 if test "X$x" = "X$dir"; then
14245 if test -z "$haveit"; then
14246 ltrpathdirs="$ltrpathdirs $dir"
14251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14257 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14264 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14271 if test "X$rpathdirs" != "X"; then
14272 if test -n "$hardcode_libdir_separator"; then
14274 for found_dir in $rpathdirs; do
14275 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14277 acl_save_libdir="$libdir"
14279 eval flag=\"$hardcode_libdir_flag_spec\"
14280 libdir="$acl_save_libdir"
14281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14283 for found_dir in $rpathdirs; do
14284 acl_save_libdir="$libdir"
14285 libdir="$found_dir"
14286 eval flag=\"$hardcode_libdir_flag_spec\"
14287 libdir="$acl_save_libdir"
14288 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14292 if test "X$ltrpathdirs" != "X"; then
14293 for found_dir in $ltrpathdirs; do
14294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14298 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14299 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14300 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 gt_save_CPPFLAGS="$CPPFLAGS"
14304 CPPFLAGS="$CPPFLAGS $INCINTL"
14305 gt_save_LIBS="$LIBS"
14306 LIBS="$LIBS $LIBINTL"
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 #include <libintl.h>
14314 extern int _nl_msg_cat_cntr;
14319 const char *_nl_expand_alias (const char *);
14323 bindtextdomain ("", "");
14324 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14329 rm -f conftest.$ac_objext conftest$ac_exeext
14330 if { (ac_try="$ac_link"
14331 case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_link") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest$ac_exeext'
14354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 gt_cv_func_gnugettext1_libintl=yes
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 gt_cv_func_gnugettext1_libintl=no
14371 rm -f core conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14374 LIBS="$LIBS $LIBICONV"
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <libintl.h>
14382 extern int _nl_msg_cat_cntr;
14387 const char *_nl_expand_alias (const char *);
14391 bindtextdomain ("", "");
14392 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14397 rm -f conftest.$ac_objext conftest$ac_exeext
14398 if { (ac_try="$ac_link"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_link") 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14412 { (case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_try") 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_try") 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 LIBINTL="$LIBINTL $LIBICONV"
14432 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14433 gt_cv_func_gnugettext1_libintl=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14445 CPPFLAGS="$gt_save_CPPFLAGS"
14446 LIBS="$gt_save_LIBS"
14448 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14449 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14452 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14453 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14454 && test "$PACKAGE" != gettext-runtime \
14455 && test "$PACKAGE" != gettext-tools; }; then
14456 gt_use_preinstalled_gnugettext=yes
14464 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14465 nls_cv_use_gnu_gettext=yes
14469 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14470 BUILD_INCLUDED_LIBINTL=yes
14471 USE_INCLUDED_LIBINTL=yes
14472 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14473 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14474 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14478 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14479 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14484 if test -n "$INTL_MACOSX_LIBS"; then
14485 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14486 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14487 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14488 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14492 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14493 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14495 cat >>confdefs.h <<\_ACEOF
14496 #define ENABLE_NLS 1
14504 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14505 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14506 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14507 echo "${ECHO_T}$USE_NLS" >&6; }
14508 if test "$USE_NLS" = "yes"; then
14509 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14510 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14511 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14512 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14513 gt_source="external libintl"
14518 gt_source="included intl directory"
14520 { echo "$as_me:$LINENO: result: $gt_source" >&5
14521 echo "${ECHO_T}$gt_source" >&6; }
14524 if test "$USE_NLS" = "yes"; then
14526 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14527 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14528 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14529 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14530 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14531 echo "${ECHO_T}$LIBINTL" >&6; }
14533 for element in $INCINTL; do
14535 for x in $CPPFLAGS; do
14537 acl_save_prefix="$prefix"
14538 prefix="$acl_final_prefix"
14539 acl_save_exec_prefix="$exec_prefix"
14540 exec_prefix="$acl_final_exec_prefix"
14542 exec_prefix="$acl_save_exec_prefix"
14543 prefix="$acl_save_prefix"
14545 if test "X$x" = "X$element"; then
14550 if test -z "$haveit"; then
14551 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_GETTEXT 1
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_DCGETTEXT 1
14573 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14574 BUILD_INCLUDED_LIBINTL=yes
14581 nls_cv_header_intl=
14582 nls_cv_header_libgt=
14594 if test "$USE_INCLUDED_LIBINTL" = yes; then
14595 INTLOBJS="\$(GETTOBJS)"
14599 INTL_LIBTOOL_SUFFIX_PREFIX=
14603 INTLLIBS="$LIBINTL"
14616 support_postgresql=no
14617 support_smartalloc=yes
14618 support_readline=yes
14622 support_wx_console=no
14627 support_static_tools=no
14628 support_static_fd=no
14629 support_static_sd=no
14630 support_static_dir=no
14631 support_static_cons=no
14633 build_client_only=no
14641 # -------------------------------------------
14642 # gnome (default off)
14643 # -------------------------------------------
14644 # Check whether --enable-gnome was given.
14645 if test "${enable_gnome+set}" = set; then
14646 enableval=$enable_gnome; if test x$enableval = xyes; then
14653 if test x$support_gnome = xyes; then
14654 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14656 if test $pkg = 0; then
14657 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14658 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14659 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14660 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14665 GNOME_DIR=src/gnome2-console
14666 gnome_version="Version 2.x"
14668 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14669 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14670 { (exit 1); exit 1; }; }
14675 # -------------------------------------------
14676 # bat (default off)
14677 # -------------------------------------------
14678 # Check whether --enable-bat was given.
14679 if test "${enable_bat+set}" = set; then
14680 enableval=$enable_bat; if test x$enableval = xyes; then
14682 cat >>confdefs.h <<\_ACEOF
14692 if test x$support_bat = xyes; then
14693 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14695 if test $pkg = 0; then
14696 BAT_DIR=src/qt-console
14698 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14699 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14700 { (exit 1); exit 1; }; }
14706 # -------------------------------------------
14707 # wx-console (default off)
14708 # -------------------------------------------
14709 # Check whether --enable-wx-console was given.
14710 if test "${enable_wx_console+set}" = set; then
14711 enableval=$enable_wx_console; if test x$enableval = xyes; then
14712 support_wx_console=yes
14718 if test x$support_wx_console = xyes; then
14719 abc=`$WXCONFIG $WXFLAGS --cppflags`
14721 if test $pkg = 0; then
14722 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14723 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14724 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14728 WX_DIR=src/wx-console
14731 echo "wx-config program not found. wx-console disabled."
14733 support_wx_console=no
14739 # -------------------------------------------
14740 # tray-monitor (default off)
14741 # -------------------------------------------
14742 # Check whether --enable-tray-monitor was given.
14743 if test "${enable_tray_monitor+set}" = set; then
14744 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14745 support_tray_monitor=yes
14751 if test x$support_tray_monitor = xyes; then
14752 abc=`$PKGCONFIG --exists gtk+-2.0`
14754 if test $pkg = 0; then
14755 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14756 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14759 TRAY_MONITOR_DIR=src/tray-monitor
14760 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14762 if test $pkg = 0; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_GTK_2_4 1
14772 # -------------------------------------------
14773 # smartalloc (default off)
14774 # -------------------------------------------
14775 # Check whether --enable-smartalloc was given.
14776 if test "${enable_smartalloc+set}" = set; then
14777 enableval=$enable_smartalloc; if test x$enableval = xno; then
14778 support_smartalloc=no
14783 if test x$support_smartalloc = xyes; then
14784 cat >>confdefs.h <<\_ACEOF
14785 #define SMARTALLOC 1
14790 # -------------------------------------------
14791 # static-tools (default off)
14792 # -------------------------------------------
14793 # Check whether --enable-static-tools was given.
14794 if test "${enable_static_tools+set}" = set; then
14795 enableval=$enable_static_tools; if test x$enableval = xyes; then
14796 support_static_tools=yes
14802 if test x$support_static_tools = xyes; then
14803 TTOOL_LDFLAGS="-static"
14807 # -------------------------------------------
14808 # static-fd (default off)
14809 # -------------------------------------------
14810 # Check whether --enable-static-fd was given.
14811 if test "${enable_static_fd+set}" = set; then
14812 enableval=$enable_static_fd; if test x$enableval = xyes; then
14813 support_static_fd=yes
14819 if test x$support_static_fd = xyes; then
14820 STATIC_FD="static-bacula-fd"
14824 # -------------------------------------------
14825 # static-sd (default off)
14826 # -------------------------------------------
14827 # Check whether --enable-static-sd was given.
14828 if test "${enable_static_sd+set}" = set; then
14829 enableval=$enable_static_sd; if test x$enableval = xyes; then
14830 support_static_sd=yes
14836 if test x$support_static_sd = xyes; then
14837 STATIC_SD="static-bacula-sd"
14841 # -------------------------------------------
14842 # static-dir (default off)
14843 # -------------------------------------------
14844 # Check whether --enable-static-dir was given.
14845 if test "${enable_static_dir+set}" = set; then
14846 enableval=$enable_static_dir; if test x$enableval = xyes; then
14847 support_static_dir=yes
14853 if test x$support_static_dir = xyes; then
14854 STATIC_DIR="static-bacula-dir"
14858 # -------------------------------------------
14859 # static-cons (default off)
14860 # -------------------------------------------
14861 # Check whether --enable-static-cons was given.
14862 if test "${enable_static_cons+set}" = set; then
14863 enableval=$enable_static_cons; if test x$enableval = xyes; then
14864 support_static_cons=yes
14872 if test x$support_static_cons = xyes; then
14873 STATIC_CONS="static-bconsole"
14874 STATIC_GNOME_CONS="static-gnome-console"
14875 STATIC_WX_CONS="static-wx-console"
14881 # -------------------------------------------
14882 # client_only (default off)
14883 # -------------------------------------------
14884 # Check whether --enable-client-only was given.
14885 if test "${enable_client_only+set}" = set; then
14886 enableval=$enable_client_only; if test x$enableval = xyes; then
14887 build_client_only=yes
14893 if test x$build_client_only = xno; then
14900 # -------------------------------------------
14901 # director (default on)
14902 # -------------------------------------------
14903 # Check whether --enable-build-dird was given.
14904 if test "${enable_build_dird+set}" = set; then
14905 enableval=$enable_build_dird; if test x$enableval = xno; then
14910 if test x$build_dird = xyes; then
14911 DIRD_DIR="src/dird"
14912 DIR_TOOLS="DIRTOOLS"
14915 DIR_TOOLS="NODIRTOOLS"
14920 # -------------------------------------------
14921 # stored (default on)
14922 # -------------------------------------------
14923 # Check whether --enable-build-stored was given.
14924 if test "${enable_build_stored+set}" = set; then
14925 enableval=$enable_build_stored; if test x$enableval = xno; then
14930 if test x$build_stored = xyes; then
14931 STORED_DIR="src/stored"
14937 # ---------------------------------------------------
14938 # Check for conio (Bacula readline substitute)(
14939 # ---------------------------------------------------
14940 # this allows you to turn it completely off
14941 # Check whether --enable-conio was given.
14942 if test "${enable_conio+set}" = set; then
14943 enableval=$enable_conio; if test x$enableval = xno; then
14951 # ---------------------------------------------------
14952 # Check for IPv6 support
14953 # ---------------------------------------------------
14954 # this allows you to turn it completely off
14956 # Check whether --enable-ipv6 was given.
14957 if test "${enable_ipv6+set}" = set; then
14958 enableval=$enable_ipv6; if test x$enableval = xno; then
14965 if test x$support_ipv6 = xyes; then
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/types.h>
14973 #include <sys/socket.h>
14974 #include <netinet/in.h>
14978 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (ac_try="$ac_link"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_link") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest$ac_exeext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15029 if test x$support_ipv6 = xyes; then
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_IPV6 1
15040 if test x$support_conio = xyes; then
15041 if test "${ac_cv_header_termcap_h+set}" = set; then
15042 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15043 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_termcap_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15048 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15050 # Is the header compilable?
15051 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15052 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 $ac_includes_default
15060 #include <termcap.h>
15062 rm -f conftest.$ac_objext
15063 if { (ac_try="$ac_compile"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_compile") 2>conftest.er1
15071 grep -v '^ *+' conftest.er1 >conftest.err
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_try") 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_try") 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_header_compiler=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_header_compiler=no
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15106 echo "${ECHO_T}$ac_header_compiler" >&6; }
15108 # Is the header present?
15109 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15110 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 #include <termcap.h>
15119 if { (ac_try="$ac_cpp conftest.$ac_ext"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } >/dev/null; then
15132 if test -s conftest.err; then
15133 ac_cpp_err=$ac_c_preproc_warn_flag
15134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15141 if test -z "$ac_cpp_err"; then
15142 ac_header_preproc=yes
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 ac_header_preproc=no
15150 rm -f conftest.err conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15152 echo "${ECHO_T}$ac_header_preproc" >&6; }
15154 # So? What about this header?
15155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15157 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15158 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15160 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15161 ac_header_preproc=yes
15164 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15165 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15167 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15169 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15171 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15175 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15179 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15180 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_termcap_h+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 ac_cv_header_termcap_h=$ac_header_preproc
15186 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15187 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15190 if test $ac_cv_header_termcap_h = yes; then
15191 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15192 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15193 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 ac_check_lib_save_LIBS=$LIBS
15197 LIBS="-ltermcap $LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_link") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest$ac_exeext'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_cv_lib_termcap_tgetent=yes
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 ac_cv_lib_termcap_tgetent=no
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_check_lib_save_LIBS
15266 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15267 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15268 if test $ac_cv_lib_termcap_tgetent = yes; then
15269 CONS_LIBS="-ltermcap"
15273 support_readline=no
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_CONIO 1
15281 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15282 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15283 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 ac_check_lib_save_LIBS=$LIBS
15287 LIBS="-lncurses $LIBS"
15288 cat >conftest.$ac_ext <<_ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15295 /* Override any GCC internal prototype to avoid an error.
15296 Use char because int might match the return type of a GCC
15297 builtin and then its argument prototype would still apply. */
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_link") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest$ac_exeext'
15335 { (case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_try") 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_lib_ncurses_tgetent=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_lib_ncurses_tgetent=no
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 LIBS=$ac_check_lib_save_LIBS
15356 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15357 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15358 if test $ac_cv_lib_ncurses_tgetent = yes; then
15359 CONS_LIBS="-lncurses"
15363 support_readline=no
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_CONIO 1
15379 for ac_header in curses.h
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 ac_res=`eval echo '${'$as_ac_Header'}'`
15389 { echo "$as_me:$LINENO: result: $ac_res" >&5
15390 echo "${ECHO_T}$ac_res" >&6; }
15392 # Is the header compilable?
15393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 $ac_includes_default
15402 #include <$ac_header>
15404 rm -f conftest.$ac_objext
15405 if { (ac_try="$ac_compile"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_compile") 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_header_compiler=yes
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_header_compiler=no
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448 echo "${ECHO_T}$ac_header_compiler" >&6; }
15450 # Is the header present?
15451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <$ac_header>
15461 if { (ac_try="$ac_cpp conftest.$ac_ext"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15469 grep -v '^ *+' conftest.er1 >conftest.err
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } >/dev/null; then
15474 if test -s conftest.err; then
15475 ac_cpp_err=$ac_c_preproc_warn_flag
15476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15483 if test -z "$ac_cpp_err"; then
15484 ac_header_preproc=yes
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 ac_header_preproc=no
15492 rm -f conftest.err conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494 echo "${ECHO_T}$ac_header_preproc" >&6; }
15496 # So? What about this header?
15497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15503 ac_header_preproc=yes
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 eval "$as_ac_Header=\$ac_header_preproc"
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529 { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15534 cat >>confdefs.h <<_ACEOF
15535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15542 { echo "$as_me:$LINENO: checking for term.h" >&5
15543 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15544 if test "${ac_cv_header_term_h+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15554 #include <curses.h>
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_cv_header_term_h=yes
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 ac_cv_header_term_h=no
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15605 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15606 if test $ac_cv_header_term_h = yes; then
15607 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15608 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15609 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 ac_check_lib_save_LIBS=$LIBS
15613 LIBS="-lcurses $LIBS"
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15621 /* Override any GCC internal prototype to avoid an error.
15622 Use char because int might match the return type of a GCC
15623 builtin and then its argument prototype would still apply. */
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_link") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651 { (case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_try") 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest$ac_exeext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_lib_curses_tgetent=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_curses_tgetent=no
15678 rm -f core conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15683 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15684 if test $ac_cv_lib_curses_tgetent = yes; then
15685 CONS_LIBS="-lcurses"
15689 support_readline=no
15691 cat >>confdefs.h <<\_ACEOF
15692 #define HAVE_CONIO 1
15700 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15711 # ---------------------------------------------------
15712 # Check for readline support/directory (default off)
15713 # ---------------------------------------------------
15714 # this allows you to turn it completely off
15715 # Check whether --enable-readline was given.
15716 if test "${enable_readline+set}" = set; then
15717 enableval=$enable_readline; if test x$enableval = xno; then
15718 support_readline=no
15725 if test x$support_readline = xyes; then
15727 # Check whether --with-readline was given.
15728 if test "${with_readline+set}" = set; then
15729 withval=$with_readline;
15730 case "$with_readline" in
15733 if test -f ${with_readline}/readline.h; then
15734 CONS_INC="-I${with_readline}"
15735 CONS_LDFLAGS="-L$with_readline"
15736 elif test -f ${with_readline}/include/readline/readline.h; then
15737 CONS_INC="-I${with_readline}/include/readline"
15738 CONS_LDFLAGS="-L${with_readline}/lib"
15739 with_readline="${with_readline}/include/readline"
15741 with_readline="/usr/include/readline"
15743 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15746 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 ac_res=`eval echo '${'$as_ac_Header'}'`
15751 { echo "$as_me:$LINENO: result: $ac_res" >&5
15752 echo "${ECHO_T}$ac_res" >&6; }
15754 # Is the header compilable?
15755 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15756 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 #include <${with_readline}/readline.h>
15766 rm -f conftest.$ac_objext
15767 if { (ac_try="$ac_compile"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_header_compiler=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15814 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <${with_readline}/readline.h>
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null; then
15836 if test -s conftest.err; then
15837 ac_cpp_err=$ac_c_preproc_warn_flag
15838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15845 if test -z "$ac_cpp_err"; then
15846 ac_header_preproc=yes
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_preproc=no
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15858 # So? What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15861 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15862 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15864 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15865 ac_header_preproc=yes
15868 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15869 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15871 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15873 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15875 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15877 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15879 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15883 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15884 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 eval "$as_ac_Header=\$ac_header_preproc"
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define HAVE_READLINE 1
15900 CONS_LIBS="-lreadline -lhistory -ltermcap"
15905 echo "readline.h not found. readline turned off ..."
15917 # check for standard readline library
15918 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15919 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15920 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15921 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15925 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15927 # Is the header compilable?
15928 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15929 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 $ac_includes_default
15937 #include </usr/include/readline/readline.h>
15939 rm -f conftest.$ac_objext
15940 if { (ac_try="$ac_compile"
15941 case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_compile") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15954 { (case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_try") 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_try") 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 ac_header_compiler=yes
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_header_compiler=no
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15983 echo "${ECHO_T}$ac_header_compiler" >&6; }
15985 # Is the header present?
15986 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15987 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15988 cat >conftest.$ac_ext <<_ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #include </usr/include/readline/readline.h>
15996 if { (ac_try="$ac_cpp conftest.$ac_ext"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } >/dev/null; then
16009 if test -s conftest.err; then
16010 ac_cpp_err=$ac_c_preproc_warn_flag
16011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16018 if test -z "$ac_cpp_err"; then
16019 ac_header_preproc=yes
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_preproc=no
16027 rm -f conftest.err conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6; }
16031 # So? What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16034 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16038 ac_header_preproc=yes
16041 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16056 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16057 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16058 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16063 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16064 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16067 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_READLINE 1
16073 CONS_INC="-I/usr/include/readline"
16074 CONS_LIBS="-lreadline -ltermcap"
16078 # Did not find standard library, so try Bacula's default
16079 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16081 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16082 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 ac_res=`eval echo '${'$as_ac_Header'}'`
16087 { echo "$as_me:$LINENO: result: $ac_res" >&5
16088 echo "${ECHO_T}$ac_res" >&6; }
16090 # Is the header compilable?
16091 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16092 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 $ac_includes_default
16100 #include <${TOP_DIR}/depkgs/readline/readline.h>
16102 rm -f conftest.$ac_objext
16103 if { (ac_try="$ac_compile"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_compile") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
16127 { (case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_try") 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_header_compiler=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_header_compiler=no
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6; }
16148 # Is the header present?
16149 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16150 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <${TOP_DIR}/depkgs/readline/readline.h>
16159 if { (ac_try="$ac_cpp conftest.$ac_ext"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } >/dev/null; then
16172 if test -s conftest.err; then
16173 ac_cpp_err=$ac_c_preproc_warn_flag
16174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16181 if test -z "$ac_cpp_err"; then
16182 ac_header_preproc=yes
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 ac_header_preproc=no
16190 rm -f conftest.err conftest.$ac_ext
16191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16192 echo "${ECHO_T}$ac_header_preproc" >&6; }
16194 # So? What about this header?
16195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16197 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16198 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16200 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16201 ac_header_preproc=yes
16204 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16205 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16207 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16209 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16211 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16213 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16215 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16219 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16220 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 eval "$as_ac_Header=\$ac_header_preproc"
16226 ac_res=`eval echo '${'$as_ac_Header'}'`
16227 { echo "$as_me:$LINENO: result: $ac_res" >&5
16228 echo "${ECHO_T}$ac_res" >&6; }
16231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16232 cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_READLINE 1
16237 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16238 CONS_LIBS="-lreadline -lhistory -ltermcap"
16239 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16240 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16244 echo "readline.h not found. readline turned off ..."
16271 # Minimal stuff for readline Makefile configuration
16274 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16275 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16276 if test "${ac_cv_header_stat_broken+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <sys/types.h>
16286 #include <sys/stat.h>
16288 #if defined S_ISBLK && defined S_IFDIR
16289 # if S_ISBLK (S_IFDIR)
16294 #if defined S_ISBLK && defined S_IFCHR
16295 # if S_ISBLK (S_IFCHR)
16300 #if defined S_ISLNK && defined S_IFREG
16301 # if S_ISLNK (S_IFREG)
16306 #if defined S_ISSOCK && defined S_IFREG
16307 # if S_ISSOCK (S_IFREG)
16313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16314 $EGREP "You lose" >/dev/null 2>&1; then
16315 ac_cv_header_stat_broken=yes
16317 ac_cv_header_stat_broken=no
16322 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16323 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16324 if test $ac_cv_header_stat_broken = yes; then
16326 cat >>confdefs.h <<\_ACEOF
16327 #define STAT_MACROS_BROKEN 1
16337 ac_header_dirent=no
16338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16339 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16340 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16341 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <sys/types.h>
16363 rm -f conftest.$ac_objext
16364 if { (ac_try="$ac_compile"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_compile") 2>conftest.er1
16372 grep -v '^ *+' conftest.er1 >conftest.err
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378 { (case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_try") 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; } &&
16387 { ac_try='test -s conftest.$ac_objext'
16388 { (case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_try") 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 eval "$as_ac_Header=yes"
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 eval "$as_ac_Header=no"
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411 cat >>confdefs.h <<_ACEOF
16412 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16415 ac_header_dirent=$ac_hdr; break
16419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16420 if test $ac_header_dirent = dirent.h; then
16421 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16422 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16423 if test "${ac_cv_search_opendir+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 ac_func_search_save_LIBS=$LIBS
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16434 /* Override any GCC internal prototype to avoid an error.
16435 Use char because int might match the return type of a GCC
16436 builtin and then its argument prototype would still apply. */
16449 for ac_lib in '' dir; do
16450 if test -z "$ac_lib"; then
16451 ac_res="none required"
16454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16456 rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_search_opendir=$ac_res
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16498 rm -f core conftest.err conftest.$ac_objext \
16500 if test "${ac_cv_search_opendir+set}" = set; then
16504 if test "${ac_cv_search_opendir+set}" = set; then
16507 ac_cv_search_opendir=no
16509 rm conftest.$ac_ext
16510 LIBS=$ac_func_search_save_LIBS
16512 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16513 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16514 ac_res=$ac_cv_search_opendir
16515 if test "$ac_res" != no; then
16516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16521 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16523 if test "${ac_cv_search_opendir+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 ac_func_search_save_LIBS=$LIBS
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16534 /* Override any GCC internal prototype to avoid an error.
16535 Use char because int might match the return type of a GCC
16536 builtin and then its argument prototype would still apply. */
16549 for ac_lib in '' x; do
16550 if test -z "$ac_lib"; then
16551 ac_res="none required"
16554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_search_opendir=$ac_res
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16598 rm -f core conftest.err conftest.$ac_objext \
16600 if test "${ac_cv_search_opendir+set}" = set; then
16604 if test "${ac_cv_search_opendir+set}" = set; then
16607 ac_cv_search_opendir=no
16609 rm conftest.$ac_ext
16610 LIBS=$ac_func_search_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16613 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16614 ac_res=$ac_cv_search_opendir
16615 if test "$ac_res" != no; then
16616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16629 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645 #define $ac_func innocuous_$ac_func
16647 /* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16653 # include <limits.h>
16655 # include <assert.h>
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16667 /* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670 #if defined __stub_$ac_func || defined __stub___$ac_func
16677 return $ac_func ();
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 eval "$as_ac_var=yes"
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 eval "$as_ac_var=no"
16724 rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16727 ac_res=`eval echo '${'$as_ac_var'}'`
16728 { echo "$as_me:$LINENO: result: $ac_res" >&5
16729 echo "${ECHO_T}$ac_res" >&6; }
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16740 for ac_func in nanosleep nl_langinfo
16742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16756 #define $ac_func innocuous_$ac_func
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char $ac_func (); below.
16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761 <limits.h> exists even on freestanding compilers. */
16764 # include <limits.h>
16766 # include <assert.h>
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16778 /* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
16781 #if defined __stub_$ac_func || defined __stub___$ac_func
16788 return $ac_func ();
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (ac_try="$ac_link"
16795 case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_link") 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16808 { (case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_try") 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; } &&
16817 { ac_try='test -s conftest$ac_exeext'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 eval "$as_ac_var=yes"
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 eval "$as_ac_var=no"
16835 rm -f core conftest.err conftest.$ac_objext \
16836 conftest$ac_exeext conftest.$ac_ext
16838 ac_res=`eval echo '${'$as_ac_var'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_var'}'` = yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16850 for ac_header in varargs.h
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860 { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16863 # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16873 #include <$ac_header>
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_compile") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_header_compiler=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_header_compiler=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } >/dev/null; then
16945 if test -s conftest.err; then
16946 ac_cpp_err=$ac_c_preproc_warn_flag
16947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16954 if test -z "$ac_cpp_err"; then
16955 ac_header_preproc=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_header_preproc=no
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16967 # So? What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974 ac_header_preproc=yes
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 eval "$as_ac_Header=\$ac_header_preproc"
16999 ac_res=`eval echo '${'$as_ac_Header'}'`
17000 { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17014 # End of readline/conio stuff
17015 # -----------------------------------------------------------------------
17017 # -----------------------------------------------------------------------
17018 # Check for Python support
17020 { echo "$as_me:$LINENO: checking for Python support" >&5
17021 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17023 # Check whether --with-python was given.
17024 if test "${with_python+set}" = set; then
17025 withval=$with_python;
17028 if test "$withval" != "no"; then
17029 if test "$withval" = "yes"; then
17030 for python_root in /usr /usr/local /usr/sfw; do
17031 for ver in python2.2 python2.3 python2.4 python2.5; do
17032 if test -f $python_root/include/${ver}/Python.h; then
17033 PYTHON_INCDIR=-I$python_root/include/${ver}
17034 if test -d $python_root/lib64/${ver}/config; then
17035 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17037 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17043 if test x$PYTHON_INCDIR = x; then
17044 if test -f $prefix/include/Python.h; then
17045 PYTHON_INCDIR=-I$prefix/include
17046 if test -d $prefix/lib64/config; then
17047 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17049 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17052 { echo "$as_me:$LINENO: result: no" >&5
17053 echo "${ECHO_T}no" >&6; }
17054 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17055 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17056 { (exit 1); exit 1; }; }
17060 if test -f $withval/Python.h; then
17061 PYTHON_INCDIR=-I$withval
17062 PYTHON_LIBS="-L$withval/config -lpython"
17063 elif test -f $withval/include/Python.h; then
17064 PYTHON_INCDIR=-I$withval/include
17065 if test -d $withval/lib64/config; then
17066 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17068 PYTHON_LIBS="-L$withval/lib/config -lpython"
17070 elif test -f $withval/include/python/Python.h; then
17071 PYTHON_INCDIR=-I$withval/include/python
17072 if test -d $withval/lib64/python/config; then
17073 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17075 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17078 { echo "$as_me:$LINENO: result: no" >&5
17079 echo "${ECHO_T}no" >&6; }
17080 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17081 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17082 { (exit 1); exit 1; }; }
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_PYTHON 1
17089 { echo "$as_me:$LINENO: result: yes" >&5
17090 echo "${ECHO_T}yes" >&6; }
17092 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17093 echo "$as_me: checking for more Python libs" >&6;}
17094 saved_LIBS="$LIBS"; LIBS=
17095 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17096 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17097 if test "${ac_cv_search_shm_open+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 ac_func_search_save_LIBS=$LIBS
17101 cat >conftest.$ac_ext <<_ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17108 /* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17118 return shm_open ();
17123 for ac_lib in '' rt; do
17124 if test -z "$ac_lib"; then
17125 ac_res="none required"
17128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_search_shm_open=$ac_res
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17172 rm -f core conftest.err conftest.$ac_objext \
17174 if test "${ac_cv_search_shm_open+set}" = set; then
17178 if test "${ac_cv_search_shm_open+set}" = set; then
17181 ac_cv_search_shm_open=no
17183 rm conftest.$ac_ext
17184 LIBS=$ac_func_search_save_LIBS
17186 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17187 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17188 ac_res=$ac_cv_search_shm_open
17189 if test "$ac_res" != no; then
17190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17196 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17197 if test "${ac_cv_lib_util_openpty+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lutil $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 /* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_lib_util_openpty=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_cv_lib_util_openpty=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17271 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17272 if test $ac_cv_lib_util_openpty = yes; then
17273 cat >>confdefs.h <<_ACEOF
17274 #define HAVE_LIBUTIL 1
17277 LIBS="-lutil $LIBS"
17281 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17284 { echo "$as_me:$LINENO: result: no" >&5
17285 echo "${ECHO_T}no" >&6; }
17290 { echo "$as_me:$LINENO: result: no" >&5
17291 echo "${ECHO_T}no" >&6; }
17299 # Find where sockets are (especially for Solaris)
17300 # Do this before the TCP Wrappers test since tcp wrappers
17301 # uses the socket library and some linkers are stupid.
17303 { echo "$as_me:$LINENO: checking for socket" >&5
17304 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17305 if test "${ac_cv_func_socket+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316 #define socket innocuous_socket
17318 /* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char socket (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
17324 # include <limits.h>
17326 # include <assert.h>
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined __stub_socket || defined __stub___socket
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_cv_func_socket=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_func_socket=no
17395 rm -f core conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17399 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17400 if test $ac_cv_func_socket = yes; then
17401 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17402 echo "${ECHO_T}using libc's socket" >&6; }
17405 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17406 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17407 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lxnet $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17419 /* Override any GCC internal prototype to avoid an error.
17420 Use char because int might match the return type of a GCC
17421 builtin and then its argument prototype would still apply. */
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_lib_xnet_socket=yes
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_lib_xnet_socket=no
17476 rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17481 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17482 if test $ac_cv_lib_xnet_socket = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_LIBXNET 1
17487 LIBS="-lxnet $LIBS"
17492 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17493 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17494 if test "${ac_cv_lib_socket_socket+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 ac_check_lib_save_LIBS=$LIBS
17498 LIBS="-lsocket $LIBS"
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17506 /* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest$ac_exeext'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_lib_socket_socket=yes
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_lib_socket_socket=no
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17567 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17568 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17569 if test $ac_cv_lib_socket_socket = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define HAVE_LIBSOCKET 1
17574 LIBS="-lsocket $LIBS"
17579 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17580 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17581 if test "${ac_cv_lib_inet_socket+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-linet $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_link") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623 { (case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_try") 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 ac_cv_lib_inet_socket=yes
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17647 ac_cv_lib_inet_socket=no
17650 rm -f core conftest.err conftest.$ac_objext \
17651 conftest$ac_exeext conftest.$ac_ext
17652 LIBS=$ac_check_lib_save_LIBS
17654 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17655 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17656 if test $ac_cv_lib_inet_socket = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define HAVE_LIBINET 1
17661 LIBS="-linet $LIBS"
17669 # -----------------------------------------------------------
17670 # Check whether user wants TCP wrappers support (default off)
17671 # -----------------------------------------------------------
17675 # Check whether --with-tcp-wrappers was given.
17676 if test "${with_tcp_wrappers+set}" = set; then
17677 withval=$with_tcp_wrappers;
17678 if test "x$withval" != "xno" ; then
17680 LIBS="$saved_LIBS -lwrap"
17681 { echo "$as_me:$LINENO: checking for libwrap" >&5
17682 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17683 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17684 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17685 if test "${ac_cv_search_nanosleep+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_func_search_save_LIBS=$LIBS
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17706 return nanosleep ();
17711 for ac_lib in '' rt; do
17712 if test -z "$ac_lib"; then
17713 ac_res="none required"
17716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_search_nanosleep=$ac_res
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17760 rm -f core conftest.err conftest.$ac_objext \
17762 if test "${ac_cv_search_nanosleep+set}" = set; then
17766 if test "${ac_cv_search_nanosleep+set}" = set; then
17769 ac_cv_search_nanosleep=no
17771 rm conftest.$ac_ext
17772 LIBS=$ac_func_search_save_LIBS
17774 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17775 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17776 ac_res=$ac_cv_search_nanosleep
17777 if test "$ac_res" != no; then
17778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17788 #include <sys/types.h>
17790 int deny_severity = 0;
17791 int allow_severity = 0;
17792 struct request_info *req;
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17810 grep -v '^ *+' conftest.er1 >conftest.err
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17836 { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17838 cat >>confdefs.h <<\_ACEOF
17839 #define HAVE_LIBWRAP 1
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17851 LIBS="$saved_LIBS -lwrap -lnsl"
17852 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 #include <sys/types.h>
17861 int deny_severity = 0;
17862 int allow_severity = 0;
17863 struct request_info *req;
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_link") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17907 { echo "$as_me:$LINENO: result: yes" >&5
17908 echo "${ECHO_T}yes" >&6; }
17909 cat >>confdefs.h <<\_ACEOF
17910 #define HAVE_LIBWRAP 1
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17922 echo "$as_me: error: *** libwrap missing" >&2;}
17923 { (exit 1); exit 1; }; }
17927 rm -f core conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17940 # -----------------------------------------------------------
17941 # Check whether OpenSSL is available
17942 # -----------------------------------------------------------
17943 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17944 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17946 # Check whether --with-openssl was given.
17947 if test "${with_openssl+set}" = set; then
17948 withval=$with_openssl; with_openssl_directory=${withval}
17952 if test "x$with_openssl_directory" != "x"; then
17953 OPENSSL_LIBS="-lssl -lcrypto"
17956 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17957 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17958 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17961 saved_LIBS="${LIBS}"
17962 saved_CFLAGS="${CFLAGS}"
17963 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17964 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17966 cat >conftest.$ac_ext <<_ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972 #include <openssl/ssl.h>
17976 CRYPTO_set_id_callback(NULL);
17981 rm -f conftest.$ac_objext conftest$ac_exeext
17982 if { (ac_try="$ac_link"
17983 case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988 (eval "$ac_link") 2>conftest.er1
17990 grep -v '^ *+' conftest.er1 >conftest.err
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18017 support_crypto="yes"
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18027 rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 #include <openssl/evp.h>
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_link") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_openssl_sha2="yes"
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_openssl_sha2="no"
18088 rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18091 LIBS="${saved_LIBS}"
18092 CFLAGS="${saved_CFLAGS}"
18094 if test "$support_tls" = "yes"; then
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_OPENSSL 1
18101 cat >>confdefs.h <<\_ACEOF
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE_CRYPTO 1
18112 if test "$ac_cv_openssl_sha2" = "yes"; then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_SHA2 1
18121 support_crypto="no"
18126 { echo "$as_me:$LINENO: result: $support_tls" >&5
18127 echo "${ECHO_T}$support_tls" >&6; }
18132 # -----------------------------------------------------------
18133 # Python and OpenSSL are using dlopen
18134 # -----------------------------------------------------------
18136 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18137 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18138 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18139 if test "${ac_cv_search_dlopen+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 ac_func_search_save_LIBS=$LIBS
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18165 for ac_lib in '' dl; do
18166 if test -z "$ac_lib"; then
18167 ac_res="none required"
18170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_search_dlopen=$ac_res
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18214 rm -f core conftest.err conftest.$ac_objext \
18216 if test "${ac_cv_search_dlopen+set}" = set; then
18220 if test "${ac_cv_search_dlopen+set}" = set; then
18223 ac_cv_search_dlopen=no
18225 rm conftest.$ac_ext
18226 LIBS=$ac_func_search_save_LIBS
18228 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18229 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18230 ac_res=$ac_cv_search_dlopen
18231 if test "$ac_res" != no; then
18232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18238 # ------------------------------------------
18239 # Where to place working dir
18240 # ------------------------------------------
18241 working_dir=`eval echo ${prefix}/var/bacula/working`
18243 # Check whether --with-working-dir was given.
18244 if test "${with_working_dir+set}" = set; then
18245 withval=$with_working_dir;
18246 if test "x$withval" != "xno" ; then
18247 working_dir=$withval
18257 # ------------------------------------------
18258 # Where to place scriptdir (script files)
18259 # ------------------------------------------
18260 scriptdir=`eval echo ${sysconfdir}`
18262 # Check whether --with-scriptdir was given.
18263 if test "${with_scriptdir+set}" = set; then
18264 withval=$with_scriptdir;
18265 if test "x$withval" != "xno" ; then
18276 # ------------------------------------------
18277 # Where to send dump email
18278 # ------------------------------------------
18279 dump_email=root@localhost
18281 # Check whether --with-dump-email was given.
18282 if test "${with_dump_email+set}" = set; then
18283 withval=$with_dump_email;
18284 if test "x$withval" != "xno" ; then
18285 dump_email=$withval
18294 # ------------------------------------------
18295 # Where to send job email
18296 # ------------------------------------------
18297 job_email=root@localhost
18299 # Check whether --with-job-email was given.
18300 if test "${with_job_email+set}" = set; then
18301 withval=$with_job_email;
18302 if test "x$withval" != "xno" ; then
18312 # ------------------------------------------
18313 # Where to find smtp host
18314 # ------------------------------------------
18315 smtp_host=localhost
18317 # Check whether --with-smtp_host was given.
18318 if test "${with_smtp_host+set}" = set; then
18319 withval=$with_smtp_host;
18320 if test "x$withval" != "xno" ; then
18331 # ------------------------------------
18332 # Where to place pid files
18333 # ------------------------------------
18336 # Check whether --with-pid-dir was given.
18337 if test "${with_pid_dir+set}" = set; then
18338 withval=$with_pid_dir;
18339 if test "x$withval" != "xno" ; then
18347 cat >>confdefs.h <<_ACEOF
18348 #define _PATH_BACULA_PIDDIR "$piddir"
18354 # ------------------------------------
18355 # Where to place subsys "lock file"
18356 # ------------------------------------
18357 subsysdir=/var/run/subsys
18359 # Check whether --with-subsys-dir was given.
18360 if test "${with_subsys_dir+set}" = set; then
18361 withval=$with_subsys_dir;
18362 if test "x$withval" != "xno" ; then
18374 # ------------------------------------
18375 # Where to start assigning ports
18376 # ------------------------------------
18379 # Check whether --with-baseport was given.
18380 if test "${with_baseport+set}" = set; then
18381 withval=$with_baseport;
18382 if test "x$withval" != "xno" ; then
18391 dir_port=`expr $baseport`
18392 fd_port=`expr $baseport + 1`
18393 sd_port=`expr $fd_port + 1`
18400 # ------------------------------------------
18401 # Generate passwords
18402 # ------------------------------------------
18405 # Check whether --with-dir-password was given.
18406 if test "${with_dir_password+set}" = set; then
18407 withval=$with_dir_password;
18408 if test "x$withval" != "xno" ; then
18409 dir_password=$withval
18416 if test "x$dir_password" = "x" ; then
18417 if test "x$OPENSSL" = "xnone" ; then
18418 key=`autoconf/randpass 33`
18420 key=`openssl rand -base64 33`
18427 # Check whether --with-fd-password was given.
18428 if test "${with_fd_password+set}" = set; then
18429 withval=$with_fd_password;
18430 if test "x$withval" != "xno" ; then
18431 fd_password=$withval
18438 if test "x$fd_password" = "x" ; then
18439 if test "x$OPENSSL" = "xnone" ; then
18440 key=`autoconf/randpass 37`
18442 key=`openssl rand -base64 33`
18449 # Check whether --with-sd-password was given.
18450 if test "${with_sd_password+set}" = set; then
18451 withval=$with_sd_password;
18452 if test "x$withval" != "xno" ; then
18453 sd_password=$withval
18460 if test "x$sd_password" = "x" ; then
18461 if test "x$OPENSSL" = "xnone" ; then
18462 key=`autoconf/randpass 41`
18464 key=`openssl rand -base64 33`
18471 # Check whether --with-mon-dir-password was given.
18472 if test "${with_mon_dir_password+set}" = set; then
18473 withval=$with_mon_dir_password;
18474 if test "x$withval" != "xno" ; then
18475 mon_dir_password=$withval
18482 if test "x$mon_dir_password" = "x" ; then
18483 if test "x$OPENSSL" = "xnone" ; then
18484 key=`autoconf/randpass 33`
18486 key=`openssl rand -base64 33`
18488 mon_dir_password=$key
18493 # Check whether --with-mon-fd-password was given.
18494 if test "${with_mon_fd_password+set}" = set; then
18495 withval=$with_mon_fd_password;
18496 if test "x$withval" != "xno" ; then
18497 mon_fd_password=$withval
18504 if test "x$mon_fd_password" = "x" ; then
18505 if test "x$OPENSSL" = "xnone" ; then
18506 key=`autoconf/randpass 37`
18508 key=`openssl rand -base64 33`
18510 mon_fd_password=$key
18515 # Check whether --with-mon-sd-password was given.
18516 if test "${with_mon_sd_password+set}" = set; then
18517 withval=$with_mon_sd_password;
18518 if test "x$withval" != "xno" ; then
18519 mon_sd_password=$withval
18526 if test "x$mon_sd_password" = "x" ; then
18527 if test "x$OPENSSL" = "xnone" ; then
18528 key=`autoconf/randpass 41`
18530 key=`openssl rand -base64 33`
18532 mon_sd_password=$key
18544 # Handle users and groups for each daemon
18548 # Check whether --with-dir_user was given.
18549 if test "${with_dir_user+set}" = set; then
18550 withval=$with_dir_user;
18551 if test "x$withval" != "x" ; then
18561 # Check whether --with-dir_group was given.
18562 if test "${with_dir_group+set}" = set; then
18563 withval=$with_dir_group;
18564 if test "x$withval" != "x" ; then
18574 # Check whether --with-sd_user was given.
18575 if test "${with_sd_user+set}" = set; then
18576 withval=$with_sd_user;
18577 if test "x$withval" != "x" ; then
18587 # Check whether --with-sd_group was given.
18588 if test "${with_sd_group+set}" = set; then
18589 withval=$with_sd_group;
18590 if test "x$withval" != "x" ; then
18600 # Check whether --with-fd_user was given.
18601 if test "${with_fd_user+set}" = set; then
18602 withval=$with_fd_user;
18603 if test "x$withval" != "x" ; then
18613 # Check whether --with-fd_group was given.
18614 if test "${with_fd_group+set}" = set; then
18615 withval=$with_fd_group;
18616 if test "x$withval" != "x" ; then
18635 # allow setting default executable permissions
18639 # Check whether --with-sbin-perm was given.
18640 if test "${with_sbin_perm+set}" = set; then
18641 withval=$with_sbin_perm;
18642 if test "x$withval" != "x" ; then
18652 # ------------------------------------------------
18653 # Bacula check for various SQL database engines
18654 # ------------------------------------------------
18657 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18658 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18660 # Check whether --with-postgresql was given.
18661 if test "${with_postgresql+set}" = set; then
18662 withval=$with_postgresql;
18663 if test "$withval" != "no"; then
18664 if test "$db_found" = "yes"; then
18665 { echo "$as_me:$LINENO: result: error" >&5
18666 echo "${ECHO_T}error" >&6; }
18667 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18668 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18669 { (exit 1); exit 1; }; };
18671 if test "$withval" = "yes"; then
18672 PG_CONFIG=`which pg_config`
18673 if test -n "$PG_CONFIG";then
18674 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18675 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18676 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18677 elif test -f /usr/local/include/libpq-fe.h; then
18678 POSTGRESQL_INCDIR=/usr/local/include
18679 if test -d /usr/local/lib64; then
18680 POSTGRESQL_LIBDIR=/usr/local/lib64
18682 POSTGRESQL_LIBDIR=/usr/local/lib
18684 POSTGRESQL_BINDIR=/usr/local/bin
18685 elif test -f /usr/include/libpq-fe.h; then
18686 POSTGRESQL_INCDIR=/usr/include
18687 if test -d /usr/lib64; then
18688 POSTGRESQL_LIBDIR=/usr/lib64
18690 POSTGRESQL_LIBDIR=/usr/lib
18692 POSTGRESQL_BINDIR=/usr/bin
18693 elif test -f /usr/include/pgsql/libpq-fe.h; then
18694 POSTGRESQL_INCDIR=/usr/include/pgsql
18695 if test -d /usr/lib64/pgsql; then
18696 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18698 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18700 POSTGRESQL_BINDIR=/usr/bin
18701 elif test -f /usr/include/postgresql/libpq-fe.h; then
18702 POSTGRESQL_INCDIR=/usr/include/postgresql
18703 if test -d /usr/lib64/postgresql; then
18704 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18706 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18708 POSTGRESQL_BINDIR=/usr/bin
18710 { echo "$as_me:$LINENO: result: no" >&5
18711 echo "${ECHO_T}no" >&6; }
18712 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18713 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18714 { (exit 1); exit 1; }; }
18716 elif test -f $withval/include/libpq-fe.h; then
18717 POSTGRESQL_INCDIR=$withval/include
18718 POSTGRESQL_LIBDIR=$withval/lib
18719 POSTGRESQL_BINDIR=$withval/bin
18720 elif test -f $withval/include/postgresql/libpq-fe.h; then
18721 POSTGRESQL_INCDIR=$withval/include/postgresql
18722 if test -d $withval/lib64; then
18723 POSTGRESQL_LIBDIR=$withval/lib64
18725 POSTGRESQL_LIBDIR=$withval/lib
18727 POSTGRESQL_BINDIR=$withval/bin
18729 { echo "$as_me:$LINENO: result: no" >&5
18730 echo "${ECHO_T}no" >&6; }
18731 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18732 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18733 { (exit 1); exit 1; }; }
18735 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18736 { echo "$as_me:$LINENO: checking for crypt" >&5
18737 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18738 if test "${ac_cv_func_crypt+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749 #define crypt innocuous_crypt
18751 /* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char crypt (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18757 # include <limits.h>
18759 # include <assert.h>
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18771 /* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774 #if defined __stub_crypt || defined __stub___crypt
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_func_crypt=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_func_crypt=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18831 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18832 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18833 if test $ac_cv_func_crypt = yes; then
18836 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18837 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lcrypt $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_lib_crypt_crypt=yes
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ac_cv_lib_crypt_crypt=no
18907 rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18912 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18913 if test $ac_cv_lib_crypt_crypt = yes; then
18914 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18919 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18920 SQL_LFLAGS=$POSTGRESQL_LFLAGS
18921 SQL_BINDIR=$POSTGRESQL_BINDIR
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_POSTGRESQL 1
18926 { echo "$as_me:$LINENO: result: yes" >&5
18927 echo "${ECHO_T}yes" >&6; }
18929 support_postgresql=yes
18933 { echo "$as_me:$LINENO: result: no" >&5
18934 echo "${ECHO_T}no" >&6; }
18939 { echo "$as_me:$LINENO: result: no" >&5
18940 echo "${ECHO_T}no" >&6; }
18952 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18953 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18955 # Check whether --with-mysql was given.
18956 if test "${with_mysql+set}" = set; then
18957 withval=$with_mysql;
18958 if test "$withval" != "no"; then
18959 if test "$withval" = "yes"; then
18960 if test -f /usr/local/mysql/include/mysql/mysql.h; then
18961 MYSQL_INCDIR=/usr/local/mysql/include/mysql
18962 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18963 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18965 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18967 MYSQL_BINDIR=/usr/local/mysql/bin
18968 elif test -f /usr/include/mysql/mysql.h; then
18969 MYSQL_INCDIR=/usr/include/mysql
18970 if test -f /usr/lib64/mysql/libmysqlclient.a; then
18971 MYSQL_LIBDIR=/usr/lib64/mysql
18973 MYSQL_LIBDIR=/usr/lib/mysql
18975 MYSQL_BINDIR=/usr/bin
18976 elif test -f /usr/include/mysql.h; then
18977 MYSQL_INCDIR=/usr/include
18978 if test -f /usr/lib64/libmysqlclient.a; then
18979 MYSQL_LIBDIR=/usr/lib64
18981 MYSQL_LIBDIR=/usr/lib
18983 MYSQL_BINDIR=/usr/bin
18984 elif test -f /usr/local/include/mysql/mysql.h; then
18985 MYSQL_INCDIR=/usr/local/include/mysql
18986 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18987 MYSQL_LIBDIR=/usr/local/lib64/mysql
18989 MYSQL_LIBDIR=/usr/local/lib/mysql
18991 MYSQL_BINDIR=/usr/local/bin
18992 elif test -f /usr/local/include/mysql.h; then
18993 MYSQL_INCDIR=/usr/local/include
18994 if test -f /usr/local/lib64/libmysqlclient.a; then
18995 MYSQL_LIBDIR=/usr/local/lib64
18997 MYSQL_LIBDIR=/usr/local/lib
18999 MYSQL_BINDIR=/usr/local/bin
19001 { echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6; }
19003 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19004 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19005 { (exit 1); exit 1; }; }
19008 if test -f $withval/include/mysql/mysql.h; then
19009 MYSQL_INCDIR=$withval/include/mysql
19010 if test -f $withval/lib64/mysql/libmysqlclient.a; then
19011 MYSQL_LIBDIR=$withval/lib64/mysql
19013 MYSQL_LIBDIR=$withval/lib/mysql
19015 if test -f $withval/lib/libmysqlclient.so; then
19016 MYSQL_LIBDIR=$withval/lib
19019 MYSQL_BINDIR=$withval/bin
19020 elif test -f $withval/include/mysql.h; then
19021 MYSQL_INCDIR=$withval/include
19022 if test -f "$withval/lib64/libmysqlclient.a"; then
19023 MYSQL_LIBDIR=$withval/lib64
19025 MYSQL_LIBDIR=$withval/lib
19027 MYSQL_BINDIR=$withval/bin
19029 { echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6; }
19031 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19032 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19033 { (exit 1); exit 1; }; }
19036 SQL_INCLUDE=-I$MYSQL_INCDIR
19037 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
19038 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19039 cat >>confdefs.h <<\_ACEOF
19040 #define HAVE_THREAD_SAFE_MYSQL 1
19044 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
19046 SQL_BINDIR=$MYSQL_BINDIR
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_MYSQL 1
19052 { echo "$as_me:$LINENO: result: yes" >&5
19053 echo "${ECHO_T}yes" >&6; }
19060 { echo "$as_me:$LINENO: result: no" >&5
19061 echo "${ECHO_T}no" >&6; }
19069 # Check whether --with-embedded-mysql was given.
19070 if test "${with_embedded_mysql+set}" = set; then
19071 withval=$with_embedded_mysql;
19072 if test "$withval" != "no"; then
19073 if test "$withval" = "yes"; then
19074 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19075 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19076 if test -d /usr/local/mysql/lib64/mysql; then
19077 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19079 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19081 MYSQL_BINDIR=/usr/local/mysql/bin
19082 elif test -f /usr/include/mysql/mysql.h; then
19083 MYSQL_INCDIR=/usr/include/mysql
19084 if test -d /usr/lib64/mysql; then
19085 MYSQL_LIBDIR=/usr/lib64/mysql
19087 MYSQL_LIBDIR=/usr/lib/mysql
19089 MYSQL_BINDIR=/usr/bin
19090 elif test -f /usr/include/mysql.h; then
19091 MYSQL_INCDIR=/usr/include
19092 if test -d /usr/lib64; then
19093 MYSQL_LIBDIR=/usr/lib64
19095 MYSQL_LIBDIR=/usr/lib
19097 MYSQL_BINDIR=/usr/bin
19098 elif test -f /usr/local/include/mysql/mysql.h; then
19099 MYSQL_INCDIR=/usr/local/include/mysql
19100 if test -d /usr/local/lib64/mysql; then
19101 MYSQL_LIBDIR=/usr/local/lib64/mysql
19103 MYSQL_LIBDIR=/usr/local/lib/mysql
19105 MYSQL_BINDIR=/usr/local/bin
19106 elif test -f /usr/local/include/mysql.h; then
19107 MYSQL_INCDIR=/usr/local/include
19108 if test -d /usr/local/lib64; then
19109 MYSQL_LIBDIR=/usr/local/lib64
19111 MYSQL_LIBDIR=/usr/local/lib
19113 MYSQL_BINDIR=/usr/local/bin
19115 { echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6; }
19117 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19118 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19119 { (exit 1); exit 1; }; }
19122 if test -f $withval/include/mysql/mysql.h; then
19123 MYSQL_INCDIR=$withval/include/mysql
19124 if test -d $withval/lib64/mysql; then
19125 MYSQL_LIBDIR=$withval/lib64/mysql
19127 MYSQL_LIBDIR=$withval/lib/mysql
19129 MYSQL_BINDIR=$withval/bin
19130 elif test -f $withval/include/mysql.h; then
19131 MYSQL_INCDIR=$withval/include
19132 if test -d $withval/lib64; then
19133 MYSQL_LIBDIR=$withval/lib64
19135 MYSQL_LIBDIR=$withval/lib
19137 MYSQL_BINDIR=$withval/bin
19139 { echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6; }
19141 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19142 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19143 { (exit 1); exit 1; }; }
19146 SQL_INCLUDE=-I$MYSQL_INCDIR
19147 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19148 SQL_BINDIR=$MYSQL_BINDIR
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_MYSQL 1
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_EMBEDDED_MYSQL 1
19158 { echo "$as_me:$LINENO: result: yes" >&5
19159 echo "${ECHO_T}yes" >&6; }
19166 { echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6; }
19183 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19184 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19186 # Check whether --with-sqlite3 was given.
19187 if test "${with_sqlite3+set}" = set; then
19188 withval=$with_sqlite3;
19189 if test "$withval" != "no"; then
19190 if test "$withval" = "yes"; then
19191 if test -f /usr/local/include/sqlite3.h; then
19192 SQLITE_INCDIR=/usr/local/include
19193 if test -d /usr/local/lib64; then
19194 SQLITE_LIBDIR=/usr/local/lib64
19196 SQLITE_LIBDIR=/usr/local/lib
19198 SQLITE_BINDIR=/usr/local/bin
19199 elif test -f /usr/include/sqlite3.h; then
19200 SQLITE_INCDIR=/usr/include
19201 if test -d /usr/lib64; then
19202 SQLITE_LIBDIR=/usr/lib64
19204 SQLITE_LIBDIR=/usr/lib
19206 SQLITE_BINDIR=/usr/bin
19207 elif test -f $prefix/include/sqlite3.h; then
19208 SQLITE_INCDIR=$prefix/include
19209 if test -d $prefix/lib64; then
19210 SQLITE_LIBDIR=$prefix/lib64
19212 SQLITE_LIBDIR=$prefix/lib
19214 SQLITE_BINDIR=$prefix/bin
19216 { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19218 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19219 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19220 { (exit 1); exit 1; }; }
19223 if test -f $withval/sqlite3.h; then
19224 SQLITE_INCDIR=$withval
19225 SQLITE_LIBDIR=$withval
19226 SQLITE_BINDIR=$withval
19227 elif test -f $withval/include/sqlite3.h; then
19228 SQLITE_INCDIR=$withval/include
19229 if test -d $withval/lib64; then
19230 SQLITE_LIBDIR=$withval/lib64
19232 SQLITE_LIBDIR=$withval/lib
19234 SQLITE_BINDIR=$withval/bin
19236 { echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6; }
19238 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19239 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19240 { (exit 1); exit 1; }; }
19243 SQL_INCLUDE=-I$SQLITE_INCDIR
19244 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19245 SQL_BINDIR=$SQLITE_BINDIR
19247 cat >>confdefs.h <<\_ACEOF
19248 #define HAVE_SQLITE3 1
19251 { echo "$as_me:$LINENO: result: yes" >&5
19252 echo "${ECHO_T}yes" >&6; }
19254 support_sqlite3=yes
19259 { echo "$as_me:$LINENO: result: no" >&5
19260 echo "${ECHO_T}no" >&6; }
19265 { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19278 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19279 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19281 # Check whether --with-sqlite was given.
19282 if test "${with_sqlite+set}" = set; then
19283 withval=$with_sqlite;
19284 if test "$withval" != "no"; then
19285 if test "$withval" = "yes"; then
19286 if test -f /usr/local/include/sqlite.h; then
19287 SQLITE_INCDIR=/usr/local/include
19288 if test -d /usr/local/lib64; then
19289 SQLITE_LIBDIR=/usr/local/lib64
19291 SQLITE_LIBDIR=/usr/local/lib
19293 SQLITE_BINDIR=/usr/local/bin
19294 elif test -f /usr/include/sqlite.h; then
19295 SQLITE_INCDIR=/usr/include
19296 if test -d /usr/lib64; then
19297 SQLITE_LIBDIR=/usr/lib64
19299 SQLITE_LIBDIR=/usr/lib
19301 SQLITE_BINDIR=/usr/bin
19302 elif test -f $prefix/include/sqlite.h; then
19303 SQLITE_INCDIR=$prefix/include
19304 if test -d $prefix/lib64; then
19305 SQLITE_LIBDIR=$prefix/lib64
19307 SQLITE_LIBDIR=$prefix/lib
19309 SQLITE_BINDIR=$prefix/bin
19311 { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19313 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19314 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19315 { (exit 1); exit 1; }; }
19318 if test -f $withval/sqlite.h; then
19319 SQLITE_INCDIR=$withval
19320 SQLITE_LIBDIR=$withval
19321 SQLITE_BINDIR=$withval
19322 elif test -f $withval/include/sqlite.h; then
19323 SQLITE_INCDIR=$withval/include
19324 if test -d $withval/lib64; then
19325 SQLITE_LIBDIR=$withval/lib64
19327 SQLITE_LIBDIR=$withval/lib
19329 SQLITE_BINDIR=$withval/bin
19331 { echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6; }
19333 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19334 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19335 { (exit 1); exit 1; }; }
19338 SQL_INCLUDE=-I$SQLITE_INCDIR
19339 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19340 SQL_BINDIR=$SQLITE_BINDIR
19342 cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_SQLITE 1
19346 { echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6; }
19354 { echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6; }
19360 { echo "$as_me:$LINENO: result: no" >&5
19361 echo "${ECHO_T}no" >&6; }
19374 cat >>confdefs.h <<\_ACEOF
19375 #define PROTOTYPES 1
19379 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19380 if test -z "$CCOPTS"; then
19381 CCOPTS='-g -O2 -Wall'
19389 largefile_support="no"
19391 # Check whether --enable-largefile was given.
19392 if test "${enable_largefile+set}" = set; then
19393 enableval=$enable_largefile;
19396 if test "$enable_largefile" != no; then
19397 if test -n "$ac_tool_prefix"; then
19398 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19399 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19402 if test "${ac_cv_prog_GETCONF+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 if test -n "$GETCONF"; then
19406 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19409 for as_dir in $PATH
19412 test -z "$as_dir" && as_dir=.
19413 for ac_exec_ext in '' $ac_executable_extensions; do
19414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19415 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 GETCONF=$ac_cv_prog_GETCONF
19426 if test -n "$GETCONF"; then
19427 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19428 echo "${ECHO_T}$GETCONF" >&6; }
19430 { echo "$as_me:$LINENO: result: no" >&5
19431 echo "${ECHO_T}no" >&6; }
19436 if test -z "$ac_cv_prog_GETCONF"; then
19437 ac_ct_GETCONF=$GETCONF
19438 # Extract the first word of "getconf", so it can be a program name with args.
19439 set dummy getconf; ac_word=$2
19440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19442 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 if test -n "$ac_ct_GETCONF"; then
19446 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19449 for as_dir in $PATH
19452 test -z "$as_dir" && as_dir=.
19453 for ac_exec_ext in '' $ac_executable_extensions; do
19454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19455 ac_cv_prog_ac_ct_GETCONF="getconf"
19456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19465 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19466 if test -n "$ac_ct_GETCONF"; then
19467 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19468 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19470 { echo "$as_me:$LINENO: result: no" >&5
19471 echo "${ECHO_T}no" >&6; }
19474 if test "x$ac_ct_GETCONF" = x; then
19477 case $cross_compiling:$ac_tool_warned in
19479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19480 whose name does not start with the host triplet. If you think this
19481 configuration is useful to you, please write to autoconf@gnu.org." >&5
19482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19483 whose name does not start with the host triplet. If you think this
19484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19485 ac_tool_warned=yes ;;
19487 GETCONF=$ac_ct_GETCONF
19490 GETCONF="$ac_cv_prog_GETCONF"
19493 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19494 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19495 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19499 ac_cv_sys_largefile_CFLAGS=no
19501 # IRIX 6.2 and later require cc -n32.
19502 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19503 if test "$GCC" != yes; then
19504 ac_cv_sys_largefile_CFLAGS=-n32
19507 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest$ac_exeext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_sys_largefile_CFLAGS=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19572 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19573 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19574 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19575 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19579 ac_cv_sys_largefile_LDFLAGS=no
19583 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19584 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19585 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19586 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19587 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19591 ac_cv_sys_largefile_LIBS=no
19595 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19596 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19598 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19601 -D_FILE_OFFSET_BITS=*) ;;
19602 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19603 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19608 case "$CPPFLAGS" in
19609 '') CPPFLAGS="$ac_flag" ;;
19610 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19618 '') CFLAGS="$ac_flag" ;;
19619 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19624 case "$ac_cv_sys_largefile_LDFLAGS" in
19628 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19629 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19632 case "$ac_cv_sys_largefile_LIBS" in
19636 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19637 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19640 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19641 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19642 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 ac_cv_sys_file_offset_bits=no
19646 ac_cv_sys_file_offset_bits=64
19647 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19649 -D_FILE_OFFSET_BITS)
19650 ac_cv_sys_file_offset_bits=1 ;;
19651 -D_FILE_OFFSET_BITS=*)
19652 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19657 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19658 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19659 if test "$ac_cv_sys_file_offset_bits" != no; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19666 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19667 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19668 if test "${ac_cv_sys_largefile_source+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 ac_cv_sys_largefile_source=no
19672 ac_cv_sys_largefile_source=1
19673 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19675 -D_LARGEFILE_SOURCE)
19676 ac_cv_sys_largefile_source=1 ;;
19677 -D_LARGEFILE_SOURCE=*)
19678 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19683 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19684 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19685 if test "$ac_cv_sys_largefile_source" != no; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19692 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19693 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19694 if test "${ac_cv_sys_large_files+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 ac_cv_sys_large_files=no
19698 ac_cv_sys_large_files=1
19699 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19702 ac_cv_sys_large_files=1 ;;
19704 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19709 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19710 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19711 if test "$ac_cv_sys_large_files" != no; then
19713 cat >>confdefs.h <<_ACEOF
19714 #define _LARGE_FILES $ac_cv_sys_large_files
19722 { echo "$as_me:$LINENO: checking for X" >&5
19723 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19726 # Check whether --with-x was given.
19727 if test "${with_x+set}" = set; then
19731 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19732 if test "x$with_x" = xno; then
19733 # The user explicitly disabled X.
19736 case $x_includes,$x_libraries in #(
19737 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19738 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19739 { (exit 1); exit 1; }; };; #(
19740 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 # One or both of the vars are not set, and there is no cached value.
19744 ac_x_includes=no ac_x_libraries=no
19745 rm -f -r conftest.dir
19746 if mkdir conftest.dir; then
19748 cat >Imakefile <<'_ACEOF'
19750 @echo incroot='${INCROOT}'
19752 @echo usrlibdir='${USRLIBDIR}'
19754 @echo libdir='${LIBDIR}'
19756 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19758 for ac_var in incroot usrlibdir libdir; do
19759 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19761 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19762 for ac_extension in a so sl; do
19763 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19764 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19765 ac_im_usrlibdir=$ac_im_libdir; break
19768 # Screen out bogus values from the imake configuration. They are
19769 # bogus both because they are the default anyway, and because
19770 # using them would break gcc on systems where it needs fixed includes.
19771 case $ac_im_incroot in
19772 /usr/include) ac_x_includes= ;;
19773 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19775 case $ac_im_usrlibdir in
19776 /usr/lib | /lib) ;;
19777 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19781 rm -f -r conftest.dir
19784 # Standard set of common directories for X headers.
19785 # Check X11 before X11Rn because it is often a symlink to the current release.
19797 /usr/local/X11/include
19798 /usr/local/X11R6/include
19799 /usr/local/X11R5/include
19800 /usr/local/X11R4/include
19802 /usr/local/include/X11
19803 /usr/local/include/X11R6
19804 /usr/local/include/X11R5
19805 /usr/local/include/X11R4
19809 /usr/XFree86/include/X11
19813 /usr/unsupported/include
19814 /usr/athena/include
19815 /usr/local/x11r5/include
19816 /usr/lpp/Xamples/include
19818 /usr/openwin/include
19819 /usr/openwin/share/include'
19821 if test "$ac_x_includes" = no; then
19822 # Guess where to find include files, by looking for Xlib.h.
19823 # First, try using that file with no special directory specified.
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <X11/Xlib.h>
19832 if { (ac_try="$ac_cpp conftest.$ac_ext"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19840 grep -v '^ *+' conftest.er1 >conftest.err
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } >/dev/null; then
19845 if test -s conftest.err; then
19846 ac_cpp_err=$ac_c_preproc_warn_flag
19847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19854 if test -z "$ac_cpp_err"; then
19855 # We can compile using X headers with no special include directory.
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 for ac_dir in $ac_x_header_dirs; do
19862 if test -r "$ac_dir/X11/Xlib.h"; then
19863 ac_x_includes=$ac_dir
19869 rm -f conftest.err conftest.$ac_ext
19870 fi # $ac_x_includes = no
19872 if test "$ac_x_libraries" = no; then
19873 # Check for the libraries.
19874 # See if we find them without any special options.
19875 # Don't add to $LIBS permanently.
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 #include <X11/Xlib.h>
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_link") 2>conftest.er1
19902 grep -v '^ *+' conftest.er1 >conftest.err
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19908 { (case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_try") 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest$ac_exeext'
19918 { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19928 # We can link X programs with no special library path.
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19935 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19937 # Don't even attempt the hair of trying to link an X program!
19938 for ac_extension in a so sl; do
19939 if test -r "$ac_dir/libXt.$ac_extension"; then
19940 ac_x_libraries=$ac_dir
19947 rm -f core conftest.err conftest.$ac_objext \
19948 conftest$ac_exeext conftest.$ac_ext
19949 fi # $ac_x_libraries = no
19951 case $ac_x_includes,$ac_x_libraries in #(
19952 no,* | *,no | *\'*)
19953 # Didn't find X, or a directory has "'" in its name.
19954 ac_cv_have_x="have_x=no";; #(
19956 # Record where we found X for the cache.
19957 ac_cv_have_x="have_x=yes\
19958 ac_x_includes='$ac_x_includes'\
19959 ac_x_libraries='$ac_x_libraries'"
19965 eval "$ac_cv_have_x"
19968 if test "$have_x" != yes; then
19969 { echo "$as_me:$LINENO: result: $have_x" >&5
19970 echo "${ECHO_T}$have_x" >&6; }
19973 # If each of the values was on the command line, it overrides each guess.
19974 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19975 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19976 # Update the cache value to reflect the command line values.
19977 ac_cv_have_x="have_x=yes\
19978 ac_x_includes='$x_includes'\
19979 ac_x_libraries='$x_libraries'"
19980 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19981 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19984 if test "$no_x" = yes; then
19985 # Not all programs may use this symbol, but it does not hurt to define it.
19987 cat >>confdefs.h <<\_ACEOF
19988 #define X_DISPLAY_MISSING 1
19991 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19993 if test -n "$x_includes"; then
19994 X_CFLAGS="$X_CFLAGS -I$x_includes"
19997 # It would also be nice to do this for all -L options, not just this one.
19998 if test -n "$x_libraries"; then
19999 X_LIBS="$X_LIBS -L$x_libraries"
20000 # For Solaris; some versions of Sun CC require a space after -R and
20001 # others require no space. Words are not sufficient . . . .
20002 case `(uname -sr) 2>/dev/null` in
20004 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20005 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20006 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 if test $ac_R_nospace = yes; then
20067 { echo "$as_me:$LINENO: result: no" >&5
20068 echo "${ECHO_T}no" >&6; }
20069 X_LIBS="$X_LIBS -R$x_libraries"
20071 LIBS="$ac_xsave_LIBS -R $x_libraries"
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20129 rm -f core conftest.err conftest.$ac_objext \
20130 conftest$ac_exeext conftest.$ac_ext
20131 if test $ac_R_space = yes; then
20132 { echo "$as_me:$LINENO: result: yes" >&5
20133 echo "${ECHO_T}yes" >&6; }
20134 X_LIBS="$X_LIBS -R $x_libraries"
20136 { echo "$as_me:$LINENO: result: neither works" >&5
20137 echo "${ECHO_T}neither works" >&6; }
20140 LIBS=$ac_xsave_LIBS
20144 # Check for system-dependent libraries X programs must link with.
20145 # Do this before checking for the system-independent R6 libraries
20146 # (-lICE), since we may need -lsocket or whatever for X linking.
20148 if test "$ISC" = yes; then
20149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20151 # Martyn Johnson says this is needed for Ultrix, if the X
20152 # libraries were built with DECnet support. And Karl Berry says
20153 # the Alpha needs dnet_stub (dnet does not exist).
20154 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20168 char XOpenDisplay ();
20172 return XOpenDisplay ();
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192 { (case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_try") 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest$ac_exeext'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20217 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20218 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 ac_check_lib_save_LIBS=$LIBS
20222 LIBS="-ldnet $LIBS"
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20230 /* Override any GCC internal prototype to avoid an error.
20231 Use char because int might match the return type of a GCC
20232 builtin and then its argument prototype would still apply. */
20240 return dnet_ntoa ();
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (ac_try="$ac_link"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_link") 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20260 { (case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_try") 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; } &&
20269 { ac_try='test -s conftest$ac_exeext'
20270 { (case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_try") 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_lib_dnet_dnet_ntoa=yes
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_cv_lib_dnet_dnet_ntoa=no
20287 rm -f core conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20289 LIBS=$ac_check_lib_save_LIBS
20291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20292 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20293 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20298 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20299 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20300 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-ldnet_stub $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 /* Override any GCC internal prototype to avoid an error.
20313 Use char because int might match the return type of a GCC
20314 builtin and then its argument prototype would still apply. */
20322 return dnet_ntoa ();
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_link") 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20342 { (case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_try") 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest$ac_exeext'
20352 { (case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_try") 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; }; then
20361 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_cv_lib_dnet_stub_dnet_ntoa=no
20369 rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20373 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20374 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20375 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20376 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20384 LIBS="$ac_xsave_LIBS"
20386 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20387 # to get the SysV transport functions.
20388 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20390 # The nsl library prevents programs from opening the X display
20391 # on Irix 5.2, according to T.E. Dickey.
20392 # The functions gethostbyname, getservbyname, and inet_addr are
20393 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20394 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20395 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_gethostbyname+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define gethostbyname innocuous_gethostbyname
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char gethostbyname (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20415 # include <limits.h>
20417 # include <assert.h>
20420 #undef gethostbyname
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20428 char gethostbyname ();
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20439 return gethostbyname ();
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20459 { (case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_try") 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_cv_func_gethostbyname=yes
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_cv_func_gethostbyname=no
20486 rm -f core conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20490 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20492 if test $ac_cv_func_gethostbyname = no; then
20493 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20494 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20495 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 ac_check_lib_save_LIBS=$LIBS
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20513 char gethostbyname ();
20517 return gethostbyname ();
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_link") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20537 { (case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_try") 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_try") 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_lib_nsl_gethostbyname=yes
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_cv_lib_nsl_gethostbyname=no
20564 rm -f core conftest.err conftest.$ac_objext \
20565 conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20568 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20569 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20570 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20574 if test $ac_cv_lib_nsl_gethostbyname = no; then
20575 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20576 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20577 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_check_lib_save_LIBS=$LIBS
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 /* Override any GCC internal prototype to avoid an error.
20590 Use char because int might match the return type of a GCC
20591 builtin and then its argument prototype would still apply. */
20595 char gethostbyname ();
20599 return gethostbyname ();
20604 rm -f conftest.$ac_objext conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_link") 2>conftest.er1
20613 grep -v '^ *+' conftest.er1 >conftest.err
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; } &&
20628 { ac_try='test -s conftest$ac_exeext'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_lib_bsd_gethostbyname=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_cv_lib_bsd_gethostbyname=no
20646 rm -f core conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
20648 LIBS=$ac_check_lib_save_LIBS
20650 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20659 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20660 # socket/setsockopt and other routines are undefined under SCO ODT
20661 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20662 # on later versions), says Simon Leinen: it contains gethostby*
20663 # variants that don't use the name server (or something). -lsocket
20664 # must be given before -lnsl if both are needed. We assume that
20665 # if connect needs -lnsl, so does gethostbyname.
20666 { echo "$as_me:$LINENO: checking for connect" >&5
20667 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20668 if test "${ac_cv_func_connect+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20679 #define connect innocuous_connect
20681 /* System header to define __stub macros and hopefully few prototypes,
20682 which can conflict with char connect (); below.
20683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20684 <limits.h> exists even on freestanding compilers. */
20687 # include <limits.h>
20689 # include <assert.h>
20694 /* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20701 /* The GNU C library defines this for functions which it implements
20702 to always fail with ENOSYS. Some functions are actually named
20703 something starting with __ and the normal name is an alias. */
20704 #if defined __stub_connect || defined __stub___connect
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_link") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731 { (case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_try") 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest$ac_exeext'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_cv_func_connect=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_cv_func_connect=no
20758 rm -f core conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20762 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20764 if test $ac_cv_func_connect = no; then
20765 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20766 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20767 if test "${ac_cv_lib_socket_connect+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 ac_check_lib_save_LIBS=$LIBS
20771 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20772 cat >conftest.$ac_ext <<_ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (ac_try="$ac_link"
20796 case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_link") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_cv_lib_socket_connect=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_cv_lib_socket_connect=no
20836 rm -f core conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20838 LIBS=$ac_check_lib_save_LIBS
20840 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20841 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20842 if test $ac_cv_lib_socket_connect = yes; then
20843 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20848 # Guillermo Gomez says -lposix is necessary on A/UX.
20849 { echo "$as_me:$LINENO: checking for remove" >&5
20850 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20851 if test "${ac_cv_func_remove+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20862 #define remove innocuous_remove
20864 /* System header to define __stub macros and hopefully few prototypes,
20865 which can conflict with char remove (); below.
20866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20867 <limits.h> exists even on freestanding compilers. */
20870 # include <limits.h>
20872 # include <assert.h>
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20884 /* The GNU C library defines this for functions which it implements
20885 to always fail with ENOSYS. Some functions are actually named
20886 something starting with __ and the normal name is an alias. */
20887 #if defined __stub_remove || defined __stub___remove
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20914 { (case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_try") 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest$ac_exeext'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20933 ac_cv_func_remove=yes
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_cv_func_remove=no
20941 rm -f core conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
20944 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20945 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20947 if test $ac_cv_func_remove = no; then
20948 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20949 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20950 if test "${ac_cv_lib_posix_remove+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 ac_check_lib_save_LIBS=$LIBS
20954 LIBS="-lposix $LIBS"
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20962 /* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20977 rm -f conftest.$ac_objext conftest$ac_exeext
20978 if { (ac_try="$ac_link"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_link") 2>conftest.er1
20986 grep -v '^ *+' conftest.er1 >conftest.err
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
20991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20992 { (case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_try") 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; } &&
21001 { ac_try='test -s conftest$ac_exeext'
21002 { (case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_try") 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_cv_lib_posix_remove=yes
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ac_cv_lib_posix_remove=no
21019 rm -f core conftest.err conftest.$ac_objext \
21020 conftest$ac_exeext conftest.$ac_ext
21021 LIBS=$ac_check_lib_save_LIBS
21023 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21024 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21025 if test $ac_cv_lib_posix_remove = yes; then
21026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21031 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21032 { echo "$as_me:$LINENO: checking for shmat" >&5
21033 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21034 if test "${ac_cv_func_shmat+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21045 #define shmat innocuous_shmat
21047 /* System header to define __stub macros and hopefully few prototypes,
21048 which can conflict with char shmat (); below.
21049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21050 <limits.h> exists even on freestanding compilers. */
21053 # include <limits.h>
21055 # include <assert.h>
21060 /* Override any GCC internal prototype to avoid an error.
21061 Use char because int might match the return type of a GCC
21062 builtin and then its argument prototype would still apply. */
21067 /* The GNU C library defines this for functions which it implements
21068 to always fail with ENOSYS. Some functions are actually named
21069 something starting with __ and the normal name is an alias. */
21070 #if defined __stub_shmat || defined __stub___shmat
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (ac_try="$ac_link"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_link") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest$ac_exeext'
21107 { (case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_try") 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_func_shmat=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_func_shmat=no
21124 rm -f core conftest.err conftest.$ac_objext \
21125 conftest$ac_exeext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21128 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21130 if test $ac_cv_func_shmat = no; then
21131 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21132 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21133 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 ac_check_lib_save_LIBS=$LIBS
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21145 /* Override any GCC internal prototype to avoid an error.
21146 Use char because int might match the return type of a GCC
21147 builtin and then its argument prototype would still apply. */
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_link") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } &&
21174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21175 { (case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_try") 2>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; } &&
21184 { ac_try='test -s conftest$ac_exeext'
21185 { (case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_try") 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 ac_cv_lib_ipc_shmat=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 ac_cv_lib_ipc_shmat=no
21202 rm -f core conftest.err conftest.$ac_objext \
21203 conftest$ac_exeext conftest.$ac_ext
21204 LIBS=$ac_check_lib_save_LIBS
21206 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21207 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21208 if test $ac_cv_lib_ipc_shmat = yes; then
21209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21215 # Check for libraries that X11R6 Xt/Xaw programs need.
21216 ac_save_LDFLAGS=$LDFLAGS
21217 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21218 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21219 # check for ICE first), but we must link in the order -lSM -lICE or
21220 # we get undefined symbols. So assume we have SM if we have ICE.
21221 # These have to be linked with before -lX11, unlike the other
21222 # libraries we check for below, so use a different variable.
21223 # John Interrante, Karl Berry
21224 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21225 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21226 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 ac_check_lib_save_LIBS=$LIBS
21230 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 /* Override any GCC internal prototype to avoid an error.
21239 Use char because int might match the return type of a GCC
21240 builtin and then its argument prototype would still apply. */
21244 char IceConnectionNumber ();
21248 return IceConnectionNumber ();
21253 rm -f conftest.$ac_objext conftest$ac_exeext
21254 if { (ac_try="$ac_link"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_link") 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21268 { (case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_try") 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest$ac_exeext'
21278 { (case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_try") 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 ac_cv_lib_ICE_IceConnectionNumber=yes
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_cv_lib_ICE_IceConnectionNumber=no
21295 rm -f core conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21297 LIBS=$ac_check_lib_save_LIBS
21299 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21300 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21301 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21302 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21305 LDFLAGS=$ac_save_LDFLAGS
21367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 ac_res=`eval echo '${'$as_ac_Header'}'`
21375 { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21378 # Is the header compilable?
21379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 $ac_includes_default
21388 #include <$ac_header>
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397 (eval "$ac_compile") 2>conftest.er1
21399 grep -v '^ *+' conftest.er1 >conftest.err
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21405 { (case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_try") 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_try") 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_header_compiler=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_header_compiler=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <$ac_header>
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } >/dev/null; then
21460 if test -s conftest.err; then
21461 ac_cpp_err=$ac_c_preproc_warn_flag
21462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21469 if test -z "$ac_cpp_err"; then
21470 ac_header_preproc=yes
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_header_preproc=no
21478 rm -f conftest.err conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21480 echo "${ECHO_T}$ac_header_preproc" >&6; }
21482 # So? What about this header?
21483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21489 ac_header_preproc=yes
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 eval "$as_ac_Header=\$ac_header_preproc"
21514 ac_res=`eval echo '${'$as_ac_Header'}'`
21515 { echo "$as_me:$LINENO: result: $ac_res" >&5
21516 echo "${ECHO_T}$ac_res" >&6; }
21519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21520 cat >>confdefs.h <<_ACEOF
21521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21530 if test "${ac_cv_header_stdc+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 cat >conftest.$ac_ext <<_ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 #include <stdlib.h>
21540 #include <stdarg.h>
21541 #include <string.h>
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556 *) ac_try_echo=$ac_try;;
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21567 { (case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_try") 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; } &&
21576 { ac_try='test -s conftest.$ac_objext'
21577 { (case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_try") 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ac_cv_header_stdc=yes
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ac_cv_header_stdc=no
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 if test $ac_cv_header_stdc = yes; then
21597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 #include <string.h>
21607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21608 $EGREP "memchr" >/dev/null 2>&1; then
21611 ac_cv_header_stdc=no
21617 if test $ac_cv_header_stdc = yes; then
21618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <stdlib.h>
21628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21629 $EGREP "free" >/dev/null 2>&1; then
21632 ac_cv_header_stdc=no
21638 if test $ac_cv_header_stdc = yes; then
21639 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21640 if test "$cross_compiling" = yes; then
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21650 #include <stdlib.h>
21651 #if ((' ' & 0x0FF) == 0x020)
21652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21655 # define ISLOWER(c) \
21656 (('a' <= (c) && (c) <= 'i') \
21657 || ('j' <= (c) && (c) <= 'r') \
21658 || ('s' <= (c) && (c) <= 'z'))
21659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21667 for (i = 0; i < 256; i++)
21668 if (XOR (islower (i), ISLOWER (i))
21669 || toupper (i) != TOUPPER (i))
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_link") 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685 { (case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_try") 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21696 echo "$as_me: program exited with status $ac_status" >&5
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 ( exit $ac_status )
21701 ac_cv_header_stdc=no
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21710 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21711 if test $ac_cv_header_stdc = yes; then
21713 cat >>confdefs.h <<\_ACEOF
21714 #define STDC_HEADERS 1
21719 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21720 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21721 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 #include <sys/types.h>
21734 return makedev(0, 0);
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_link") 2>conftest.er1
21748 grep -v '^ *+' conftest.er1 >conftest.err
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21754 { (case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_try") 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; } &&
21763 { ac_try='test -s conftest$ac_exeext'
21764 { (case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_try") 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 ac_cv_header_sys_types_h_makedev=yes
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ac_cv_header_sys_types_h_makedev=no
21781 rm -f core conftest.err conftest.$ac_objext \
21782 conftest$ac_exeext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21786 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21788 if test $ac_cv_header_sys_types_h_makedev = no; then
21789 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21790 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21791 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21792 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21796 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21798 # Is the header compilable?
21799 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21800 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21801 cat >conftest.$ac_ext <<_ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 $ac_includes_default
21808 #include <sys/mkdev.h>
21810 rm -f conftest.$ac_objext
21811 if { (ac_try="$ac_compile"
21812 case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_compile") 2>conftest.er1
21819 grep -v '^ *+' conftest.er1 >conftest.err
21821 cat conftest.err >&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } &&
21824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825 { (case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_try") 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; } &&
21834 { ac_try='test -s conftest.$ac_objext'
21835 { (case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_try") 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_header_compiler=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21858 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <sys/mkdev.h>
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null; then
21880 if test -s conftest.err; then
21881 ac_cpp_err=$ac_c_preproc_warn_flag
21882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21889 if test -z "$ac_cpp_err"; then
21890 ac_header_preproc=yes
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ac_header_preproc=no
21898 rm -f conftest.err conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6; }
21902 # So? What about this header?
21903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21905 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21908 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21909 ac_header_preproc=yes
21912 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21913 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
21915 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21917 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
21919 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21921 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21923 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21927 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21928 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21929 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 ac_cv_header_sys_mkdev_h=$ac_header_preproc
21934 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21935 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21938 if test $ac_cv_header_sys_mkdev_h = yes; then
21940 cat >>confdefs.h <<\_ACEOF
21941 #define MAJOR_IN_MKDEV 1
21948 if test $ac_cv_header_sys_mkdev_h = no; then
21949 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21950 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21951 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21952 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21958 # Is the header compilable?
21959 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21960 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <sys/sysmacros.h>
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
21984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21985 { (case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_try") 2>&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); }; } &&
21994 { ac_try='test -s conftest.$ac_objext'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22004 ac_header_compiler=yes
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_header_compiler=no
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22014 echo "${ECHO_T}$ac_header_compiler" >&6; }
22016 # Is the header present?
22017 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22018 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22019 cat >conftest.$ac_ext <<_ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025 #include <sys/sysmacros.h>
22027 if { (ac_try="$ac_cpp conftest.$ac_ext"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } >/dev/null; then
22040 if test -s conftest.err; then
22041 ac_cpp_err=$ac_c_preproc_warn_flag
22042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22049 if test -z "$ac_cpp_err"; then
22050 ac_header_preproc=yes
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22066 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22068 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22069 ac_header_preproc=yes
22072 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22073 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22075 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22077 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22079 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22081 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22083 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22087 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22088 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22089 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22094 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22095 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22098 if test $ac_cv_header_sys_sysmacros_h = yes; then
22100 cat >>confdefs.h <<\_ACEOF
22101 #define MAJOR_IN_SYSMACROS 1
22115 ac_header_dirent=no
22116 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22117 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22118 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22119 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 #include <sys/types.h>
22141 rm -f conftest.$ac_objext
22142 if { (ac_try="$ac_compile"
22143 case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_compile") 2>conftest.er1
22150 grep -v '^ *+' conftest.er1 >conftest.err
22152 cat conftest.err >&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } &&
22155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22156 { (case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_try") 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest.$ac_objext'
22166 { (case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_try") 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 eval "$as_ac_Header=yes"
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 eval "$as_ac_Header=no"
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 ac_res=`eval echo '${'$as_ac_Header'}'`
22186 { echo "$as_me:$LINENO: result: $ac_res" >&5
22187 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22193 ac_header_dirent=$ac_hdr; break
22197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22198 if test $ac_header_dirent = dirent.h; then
22199 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22201 if test "${ac_cv_search_opendir+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 ac_func_search_save_LIBS=$LIBS
22205 cat >conftest.$ac_ext <<_ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22212 /* Override any GCC internal prototype to avoid an error.
22213 Use char because int might match the return type of a GCC
22214 builtin and then its argument prototype would still apply. */
22227 for ac_lib in '' dir; do
22228 if test -z "$ac_lib"; then
22229 ac_res="none required"
22232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_link") 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } &&
22248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; } &&
22258 { ac_try='test -s conftest$ac_exeext'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 ac_cv_search_opendir=$ac_res
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22276 rm -f core conftest.err conftest.$ac_objext \
22278 if test "${ac_cv_search_opendir+set}" = set; then
22282 if test "${ac_cv_search_opendir+set}" = set; then
22285 ac_cv_search_opendir=no
22287 rm conftest.$ac_ext
22288 LIBS=$ac_func_search_save_LIBS
22290 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22291 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22292 ac_res=$ac_cv_search_opendir
22293 if test "$ac_res" != no; then
22294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22301 if test "${ac_cv_search_opendir+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 ac_func_search_save_LIBS=$LIBS
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22327 for ac_lib in '' x; do
22328 if test -z "$ac_lib"; then
22329 ac_res="none required"
22332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_link") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
22348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22349 { (case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354 (eval "$ac_try") 2>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; } &&
22358 { ac_try='test -s conftest$ac_exeext'
22359 { (case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_try") 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22368 ac_cv_search_opendir=$ac_res
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22376 rm -f core conftest.err conftest.$ac_objext \
22378 if test "${ac_cv_search_opendir+set}" = set; then
22382 if test "${ac_cv_search_opendir+set}" = set; then
22385 ac_cv_search_opendir=no
22387 rm conftest.$ac_ext
22388 LIBS=$ac_func_search_save_LIBS
22390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22392 ac_res=$ac_cv_search_opendir
22393 if test "$ac_res" != no; then
22394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22400 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22401 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22402 if test "${ac_cv_header_stat_broken+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <sys/types.h>
22412 #include <sys/stat.h>
22414 #if defined S_ISBLK && defined S_IFDIR
22415 # if S_ISBLK (S_IFDIR)
22420 #if defined S_ISBLK && defined S_IFCHR
22421 # if S_ISBLK (S_IFCHR)
22426 #if defined S_ISLNK && defined S_IFREG
22427 # if S_ISLNK (S_IFREG)
22432 #if defined S_ISSOCK && defined S_IFREG
22433 # if S_ISSOCK (S_IFREG)
22439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22440 $EGREP "You lose" >/dev/null 2>&1; then
22441 ac_cv_header_stat_broken=yes
22443 ac_cv_header_stat_broken=no
22448 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22449 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22450 if test $ac_cv_header_stat_broken = yes; then
22452 cat >>confdefs.h <<\_ACEOF
22453 #define STAT_MACROS_BROKEN 1
22458 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22459 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22460 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #include <sys/types.h>
22470 #include <sys/wait.h>
22471 #ifndef WEXITSTATUS
22472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22483 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22497 grep -v '^ *+' conftest.er1 >conftest.err
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
22502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22503 { (case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_try") 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest.$ac_objext'
22513 { (case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_try") 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_cv_header_sys_wait_h=yes
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_cv_header_sys_wait_h=no
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22533 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22534 if test $ac_cv_header_sys_wait_h = yes; then
22536 cat >>confdefs.h <<\_ACEOF
22537 #define HAVE_SYS_WAIT_H 1
22542 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22543 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22544 if test "${ac_cv_header_time+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 #include <sys/types.h>
22554 #include <sys/time.h>
22560 if ((struct tm *) 0)
22566 rm -f conftest.$ac_objext
22567 if { (ac_try="$ac_compile"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573 (eval "$ac_compile") 2>conftest.er1
22575 grep -v '^ *+' conftest.er1 >conftest.err
22577 cat conftest.err >&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } &&
22580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22590 { ac_try='test -s conftest.$ac_objext'
22591 { (case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_try") 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_cv_header_time=yes
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_header_time=no
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22611 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22612 if test $ac_cv_header_time = yes; then
22614 cat >>confdefs.h <<\_ACEOF
22615 #define TIME_WITH_SYS_TIME 1
22620 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22621 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22622 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 $ac_includes_default
22635 static struct stat ac_aggr;
22636 if (ac_aggr.st_blksize)
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_compile") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_try") 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; } &&
22666 { ac_try='test -s conftest.$ac_objext'
22667 { (case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_try") 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 ac_cv_member_struct_stat_st_blksize=yes
22678 echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22691 static struct stat ac_aggr;
22692 if (sizeof ac_aggr.st_blksize)
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } &&
22712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22713 { (case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_try") 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; } &&
22722 { ac_try='test -s conftest.$ac_objext'
22723 { (case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_try") 2>&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; }; then
22732 ac_cv_member_struct_stat_st_blksize=yes
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ac_cv_member_struct_stat_st_blksize=no
22740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22747 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22749 cat >>confdefs.h <<_ACEOF
22750 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_ST_BLKSIZE 1
22761 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 $ac_includes_default
22776 static struct stat ac_aggr;
22777 if (ac_aggr.st_blocks)
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_compile") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } &&
22797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22798 { (case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_try") 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; } &&
22807 { ac_try='test -s conftest.$ac_objext'
22808 { (case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_try") 2>&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; }; then
22817 ac_cv_member_struct_stat_st_blocks=yes
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 $ac_includes_default
22832 static struct stat ac_aggr;
22833 if (sizeof ac_aggr.st_blocks)
22839 rm -f conftest.$ac_objext
22840 if { (ac_try="$ac_compile"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_compile") 2>conftest.er1
22848 grep -v '^ *+' conftest.er1 >conftest.err
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); } &&
22853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22854 { (case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_try") 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; } &&
22863 { ac_try='test -s conftest.$ac_objext'
22864 { (case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_try") 2>&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; }; then
22873 ac_cv_member_struct_stat_st_blocks=yes
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 ac_cv_member_struct_stat_st_blocks=no
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22887 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22888 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_ST_BLOCKS 1
22900 case " $LIBOBJS " in
22901 *" fileblocks.$ac_objext "* ) ;;
22902 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22909 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22910 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22911 if test "${ac_cv_struct_tm+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include <sys/types.h>
22926 struct tm *tp; tp->tm_sec;
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_compile") 2>conftest.er1
22940 grep -v '^ *+' conftest.er1 >conftest.err
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } &&
22945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22946 { (case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval "$ac_try") 2>&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; } &&
22955 { ac_try='test -s conftest.$ac_objext'
22956 { (case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_try") 2>&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; }; then
22965 ac_cv_struct_tm=time.h
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 ac_cv_struct_tm=sys/time.h
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22976 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22977 if test $ac_cv_struct_tm = sys/time.h; then
22979 cat >>confdefs.h <<\_ACEOF
22980 #define TM_IN_SYS_TIME 1
22985 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22986 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22987 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 #include <sys/types.h>
22997 #include <$ac_cv_struct_tm>
23003 static struct tm ac_aggr;
23004 if (ac_aggr.tm_zone)
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } &&
23024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23025 { (case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030 (eval "$ac_try") 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
23034 { ac_try='test -s conftest.$ac_objext'
23035 { (case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_try") 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ac_cv_member_struct_tm_tm_zone=yes
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 cat >conftest.$ac_ext <<_ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 #include <sys/types.h>
23056 #include <$ac_cv_struct_tm>
23062 static struct tm ac_aggr;
23063 if (sizeof ac_aggr.tm_zone)
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_compile") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
23083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23084 { (case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089 (eval "$ac_try") 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_try") 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 ac_cv_member_struct_tm_tm_zone=yes
23105 echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_cv_member_struct_tm_tm_zone=no
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23117 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23118 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23120 cat >>confdefs.h <<_ACEOF
23121 #define HAVE_STRUCT_TM_TM_ZONE 1
23127 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_TM_ZONE 1
23134 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23135 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23136 if test "${ac_cv_have_decl_tzname+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23151 char *p = (char *) tzname;
23159 rm -f conftest.$ac_objext
23160 if { (ac_try="$ac_compile"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166 (eval "$ac_compile") 2>conftest.er1
23168 grep -v '^ *+' conftest.er1 >conftest.err
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } &&
23173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23174 { (case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_try") 2>&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; } &&
23183 { ac_try='test -s conftest.$ac_objext'
23184 { (case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_try") 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_have_decl_tzname=yes
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_cv_have_decl_tzname=no
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23204 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23205 if test $ac_cv_have_decl_tzname = yes; then
23207 cat >>confdefs.h <<_ACEOF
23208 #define HAVE_DECL_TZNAME 1
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_TZNAME 0
23221 { echo "$as_me:$LINENO: checking for tzname" >&5
23222 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23223 if test "${ac_cv_var_tzname+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23233 #if !HAVE_DECL_TZNAME
23234 extern char *tzname[];
23240 return tzname[0][0];
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } &&
23259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23260 { (case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23265 (eval "$ac_try") 2>&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; } &&
23269 { ac_try='test -s conftest$ac_exeext'
23270 { (case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_try") 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; }; then
23279 ac_cv_var_tzname=yes
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284 ac_cv_var_tzname=no
23287 rm -f core conftest.err conftest.$ac_objext \
23288 conftest$ac_exeext conftest.$ac_ext
23290 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23291 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23292 if test $ac_cv_var_tzname = yes; then
23294 cat >>confdefs.h <<\_ACEOF
23295 #define HAVE_TZNAME 1
23302 { echo "$as_me:$LINENO: checking for utime.h" >&5
23303 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23304 if test "${ba_cv_header_utime_h+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23314 #include <sys/types.h>
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_compile") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest.$ac_objext'
23349 { (case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ba_cv_header_utime_h=yes
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ba_cv_header_utime_h=no
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23369 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23370 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_UTIME_H 1
23375 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23376 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23377 if test "${ba_cv_header_socklen_t+set}" = set; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23387 #include <sys/types.h>
23388 #include <sys/socket.h>
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
23406 grep -v '^ *+' conftest.er1 >conftest.err
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23412 { (case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_try") 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest.$ac_objext'
23422 { (case "(($ac_try" in
23423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424 *) ac_try_echo=$ac_try;;
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427 (eval "$ac_try") 2>&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ba_cv_header_socklen_t=yes
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ba_cv_header_socklen_t=no
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23442 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23443 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_SOCKLEN_T 1
23448 { echo "$as_me:$LINENO: checking for bigendian" >&5
23449 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23450 if test "${ba_cv_bigendian+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 if test "$cross_compiling" = yes; then
23456 cat >conftest.$ac_ext <<_ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23464 rm -f conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_link") 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475 { (case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480 (eval "$ac_try") 2>&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; }; then
23484 ba_cv_bigendian=yes
23486 echo "$as_me: program exited with status $ac_status" >&5
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23490 ( exit $ac_status )
23493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23498 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23499 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23500 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23501 #define HAVE_BIGENDIAN 1
23506 ac_cpp='$CXXCPP $CPPFLAGS'
23507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23512 { echo "$as_me:$LINENO: checking for typeof" >&5
23513 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23514 if test "${ba_cv_have_typeof+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23517 if test "$cross_compiling" = yes; then
23518 ba_cv_have_typeof=no
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 main(){char *a = 0; a = (typeof a)a;}
23528 rm -f conftest$ac_exeext
23529 if { (ac_try="$ac_link"
23530 case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_link") 2>&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23539 { (case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_try") 2>&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; }; then
23548 ba_cv_have_typeof=yes
23550 echo "$as_me: program exited with status $ac_status" >&5
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ( exit $ac_status )
23555 ba_cv_have_typeof=no
23557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23562 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23563 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23564 test $ba_cv_have_typeof = yes &&
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_TYPEOF 1
23570 ac_cpp='$CPP $CPPFLAGS'
23571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23576 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23578 if test "${ac_cv_c_const+set}" = set; then
23579 echo $ECHO_N "(cached) $ECHO_C" >&6
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23591 /* FIXME: Include the comments suggested by Paul. */
23592 #ifndef __cplusplus
23593 /* Ultrix mips cc rejects this. */
23594 typedef int charset[2];
23596 /* SunOS 4.1.1 cc rejects this. */
23597 char const *const *ccp;
23599 /* NEC SVR4.0.2 mips cc rejects this. */
23600 struct point {int x, y;};
23601 static struct point const zero = {0,0};
23602 /* AIX XL C 1.02.0.0 rejects this.
23603 It does not let you subtract one const X* pointer from another in
23604 an arm of an if-expression whose if-part is not a constant
23606 const char *g = "string";
23607 ccp = &g + (g ? g-g : 0);
23608 /* HPUX 7.0 cc rejects these. */
23611 ccp = (char const *const *) p;
23612 { /* SCO 3.2v4 cc rejects this. */
23614 char const *s = 0 ? (char *) 0 : (char const *) 0;
23619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23620 int x[] = {25, 17};
23621 const int *foo = &x[0];
23624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23625 typedef const int *iptr;
23629 { /* AIX XL C 1.02.0.0 rejects this saying
23630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23631 struct s { int j; const int *ap[3]; };
23632 struct s *b; b->j = 5;
23634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23635 const int foo = 10;
23636 if (!foo) return 0;
23638 return !x[0] && !zero.x;
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_compile") 2>conftest.er1
23654 grep -v '^ *+' conftest.er1 >conftest.err
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660 { (case "(($ac_try" in
23661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662 *) ac_try_echo=$ac_try;;
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665 (eval "$ac_try") 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_try") 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23681 echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23690 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23691 if test $ac_cv_c_const = no; then
23693 cat >>confdefs.h <<\_ACEOF
23701 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23702 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23704 # The order of these tests is important.
23705 cat >conftest.$ac_ext <<_ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23711 #include <sys/statvfs.h>
23712 #include <sys/fstyp.h>
23714 if { (ac_try="$ac_cpp conftest.$ac_ext"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } >/dev/null; then
23727 if test -s conftest.err; then
23728 ac_cpp_err=$ac_c_preproc_warn_flag
23729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23736 if test -z "$ac_cpp_err"; then
23737 cat >>confdefs.h <<\_ACEOF
23738 #define FSTYPE_STATVFS 1
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23748 rm -f conftest.err conftest.$ac_ext
23749 if test $fstype = no; then
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <sys/statfs.h>
23757 #include <sys/fstyp.h>
23759 if { (ac_try="$ac_cpp conftest.$ac_ext"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } >/dev/null; then
23772 if test -s conftest.err; then
23773 ac_cpp_err=$ac_c_preproc_warn_flag
23774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23781 if test -z "$ac_cpp_err"; then
23782 cat >>confdefs.h <<\_ACEOF
23783 #define FSTYPE_USG_STATFS 1
23787 echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23793 rm -f conftest.err conftest.$ac_ext
23795 if test $fstype = no; then
23796 cat >conftest.$ac_ext <<_ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 #include <sys/statfs.h>
23803 #include <sys/vmount.h>
23805 if { (ac_try="$ac_cpp conftest.$ac_ext"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23813 grep -v '^ *+' conftest.er1 >conftest.err
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } >/dev/null; then
23818 if test -s conftest.err; then
23819 ac_cpp_err=$ac_c_preproc_warn_flag
23820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23827 if test -z "$ac_cpp_err"; then
23828 cat >>confdefs.h <<\_ACEOF
23829 #define FSTYPE_AIX_STATFS 1
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23839 rm -f conftest.err conftest.$ac_ext
23841 if test $fstype = no; then
23842 cat >conftest.$ac_ext <<_ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 #include <mntent.h>
23850 if { (ac_try="$ac_cpp conftest.$ac_ext"
23851 case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23858 grep -v '^ *+' conftest.er1 >conftest.err
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } >/dev/null; then
23863 if test -s conftest.err; then
23864 ac_cpp_err=$ac_c_preproc_warn_flag
23865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23872 if test -z "$ac_cpp_err"; then
23873 cat >>confdefs.h <<\_ACEOF
23874 #define FSTYPE_MNTENT 1
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23884 rm -f conftest.err conftest.$ac_ext
23886 if test $fstype = no; then
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 #include <sys/mount.h>
23896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23897 $EGREP "f_type;" >/dev/null 2>&1; then
23898 cat >>confdefs.h <<\_ACEOF
23899 #define FSTYPE_STATFS 1
23906 if test $fstype = no; then
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 #include <sys/mount.h>
23914 #include <sys/fs_types.h>
23916 if { (ac_try="$ac_cpp conftest.$ac_ext"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } >/dev/null; then
23929 if test -s conftest.err; then
23930 ac_cpp_err=$ac_c_preproc_warn_flag
23931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23938 if test -z "$ac_cpp_err"; then
23939 cat >>confdefs.h <<\_ACEOF
23940 #define FSTYPE_GETMNT 1
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23950 rm -f conftest.err conftest.$ac_ext
23952 { echo "$as_me:$LINENO: result: $fstype" >&5
23953 echo "${ECHO_T}$fstype" >&6; }
23955 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23956 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23957 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23958 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23961 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23962 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23964 # Is the header compilable?
23965 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23966 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23967 cat >conftest.$ac_ext <<_ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973 $ac_includes_default
23974 #include <sys/statvfs.h>
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_compile") 2>conftest.er1
23985 grep -v '^ *+' conftest.er1 >conftest.err
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } &&
23990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23991 { (case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_try") 2>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; } &&
24000 { ac_try='test -s conftest.$ac_objext'
24001 { (case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_try") 2>&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_header_compiler=yes
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_header_compiler=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6; }
24022 # Is the header present?
24023 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24024 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 #include <sys/statvfs.h>
24033 if { (ac_try="$ac_cpp conftest.$ac_ext"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24041 grep -v '^ *+' conftest.er1 >conftest.err
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } >/dev/null; then
24046 if test -s conftest.err; then
24047 ac_cpp_err=$ac_c_preproc_warn_flag
24048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24055 if test -z "$ac_cpp_err"; then
24056 ac_header_preproc=yes
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_header_preproc=no
24064 rm -f conftest.err conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24066 echo "${ECHO_T}$ac_header_preproc" >&6; }
24068 # So? What about this header?
24069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24071 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24072 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24073 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24074 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24075 ac_header_preproc=yes
24078 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24079 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24080 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24081 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24082 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24083 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24084 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24085 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24086 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24087 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24088 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24089 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24093 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24094 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24095 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24098 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24101 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24104 if test $ac_cv_header_sys_statvfs_h = yes; then
24106 cat >>confdefs.h <<\_ACEOF
24107 #define HAVE_SYS_STATVFS_H 1
24114 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24115 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24116 if test "${ac_cv_type_signal+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 #include <sys/types.h>
24126 #include <signal.h>
24131 return *(signal (0, 0)) (0) == 1;
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24151 { (case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_try") 2>&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; } &&
24160 { ac_try='test -s conftest.$ac_objext'
24161 { (case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_try") 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_cv_type_signal=int
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_type_signal=void
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24181 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24183 cat >>confdefs.h <<_ACEOF
24184 #define RETSIGTYPE $ac_cv_type_signal
24189 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24190 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24191 if test "${bash_cv_signal_vintage+set}" = set; then
24192 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 #include <signal.h>
24207 struct sigaction sa;
24208 sigemptyset(&ss); sigsuspend(&ss);
24209 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24210 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24216 rm -f conftest.$ac_objext conftest$ac_exeext
24217 if { (ac_try="$ac_link"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223 (eval "$ac_link") 2>conftest.er1
24225 grep -v '^ *+' conftest.er1 >conftest.err
24227 cat conftest.err >&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } &&
24230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24231 { (case "(($ac_try" in
24232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233 *) ac_try_echo=$ac_try;;
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236 (eval "$ac_try") 2>&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; } &&
24240 { ac_try='test -s conftest$ac_exeext'
24241 { (case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_try") 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 bash_cv_signal_vintage="posix"
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24256 cat >conftest.$ac_ext <<_ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262 #include <signal.h>
24267 int mask = sigmask(SIGINT);
24268 sigsetmask(mask); sigblock(mask); sigpause(mask);
24274 rm -f conftest.$ac_objext conftest$ac_exeext
24275 if { (ac_try="$ac_link"
24276 case "(($ac_try" in
24277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278 *) ac_try_echo=$ac_try;;
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281 (eval "$ac_link") 2>conftest.er1
24283 grep -v '^ *+' conftest.er1 >conftest.err
24285 cat conftest.err >&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } &&
24288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24289 { (case "(($ac_try" in
24290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24291 *) ac_try_echo=$ac_try;;
24293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24294 (eval "$ac_try") 2>&5
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest$ac_exeext'
24299 { (case "(($ac_try" in
24300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24301 *) ac_try_echo=$ac_try;;
24303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24304 (eval "$ac_try") 2>&5
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); }; }; then
24308 bash_cv_signal_vintage="4.2bsd"
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24321 #include <signal.h>
24322 RETSIGTYPE foo() { }
24327 int mask = sigmask(SIGINT);
24328 sigset(SIGINT, foo); sigrelse(SIGINT);
24329 sighold(SIGINT); sigpause(SIGINT);
24335 rm -f conftest.$ac_objext conftest$ac_exeext
24336 if { (ac_try="$ac_link"
24337 case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_link") 2>conftest.er1
24344 grep -v '^ *+' conftest.er1 >conftest.err
24346 cat conftest.err >&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
24349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350 { (case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_try") 2>&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369 bash_cv_signal_vintage="svr3"
24371 echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 bash_cv_signal_vintage="v7"
24378 rm -f core conftest.err conftest.$ac_objext \
24379 conftest$ac_exeext conftest.$ac_ext
24383 rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24388 rm -f core conftest.err conftest.$ac_objext \
24389 conftest$ac_exeext conftest.$ac_ext
24393 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24394 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24395 if test "$bash_cv_signal_vintage" = "posix"; then
24396 cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_POSIX_SIGNALS 1
24400 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24401 cat >>confdefs.h <<\_ACEOF
24402 #define HAVE_BSD_SIGNALS 1
24405 elif test "$bash_cv_signal_vintage" = "svr3"; then
24406 cat >>confdefs.h <<\_ACEOF
24407 #define HAVE_USG_SIGHOLD 1
24412 { echo "$as_me:$LINENO: checking for mode_t" >&5
24413 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24414 if test "${ac_cv_type_mode_t+set}" = set; then
24415 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 $ac_includes_default
24424 typedef mode_t ac__type_new_;
24428 if ((ac__type_new_ *) 0)
24430 if (sizeof (ac__type_new_))
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
24450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24451 { (case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_try") 2>&5
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; } &&
24460 { ac_try='test -s conftest.$ac_objext'
24461 { (case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_try") 2>&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 ac_cv_type_mode_t=yes
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ac_cv_type_mode_t=no
24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24481 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24482 if test $ac_cv_type_mode_t = yes; then
24486 cat >>confdefs.h <<_ACEOF
24492 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24493 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24494 if test "${ac_cv_type_uid_t+set}" = set; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 #include <sys/types.h>
24506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24507 $EGREP "uid_t" >/dev/null 2>&1; then
24508 ac_cv_type_uid_t=yes
24510 ac_cv_type_uid_t=no
24515 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24516 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24517 if test $ac_cv_type_uid_t = no; then
24519 cat >>confdefs.h <<\_ACEOF
24524 cat >>confdefs.h <<\_ACEOF
24530 { echo "$as_me:$LINENO: checking for size_t" >&5
24531 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24532 if test "${ac_cv_type_size_t+set}" = set; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 $ac_includes_default
24542 typedef size_t ac__type_new_;
24546 if ((ac__type_new_ *) 0)
24548 if (sizeof (ac__type_new_))
24554 rm -f conftest.$ac_objext
24555 if { (ac_try="$ac_compile"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_compile") 2>conftest.er1
24563 grep -v '^ *+' conftest.er1 >conftest.err
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
24568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569 { (case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_try") 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest.$ac_objext'
24579 { (case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_try") 2>&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; }; then
24588 ac_cv_type_size_t=yes
24590 echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24593 ac_cv_type_size_t=no
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24599 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24600 if test $ac_cv_type_size_t = yes; then
24604 cat >>confdefs.h <<_ACEOF
24605 #define size_t unsigned int
24610 { echo "$as_me:$LINENO: checking for pid_t" >&5
24611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24612 if test "${ac_cv_type_pid_t+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24622 typedef pid_t ac__type_new_;
24626 if ((ac__type_new_ *) 0)
24628 if (sizeof (ac__type_new_))
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641 (eval "$ac_compile") 2>conftest.er1
24643 grep -v '^ *+' conftest.er1 >conftest.err
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } &&
24648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24649 { (case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_try") 2>&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; } &&
24658 { ac_try='test -s conftest.$ac_objext'
24659 { (case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_try") 2>&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
24668 ac_cv_type_pid_t=yes
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 ac_cv_type_pid_t=no
24676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24679 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24680 if test $ac_cv_type_pid_t = yes; then
24684 cat >>confdefs.h <<_ACEOF
24690 { echo "$as_me:$LINENO: checking for off_t" >&5
24691 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24692 if test "${ac_cv_type_off_t+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24695 cat >conftest.$ac_ext <<_ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24701 $ac_includes_default
24702 typedef off_t ac__type_new_;
24706 if ((ac__type_new_ *) 0)
24708 if (sizeof (ac__type_new_))
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718 *) ac_try_echo=$ac_try;;
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721 (eval "$ac_compile") 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24729 { (case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_try") 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; } &&
24738 { ac_try='test -s conftest.$ac_objext'
24739 { (case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_try") 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; }; then
24748 ac_cv_type_off_t=yes
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 ac_cv_type_off_t=no
24756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24759 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24760 if test $ac_cv_type_off_t = yes; then
24764 cat >>confdefs.h <<_ACEOF
24765 #define off_t long int
24770 { echo "$as_me:$LINENO: checking for ino_t" >&5
24771 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24772 if test "${ac_cv_type_ino_t+set}" = set; then
24773 echo $ECHO_N "(cached) $ECHO_C" >&6
24775 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781 $ac_includes_default
24782 typedef ino_t ac__type_new_;
24786 if ((ac__type_new_ *) 0)
24788 if (sizeof (ac__type_new_))
24794 rm -f conftest.$ac_objext
24795 if { (ac_try="$ac_compile"
24796 case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_compile") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1 >conftest.err
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } &&
24808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24809 { (case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_try") 2>&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); }; } &&
24818 { ac_try='test -s conftest.$ac_objext'
24819 { (case "(($ac_try" in
24820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24821 *) ac_try_echo=$ac_try;;
24823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24824 (eval "$ac_try") 2>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 ac_cv_type_ino_t=yes
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_cv_type_ino_t=no
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24839 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24840 if test $ac_cv_type_ino_t = yes; then
24844 cat >>confdefs.h <<_ACEOF
24845 #define ino_t unsigned long
24850 { echo "$as_me:$LINENO: checking for dev_t" >&5
24851 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24852 if test "${ac_cv_type_dev_t+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 $ac_includes_default
24862 typedef dev_t ac__type_new_;
24866 if ((ac__type_new_ *) 0)
24868 if (sizeof (ac__type_new_))
24874 rm -f conftest.$ac_objext
24875 if { (ac_try="$ac_compile"
24876 case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_compile") 2>conftest.er1
24883 grep -v '^ *+' conftest.er1 >conftest.err
24885 cat conftest.err >&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } &&
24888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24889 { (case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_try") 2>&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); }; } &&
24898 { ac_try='test -s conftest.$ac_objext'
24899 { (case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 (eval "$ac_try") 2>&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; }; then
24908 ac_cv_type_dev_t=yes
24910 echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ac_cv_type_dev_t=no
24916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24919 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24920 if test $ac_cv_type_dev_t = yes; then
24924 cat >>confdefs.h <<_ACEOF
24925 #define dev_t unsigned long
24930 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24931 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24932 if test "${ac_cv_type_daddr_t+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24941 $ac_includes_default
24942 typedef daddr_t ac__type_new_;
24946 if ((ac__type_new_ *) 0)
24948 if (sizeof (ac__type_new_))
24954 rm -f conftest.$ac_objext
24955 if { (ac_try="$ac_compile"
24956 case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961 (eval "$ac_compile") 2>conftest.er1
24963 grep -v '^ *+' conftest.er1 >conftest.err
24965 cat conftest.err >&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
24968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24969 { (case "(($ac_try" in
24970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24971 *) ac_try_echo=$ac_try;;
24973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24974 (eval "$ac_try") 2>&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; } &&
24978 { ac_try='test -s conftest.$ac_objext'
24979 { (case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_try") 2>&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; }; then
24988 ac_cv_type_daddr_t=yes
24990 echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24993 ac_cv_type_daddr_t=no
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24999 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25000 if test $ac_cv_type_daddr_t = yes; then
25004 cat >>confdefs.h <<_ACEOF
25005 #define daddr_t long
25010 { echo "$as_me:$LINENO: checking for major_t" >&5
25011 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25012 if test "${ac_cv_type_major_t+set}" = set; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 typedef major_t ac__type_new_;
25026 if ((ac__type_new_ *) 0)
25028 if (sizeof (ac__type_new_))
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041 (eval "$ac_compile") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } &&
25048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25049 { (case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054 (eval "$ac_try") 2>&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; } &&
25058 { ac_try='test -s conftest.$ac_objext'
25059 { (case "(($ac_try" in
25060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061 *) ac_try_echo=$ac_try;;
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064 (eval "$ac_try") 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 ac_cv_type_major_t=yes
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25073 ac_cv_type_major_t=no
25076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25078 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25079 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25080 if test $ac_cv_type_major_t = yes; then
25084 cat >>confdefs.h <<_ACEOF
25085 #define major_t int
25090 { echo "$as_me:$LINENO: checking for minor_t" >&5
25091 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25092 if test "${ac_cv_type_minor_t+set}" = set; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 cat >conftest.$ac_ext <<_ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25101 $ac_includes_default
25102 typedef minor_t ac__type_new_;
25106 if ((ac__type_new_ *) 0)
25108 if (sizeof (ac__type_new_))
25114 rm -f conftest.$ac_objext
25115 if { (ac_try="$ac_compile"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_compile") 2>conftest.er1
25123 grep -v '^ *+' conftest.er1 >conftest.err
25125 cat conftest.err >&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } &&
25128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25129 { (case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_try") 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; } &&
25138 { ac_try='test -s conftest.$ac_objext'
25139 { (case "(($ac_try" in
25140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141 *) ac_try_echo=$ac_try;;
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144 (eval "$ac_try") 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; }; then
25148 ac_cv_type_minor_t=yes
25150 echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25153 ac_cv_type_minor_t=no
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25159 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25160 if test $ac_cv_type_minor_t = yes; then
25164 cat >>confdefs.h <<_ACEOF
25165 #define minor_t int
25170 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25171 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25172 if test "${ac_cv_type_ssize_t+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 cat >conftest.$ac_ext <<_ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 $ac_includes_default
25182 typedef ssize_t ac__type_new_;
25186 if ((ac__type_new_ *) 0)
25188 if (sizeof (ac__type_new_))
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201 (eval "$ac_compile") 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_try") 2>&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; } &&
25218 { ac_try='test -s conftest.$ac_objext'
25219 { (case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_try") 2>&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 ac_cv_type_ssize_t=yes
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 ac_cv_type_ssize_t=no
25236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25238 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25239 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25240 if test $ac_cv_type_ssize_t = yes; then
25244 cat >>confdefs.h <<_ACEOF
25245 #define ssize_t int
25250 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25251 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25252 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 cat >conftest.$ac_ext <<_ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h. */
25261 $ac_includes_default
25265 static struct stat ac_aggr;
25266 if (ac_aggr.st_blocks)
25272 rm -f conftest.$ac_objext
25273 if { (ac_try="$ac_compile"
25274 case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279 (eval "$ac_compile") 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } &&
25286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25287 { (case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292 (eval "$ac_try") 2>&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; } &&
25296 { ac_try='test -s conftest.$ac_objext'
25297 { (case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302 (eval "$ac_try") 2>&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; }; then
25306 ac_cv_member_struct_stat_st_blocks=yes
25308 echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25311 cat >conftest.$ac_ext <<_ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317 $ac_includes_default
25321 static struct stat ac_aggr;
25322 if (sizeof ac_aggr.st_blocks)
25328 rm -f conftest.$ac_objext
25329 if { (ac_try="$ac_compile"
25330 case "(($ac_try" in
25331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332 *) ac_try_echo=$ac_try;;
25334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25335 (eval "$ac_compile") 2>conftest.er1
25337 grep -v '^ *+' conftest.er1 >conftest.err
25339 cat conftest.err >&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } &&
25342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25343 { (case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_try") 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; } &&
25352 { ac_try='test -s conftest.$ac_objext'
25353 { (case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358 (eval "$ac_try") 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_member_struct_stat_st_blocks=yes
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_cv_member_struct_stat_st_blocks=no
25370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25376 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25377 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25379 cat >>confdefs.h <<_ACEOF
25380 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25384 cat >>confdefs.h <<\_ACEOF
25385 #define HAVE_ST_BLOCKS 1
25389 case " $LIBOBJS " in
25390 *" fileblocks.$ac_objext "* ) ;;
25391 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25398 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25399 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25400 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 cat >conftest.$ac_ext <<_ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 $ac_includes_default
25413 static struct stat ac_aggr;
25414 if (ac_aggr.st_rdev)
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427 (eval "$ac_compile") 2>conftest.er1
25429 grep -v '^ *+' conftest.er1 >conftest.err
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25435 { (case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_try") 2>&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; } &&
25444 { ac_try='test -s conftest.$ac_objext'
25445 { (case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_try") 2>&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; }; then
25454 ac_cv_member_struct_stat_st_rdev=yes
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25469 static struct stat ac_aggr;
25470 if (sizeof ac_aggr.st_rdev)
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483 (eval "$ac_compile") 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
25490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25491 { (case "(($ac_try" in
25492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493 *) ac_try_echo=$ac_try;;
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496 (eval "$ac_try") 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; } &&
25500 { ac_try='test -s conftest.$ac_objext'
25501 { (case "(($ac_try" in
25502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503 *) ac_try_echo=$ac_try;;
25505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506 (eval "$ac_try") 2>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; }; then
25510 ac_cv_member_struct_stat_st_rdev=yes
25512 echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25515 ac_cv_member_struct_stat_st_rdev=no
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25524 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25525 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25527 cat >>confdefs.h <<_ACEOF
25528 #define HAVE_STRUCT_STAT_ST_RDEV 1
25532 cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_ST_RDEV 1
25539 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25540 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25541 if test "${ac_cv_struct_tm+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 #include <sys/types.h>
25556 struct tm *tp; tp->tm_sec;
25561 rm -f conftest.$ac_objext
25562 if { (ac_try="$ac_compile"
25563 case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_compile") 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } &&
25575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25576 { (case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581 (eval "$ac_try") 2>&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest.$ac_objext'
25586 { (case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591 (eval "$ac_try") 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 ac_cv_struct_tm=time.h
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ac_cv_struct_tm=sys/time.h
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25605 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25606 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25607 if test $ac_cv_struct_tm = sys/time.h; then
25609 cat >>confdefs.h <<\_ACEOF
25610 #define TM_IN_SYS_TIME 1
25615 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25616 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25617 if test "${ac_cv_c_const+set}" = set; then
25618 echo $ECHO_N "(cached) $ECHO_C" >&6
25620 cat >conftest.$ac_ext <<_ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25630 /* FIXME: Include the comments suggested by Paul. */
25631 #ifndef __cplusplus
25632 /* Ultrix mips cc rejects this. */
25633 typedef int charset[2];
25635 /* SunOS 4.1.1 cc rejects this. */
25636 char const *const *ccp;
25638 /* NEC SVR4.0.2 mips cc rejects this. */
25639 struct point {int x, y;};
25640 static struct point const zero = {0,0};
25641 /* AIX XL C 1.02.0.0 rejects this.
25642 It does not let you subtract one const X* pointer from another in
25643 an arm of an if-expression whose if-part is not a constant
25645 const char *g = "string";
25646 ccp = &g + (g ? g-g : 0);
25647 /* HPUX 7.0 cc rejects these. */
25650 ccp = (char const *const *) p;
25651 { /* SCO 3.2v4 cc rejects this. */
25653 char const *s = 0 ? (char *) 0 : (char const *) 0;
25658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25659 int x[] = {25, 17};
25660 const int *foo = &x[0];
25663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25664 typedef const int *iptr;
25668 { /* AIX XL C 1.02.0.0 rejects this saying
25669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25670 struct s { int j; const int *ap[3]; };
25671 struct s *b; b->j = 5;
25673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25674 const int foo = 10;
25675 if (!foo) return 0;
25677 return !x[0] && !zero.x;
25684 rm -f conftest.$ac_objext
25685 if { (ac_try="$ac_compile"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_compile") 2>conftest.er1
25693 grep -v '^ *+' conftest.er1 >conftest.err
25695 cat conftest.err >&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } &&
25698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25699 { (case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704 (eval "$ac_try") 2>&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; } &&
25708 { ac_try='test -s conftest.$ac_objext'
25709 { (case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714 (eval "$ac_try") 2>&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25729 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25730 if test $ac_cv_c_const = no; then
25732 cat >>confdefs.h <<\_ACEOF
25740 { echo "$as_me:$LINENO: checking for char" >&5
25741 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25742 if test "${ac_cv_type_char+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25745 cat >conftest.$ac_ext <<_ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 $ac_includes_default
25752 typedef char ac__type_new_;
25756 if ((ac__type_new_ *) 0)
25758 if (sizeof (ac__type_new_))
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_compile") 2>conftest.er1
25773 grep -v '^ *+' conftest.er1 >conftest.err
25775 cat conftest.err >&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
25778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25779 { (case "(($ac_try" in
25780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781 *) ac_try_echo=$ac_try;;
25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784 (eval "$ac_try") 2>&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; } &&
25788 { ac_try='test -s conftest.$ac_objext'
25789 { (case "(($ac_try" in
25790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25791 *) ac_try_echo=$ac_try;;
25793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25794 (eval "$ac_try") 2>&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; }; then
25798 ac_cv_type_char=yes
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25808 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25809 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25811 { echo "$as_me:$LINENO: checking size of char" >&5
25812 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25813 if test "${ac_cv_sizeof_char+set}" = set; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25816 if test "$ac_cv_type_char" = yes; then
25817 # The cast to long int works around a bug in the HP C Compiler
25818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25820 # This bug is HP SR number 8606223364.
25821 if test "$cross_compiling" = yes; then
25822 # Depending upon the size, compute the lo and hi bounds.
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25829 $ac_includes_default
25830 typedef char ac__type_sizeof_;
25834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } &&
25855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25856 { (case "(($ac_try" in
25857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_try") 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_try") 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25877 cat >conftest.$ac_ext <<_ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25884 typedef char ac__type_sizeof_;
25888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25895 rm -f conftest.$ac_objext
25896 if { (ac_try="$ac_compile"
25897 case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902 (eval "$ac_compile") 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
25909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25910 { (case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915 (eval "$ac_try") 2>&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; } &&
25919 { ac_try='test -s conftest.$ac_objext'
25920 { (case "(($ac_try" in
25921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922 *) ac_try_echo=$ac_try;;
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925 (eval "$ac_try") 2>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_hi=$ac_mid; break
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 ac_lo=`expr $ac_mid + 1`
25935 if test $ac_lo -le $ac_mid; then
25939 ac_mid=`expr 2 '*' $ac_mid + 1`
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25945 echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25948 cat >conftest.$ac_ext <<_ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h. */
25954 $ac_includes_default
25955 typedef char ac__type_sizeof_;
25959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_compile") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } &&
25980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25981 { (case "(($ac_try" in
25982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_try") 2>&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; } &&
25990 { ac_try='test -s conftest.$ac_objext'
25991 { (case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_try") 2>&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; }; then
26002 cat >conftest.$ac_ext <<_ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 $ac_includes_default
26009 typedef char ac__type_sizeof_;
26013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26035 { (case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_try") 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; } &&
26044 { ac_try='test -s conftest.$ac_objext'
26045 { (case "(($ac_try" in
26046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_try") 2>&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_lo=$ac_mid; break
26056 echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 ac_hi=`expr '(' $ac_mid ')' - 1`
26060 if test $ac_mid -le $ac_hi; then
26064 ac_mid=`expr 2 '*' $ac_mid`
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 # Binary search between lo and hi bounds.
26081 while test "x$ac_lo" != "x$ac_hi"; do
26082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26083 cat >conftest.$ac_ext <<_ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h. */
26089 $ac_includes_default
26090 typedef char ac__type_sizeof_;
26094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26101 rm -f conftest.$ac_objext
26102 if { (ac_try="$ac_compile"
26103 case "(($ac_try" in
26104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26105 *) ac_try_echo=$ac_try;;
26107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26108 (eval "$ac_compile") 2>conftest.er1
26110 grep -v '^ *+' conftest.er1 >conftest.err
26112 cat conftest.err >&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
26115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26116 { (case "(($ac_try" in
26117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118 *) ac_try_echo=$ac_try;;
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121 (eval "$ac_try") 2>&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; } &&
26125 { ac_try='test -s conftest.$ac_objext'
26126 { (case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_try") 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_lo=`expr '(' $ac_mid ')' + 1`
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 ?*) ac_cv_sizeof_char=$ac_lo;;
26147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26148 See \`config.log' for more details." >&5
26149 echo "$as_me: error: cannot compute sizeof (char)
26150 See \`config.log' for more details." >&2;}
26151 { (exit 77); exit 77; }; } ;;
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 $ac_includes_default
26161 typedef char ac__type_sizeof_;
26162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26165 #include <stdlib.h>
26170 FILE *f = fopen ("conftest.val", "w");
26173 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26175 long int i = longval ();
26176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26178 fprintf (f, "%ld\n", i);
26182 unsigned long int i = ulongval ();
26183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26185 fprintf (f, "%lu\n", i);
26187 return ferror (f) || fclose (f) != 0;
26193 rm -f conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200 (eval "$ac_link") 2>&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26204 { (case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_try") 2>&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 ac_cv_sizeof_char=`cat conftest.val`
26215 echo "$as_me: program exited with status $ac_status" >&5
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ( exit $ac_status )
26220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26221 See \`config.log' for more details." >&5
26222 echo "$as_me: error: cannot compute sizeof (char)
26223 See \`config.log' for more details." >&2;}
26224 { (exit 77); exit 77; }; }
26226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26230 ac_cv_sizeof_char=0
26233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26234 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26235 cat >>confdefs.h <<_ACEOF
26236 #define SIZEOF_CHAR $ac_cv_sizeof_char
26240 { echo "$as_me:$LINENO: checking for short int" >&5
26241 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26242 if test "${ac_cv_type_short_int+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 $ac_includes_default
26252 typedef short int ac__type_new_;
26256 if ((ac__type_new_ *) 0)
26258 if (sizeof (ac__type_new_))
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268 *) ac_try_echo=$ac_try;;
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271 (eval "$ac_compile") 2>conftest.er1
26273 grep -v '^ *+' conftest.er1 >conftest.err
26275 cat conftest.err >&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
26278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26279 { (case "(($ac_try" in
26280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 *) ac_try_echo=$ac_try;;
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 (eval "$ac_try") 2>&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; } &&
26288 { ac_try='test -s conftest.$ac_objext'
26289 { (case "(($ac_try" in
26290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26291 *) ac_try_echo=$ac_try;;
26293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26294 (eval "$ac_try") 2>&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; }; then
26298 ac_cv_type_short_int=yes
26300 echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26303 ac_cv_type_short_int=no
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26308 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26309 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26311 { echo "$as_me:$LINENO: checking size of short int" >&5
26312 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26313 if test "${ac_cv_sizeof_short_int+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 if test "$ac_cv_type_short_int" = yes; then
26317 # The cast to long int works around a bug in the HP C Compiler
26318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26320 # This bug is HP SR number 8606223364.
26321 if test "$cross_compiling" = yes; then
26322 # Depending upon the size, compute the lo and hi bounds.
26323 cat >conftest.$ac_ext <<_ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h. */
26329 $ac_includes_default
26330 typedef short int ac__type_sizeof_;
26334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26341 rm -f conftest.$ac_objext
26342 if { (ac_try="$ac_compile"
26343 case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348 (eval "$ac_compile") 2>conftest.er1
26350 grep -v '^ *+' conftest.er1 >conftest.err
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } &&
26355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26356 { (case "(($ac_try" in
26357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358 *) ac_try_echo=$ac_try;;
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361 (eval "$ac_try") 2>&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; } &&
26365 { ac_try='test -s conftest.$ac_objext'
26366 { (case "(($ac_try" in
26367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368 *) ac_try_echo=$ac_try;;
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371 (eval "$ac_try") 2>&5
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; }; then
26377 cat >conftest.$ac_ext <<_ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 $ac_includes_default
26384 typedef short int ac__type_sizeof_;
26388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26395 rm -f conftest.$ac_objext
26396 if { (ac_try="$ac_compile"
26397 case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_compile") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } &&
26409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26410 { (case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_try") 2>&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; } &&
26419 { ac_try='test -s conftest.$ac_objext'
26420 { (case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_try") 2>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 ac_hi=$ac_mid; break
26431 echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26434 ac_lo=`expr $ac_mid + 1`
26435 if test $ac_lo -le $ac_mid; then
26439 ac_mid=`expr 2 '*' $ac_mid + 1`
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 $ac_includes_default
26455 typedef short int ac__type_sizeof_;
26459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26466 rm -f conftest.$ac_objext
26467 if { (ac_try="$ac_compile"
26468 case "(($ac_try" in
26469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470 *) ac_try_echo=$ac_try;;
26472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473 (eval "$ac_compile") 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26481 { (case "(($ac_try" in
26482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483 *) ac_try_echo=$ac_try;;
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486 (eval "$ac_try") 2>&5
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; } &&
26490 { ac_try='test -s conftest.$ac_objext'
26491 { (case "(($ac_try" in
26492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493 *) ac_try_echo=$ac_try;;
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496 (eval "$ac_try") 2>&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); }; }; then
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 $ac_includes_default
26509 typedef short int ac__type_sizeof_;
26513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
26534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26535 { (case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_try") 2>&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try='test -s conftest.$ac_objext'
26545 { (case "(($ac_try" in
26546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547 *) ac_try_echo=$ac_try;;
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550 (eval "$ac_try") 2>&5
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); }; }; then
26554 ac_lo=$ac_mid; break
26556 echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26559 ac_hi=`expr '(' $ac_mid ')' - 1`
26560 if test $ac_mid -le $ac_hi; then
26564 ac_mid=`expr 2 '*' $ac_mid`
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26580 # Binary search between lo and hi bounds.
26581 while test "x$ac_lo" != "x$ac_hi"; do
26582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26583 cat >conftest.$ac_ext <<_ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h. */
26589 $ac_includes_default
26590 typedef short int ac__type_sizeof_;
26594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26601 rm -f conftest.$ac_objext
26602 if { (ac_try="$ac_compile"
26603 case "(($ac_try" in
26604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605 *) ac_try_echo=$ac_try;;
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608 (eval "$ac_compile") 2>conftest.er1
26610 grep -v '^ *+' conftest.er1 >conftest.err
26612 cat conftest.err >&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } &&
26615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26616 { (case "(($ac_try" in
26617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618 *) ac_try_echo=$ac_try;;
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621 (eval "$ac_try") 2>&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; } &&
26625 { ac_try='test -s conftest.$ac_objext'
26626 { (case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_try") 2>&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; }; then
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ac_lo=`expr '(' $ac_mid ')' + 1`
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26648 See \`config.log' for more details." >&5
26649 echo "$as_me: error: cannot compute sizeof (short int)
26650 See \`config.log' for more details." >&2;}
26651 { (exit 77); exit 77; }; } ;;
26654 cat >conftest.$ac_ext <<_ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26660 $ac_includes_default
26661 typedef short int ac__type_sizeof_;
26662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26665 #include <stdlib.h>
26670 FILE *f = fopen ("conftest.val", "w");
26673 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26675 long int i = longval ();
26676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26678 fprintf (f, "%ld\n", i);
26682 unsigned long int i = ulongval ();
26683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26685 fprintf (f, "%lu\n", i);
26687 return ferror (f) || fclose (f) != 0;
26693 rm -f conftest$ac_exeext
26694 if { (ac_try="$ac_link"
26695 case "(($ac_try" in
26696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697 *) ac_try_echo=$ac_try;;
26699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700 (eval "$ac_link") 2>&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26704 { (case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_try") 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 ac_cv_sizeof_short_int=`cat conftest.val`
26715 echo "$as_me: program exited with status $ac_status" >&5
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ( exit $ac_status )
26720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26721 See \`config.log' for more details." >&5
26722 echo "$as_me: error: cannot compute sizeof (short int)
26723 See \`config.log' for more details." >&2;}
26724 { (exit 77); exit 77; }; }
26726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26730 ac_cv_sizeof_short_int=0
26733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26734 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26735 cat >>confdefs.h <<_ACEOF
26736 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26740 { echo "$as_me:$LINENO: checking for int" >&5
26741 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26742 if test "${ac_cv_type_int+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26751 $ac_includes_default
26752 typedef int ac__type_new_;
26756 if ((ac__type_new_ *) 0)
26758 if (sizeof (ac__type_new_))
26764 rm -f conftest.$ac_objext
26765 if { (ac_try="$ac_compile"
26766 case "(($ac_try" in
26767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26768 *) ac_try_echo=$ac_try;;
26770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26771 (eval "$ac_compile") 2>conftest.er1
26773 grep -v '^ *+' conftest.er1 >conftest.err
26775 cat conftest.err >&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } &&
26778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26779 { (case "(($ac_try" in
26780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781 *) ac_try_echo=$ac_try;;
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784 (eval "$ac_try") 2>&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; } &&
26788 { ac_try='test -s conftest.$ac_objext'
26789 { (case "(($ac_try" in
26790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791 *) ac_try_echo=$ac_try;;
26793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794 (eval "$ac_try") 2>&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; }; then
26800 echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26808 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26809 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26811 { echo "$as_me:$LINENO: checking size of int" >&5
26812 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26813 if test "${ac_cv_sizeof_int+set}" = set; then
26814 echo $ECHO_N "(cached) $ECHO_C" >&6
26816 if test "$ac_cv_type_int" = yes; then
26817 # The cast to long int works around a bug in the HP C Compiler
26818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26820 # This bug is HP SR number 8606223364.
26821 if test "$cross_compiling" = yes; then
26822 # Depending upon the size, compute the lo and hi bounds.
26823 cat >conftest.$ac_ext <<_ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h. */
26829 $ac_includes_default
26830 typedef int ac__type_sizeof_;
26834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848 (eval "$ac_compile") 2>conftest.er1
26850 grep -v '^ *+' conftest.er1 >conftest.err
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } &&
26855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26856 { (case "(($ac_try" in
26857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858 *) ac_try_echo=$ac_try;;
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861 (eval "$ac_try") 2>&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; } &&
26865 { ac_try='test -s conftest.$ac_objext'
26866 { (case "(($ac_try" in
26867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26868 *) ac_try_echo=$ac_try;;
26870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26871 (eval "$ac_try") 2>&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); }; }; then
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 $ac_includes_default
26884 typedef int ac__type_sizeof_;
26888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26895 rm -f conftest.$ac_objext
26896 if { (ac_try="$ac_compile"
26897 case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902 (eval "$ac_compile") 2>conftest.er1
26904 grep -v '^ *+' conftest.er1 >conftest.err
26906 cat conftest.err >&5
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } &&
26909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26910 { (case "(($ac_try" in
26911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912 *) ac_try_echo=$ac_try;;
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915 (eval "$ac_try") 2>&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest.$ac_objext'
26920 { (case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_try") 2>&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; }; then
26929 ac_hi=$ac_mid; break
26931 echo "$as_me: failed program was:" >&5
26932 sed 's/^/| /' conftest.$ac_ext >&5
26934 ac_lo=`expr $ac_mid + 1`
26935 if test $ac_lo -le $ac_mid; then
26939 ac_mid=`expr 2 '*' $ac_mid + 1`
26942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26945 echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26948 cat >conftest.$ac_ext <<_ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26954 $ac_includes_default
26955 typedef int ac__type_sizeof_;
26959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26966 rm -f conftest.$ac_objext
26967 if { (ac_try="$ac_compile"
26968 case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_compile") 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981 { (case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_try") 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest.$ac_objext'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 $ac_includes_default
27009 typedef int ac__type_sizeof_;
27013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_compile") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
27034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest.$ac_objext'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27054 ac_lo=$ac_mid; break
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27059 ac_hi=`expr '(' $ac_mid ')' - 1`
27060 if test $ac_mid -le $ac_hi; then
27064 ac_mid=`expr 2 '*' $ac_mid`
27067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 # Binary search between lo and hi bounds.
27081 while test "x$ac_lo" != "x$ac_hi"; do
27082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27083 cat >conftest.$ac_ext <<_ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h. */
27089 $ac_includes_default
27090 typedef int ac__type_sizeof_;
27094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27101 rm -f conftest.$ac_objext
27102 if { (ac_try="$ac_compile"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_compile") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1 >conftest.err
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest.$ac_objext'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 ac_lo=`expr '(' $ac_mid ')' + 1`
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27146 ?*) ac_cv_sizeof_int=$ac_lo;;
27147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27148 See \`config.log' for more details." >&5
27149 echo "$as_me: error: cannot compute sizeof (int)
27150 See \`config.log' for more details." >&2;}
27151 { (exit 77); exit 77; }; } ;;
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 $ac_includes_default
27161 typedef int ac__type_sizeof_;
27162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27165 #include <stdlib.h>
27170 FILE *f = fopen ("conftest.val", "w");
27173 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27175 long int i = longval ();
27176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27178 fprintf (f, "%ld\n", i);
27182 unsigned long int i = ulongval ();
27183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27185 fprintf (f, "%lu\n", i);
27187 return ferror (f) || fclose (f) != 0;
27193 rm -f conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_link") 2>&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27204 { (case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_try") 2>&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; }; then
27213 ac_cv_sizeof_int=`cat conftest.val`
27215 echo "$as_me: program exited with status $ac_status" >&5
27216 echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27219 ( exit $ac_status )
27220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27221 See \`config.log' for more details." >&5
27222 echo "$as_me: error: cannot compute sizeof (int)
27223 See \`config.log' for more details." >&2;}
27224 { (exit 77); exit 77; }; }
27226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27234 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27235 cat >>confdefs.h <<_ACEOF
27236 #define SIZEOF_INT $ac_cv_sizeof_int
27240 { echo "$as_me:$LINENO: checking for long int" >&5
27241 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27242 if test "${ac_cv_type_long_int+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 cat >conftest.$ac_ext <<_ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h. */
27251 $ac_includes_default
27252 typedef long int ac__type_new_;
27256 if ((ac__type_new_ *) 0)
27258 if (sizeof (ac__type_new_))
27264 rm -f conftest.$ac_objext
27265 if { (ac_try="$ac_compile"
27266 case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_compile") 2>conftest.er1
27273 grep -v '^ *+' conftest.er1 >conftest.err
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest.$ac_objext'
27289 { (case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294 (eval "$ac_try") 2>&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298 ac_cv_type_long_int=yes
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 ac_cv_type_long_int=no
27306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27308 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27309 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27311 { echo "$as_me:$LINENO: checking size of long int" >&5
27312 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27313 if test "${ac_cv_sizeof_long_int+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 if test "$ac_cv_type_long_int" = yes; then
27317 # The cast to long int works around a bug in the HP C Compiler
27318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27320 # This bug is HP SR number 8606223364.
27321 if test "$cross_compiling" = yes; then
27322 # Depending upon the size, compute the lo and hi bounds.
27323 cat >conftest.$ac_ext <<_ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 $ac_includes_default
27330 typedef long int ac__type_sizeof_;
27334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345 *) ac_try_echo=$ac_try;;
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348 (eval "$ac_compile") 2>conftest.er1
27350 grep -v '^ *+' conftest.er1 >conftest.err
27352 cat conftest.err >&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
27355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27356 { (case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; } &&
27365 { ac_try='test -s conftest.$ac_objext'
27366 { (case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_try") 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27377 cat >conftest.$ac_ext <<_ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h. */
27383 $ac_includes_default
27384 typedef long int ac__type_sizeof_;
27388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_compile") 2>conftest.er1
27404 grep -v '^ *+' conftest.er1 >conftest.err
27406 cat conftest.err >&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); } &&
27409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27410 { (case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; } &&
27419 { ac_try='test -s conftest.$ac_objext'
27420 { (case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_try") 2>&5
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; }; then
27429 ac_hi=$ac_mid; break
27431 echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27434 ac_lo=`expr $ac_mid + 1`
27435 if test $ac_lo -le $ac_mid; then
27439 ac_mid=`expr 2 '*' $ac_mid + 1`
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27448 cat >conftest.$ac_ext <<_ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h. */
27454 $ac_includes_default
27455 typedef long int ac__type_sizeof_;
27459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27466 rm -f conftest.$ac_objext
27467 if { (ac_try="$ac_compile"
27468 case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_compile") 2>conftest.er1
27475 grep -v '^ *+' conftest.er1 >conftest.err
27477 cat conftest.err >&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); } &&
27480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; } &&
27490 { ac_try='test -s conftest.$ac_objext'
27491 { (case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_try") 2>&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 $ac_includes_default
27509 typedef long int ac__type_sizeof_;
27513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27520 rm -f conftest.$ac_objext
27521 if { (ac_try="$ac_compile"
27522 case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_compile") 2>conftest.er1
27529 grep -v '^ *+' conftest.er1 >conftest.err
27531 cat conftest.err >&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); } &&
27534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27535 { (case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; } &&
27544 { ac_try='test -s conftest.$ac_objext'
27545 { (case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_try") 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_lo=$ac_mid; break
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ac_hi=`expr '(' $ac_mid ')' - 1`
27560 if test $ac_mid -le $ac_hi; then
27564 ac_mid=`expr 2 '*' $ac_mid`
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570 echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27580 # Binary search between lo and hi bounds.
27581 while test "x$ac_lo" != "x$ac_hi"; do
27582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27583 cat >conftest.$ac_ext <<_ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27589 $ac_includes_default
27590 typedef long int ac__type_sizeof_;
27594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27601 rm -f conftest.$ac_objext
27602 if { (ac_try="$ac_compile"
27603 case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608 (eval "$ac_compile") 2>conftest.er1
27610 grep -v '^ *+' conftest.er1 >conftest.err
27612 cat conftest.err >&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); } &&
27615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27616 { (case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_try") 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; } &&
27625 { ac_try='test -s conftest.$ac_objext'
27626 { (case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_try") 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; }; then
27637 echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27640 ac_lo=`expr '(' $ac_mid ')' + 1`
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27648 See \`config.log' for more details." >&5
27649 echo "$as_me: error: cannot compute sizeof (long int)
27650 See \`config.log' for more details." >&2;}
27651 { (exit 77); exit 77; }; } ;;
27654 cat >conftest.$ac_ext <<_ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27660 $ac_includes_default
27661 typedef long int ac__type_sizeof_;
27662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27665 #include <stdlib.h>
27670 FILE *f = fopen ("conftest.val", "w");
27673 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27675 long int i = longval ();
27676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27678 fprintf (f, "%ld\n", i);
27682 unsigned long int i = ulongval ();
27683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27685 fprintf (f, "%lu\n", i);
27687 return ferror (f) || fclose (f) != 0;
27693 rm -f conftest$ac_exeext
27694 if { (ac_try="$ac_link"
27695 case "(($ac_try" in
27696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697 *) ac_try_echo=$ac_try;;
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700 (eval "$ac_link") 2>&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27704 { (case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_try") 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; }; then
27713 ac_cv_sizeof_long_int=`cat conftest.val`
27715 echo "$as_me: program exited with status $ac_status" >&5
27716 echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27719 ( exit $ac_status )
27720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27721 See \`config.log' for more details." >&5
27722 echo "$as_me: error: cannot compute sizeof (long int)
27723 See \`config.log' for more details." >&2;}
27724 { (exit 77); exit 77; }; }
27726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27730 ac_cv_sizeof_long_int=0
27733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27734 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27735 cat >>confdefs.h <<_ACEOF
27736 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27740 { echo "$as_me:$LINENO: checking for long long int" >&5
27741 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27742 if test "${ac_cv_type_long_long_int+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27751 $ac_includes_default
27752 typedef long long int ac__type_new_;
27756 if ((ac__type_new_ *) 0)
27758 if (sizeof (ac__type_new_))
27764 rm -f conftest.$ac_objext
27765 if { (ac_try="$ac_compile"
27766 case "(($ac_try" in
27767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768 *) ac_try_echo=$ac_try;;
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771 (eval "$ac_compile") 2>conftest.er1
27773 grep -v '^ *+' conftest.er1 >conftest.err
27775 cat conftest.err >&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } &&
27778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; } &&
27788 { ac_try='test -s conftest.$ac_objext'
27789 { (case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_try") 2>&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; }; then
27798 ac_cv_type_long_long_int=yes
27800 echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27803 ac_cv_type_long_long_int=no
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27809 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27811 { echo "$as_me:$LINENO: checking size of long long int" >&5
27812 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27813 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27816 if test "$ac_cv_type_long_long_int" = yes; then
27817 # The cast to long int works around a bug in the HP C Compiler
27818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27820 # This bug is HP SR number 8606223364.
27821 if test "$cross_compiling" = yes; then
27822 # Depending upon the size, compute the lo and hi bounds.
27823 cat >conftest.$ac_ext <<_ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h. */
27829 $ac_includes_default
27830 typedef long long int ac__type_sizeof_;
27834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27841 rm -f conftest.$ac_objext
27842 if { (ac_try="$ac_compile"
27843 case "(($ac_try" in
27844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845 *) ac_try_echo=$ac_try;;
27847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848 (eval "$ac_compile") 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
27855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; } &&
27865 { ac_try='test -s conftest.$ac_objext'
27866 { (case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_try") 2>&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; }; then
27877 cat >conftest.$ac_ext <<_ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27883 $ac_includes_default
27884 typedef long long int ac__type_sizeof_;
27888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910 { (case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_try") 2>&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; } &&
27919 { ac_try='test -s conftest.$ac_objext'
27920 { (case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_try") 2>&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 ac_hi=$ac_mid; break
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 ac_lo=`expr $ac_mid + 1`
27935 if test $ac_lo -le $ac_mid; then
27939 ac_mid=`expr 2 '*' $ac_mid + 1`
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945 echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 cat >conftest.$ac_ext <<_ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27954 $ac_includes_default
27955 typedef long long int ac__type_sizeof_;
27959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27966 rm -f conftest.$ac_objext
27967 if { (ac_try="$ac_compile"
27968 case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_compile") 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest.$ac_objext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28002 cat >conftest.$ac_ext <<_ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 $ac_includes_default
28009 typedef long long int ac__type_sizeof_;
28013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28020 rm -f conftest.$ac_objext
28021 if { (ac_try="$ac_compile"
28022 case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_compile") 2>conftest.er1
28029 grep -v '^ *+' conftest.er1 >conftest.err
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
28034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28035 { (case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_try") 2>&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; } &&
28044 { ac_try='test -s conftest.$ac_objext'
28045 { (case "(($ac_try" in
28046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047 *) ac_try_echo=$ac_try;;
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050 (eval "$ac_try") 2>&5
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_lo=$ac_mid; break
28056 echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28059 ac_hi=`expr '(' $ac_mid ')' - 1`
28060 if test $ac_mid -le $ac_hi; then
28064 ac_mid=`expr 2 '*' $ac_mid`
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080 # Binary search between lo and hi bounds.
28081 while test "x$ac_lo" != "x$ac_hi"; do
28082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28083 cat >conftest.$ac_ext <<_ACEOF
28086 cat confdefs.h >>conftest.$ac_ext
28087 cat >>conftest.$ac_ext <<_ACEOF
28088 /* end confdefs.h. */
28089 $ac_includes_default
28090 typedef long long int ac__type_sizeof_;
28094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28101 rm -f conftest.$ac_objext
28102 if { (ac_try="$ac_compile"
28103 case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_compile") 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
28115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28116 { (case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_try") 2>&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest.$ac_objext'
28126 { (case "(($ac_try" in
28127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128 *) ac_try_echo=$ac_try;;
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131 (eval "$ac_try") 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 ac_lo=`expr '(' $ac_mid ')' + 1`
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28146 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28148 See \`config.log' for more details." >&5
28149 echo "$as_me: error: cannot compute sizeof (long long int)
28150 See \`config.log' for more details." >&2;}
28151 { (exit 77); exit 77; }; } ;;
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 $ac_includes_default
28161 typedef long long int ac__type_sizeof_;
28162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28165 #include <stdlib.h>
28170 FILE *f = fopen ("conftest.val", "w");
28173 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28175 long int i = longval ();
28176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28178 fprintf (f, "%ld\n", i);
28182 unsigned long int i = ulongval ();
28183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28185 fprintf (f, "%lu\n", i);
28187 return ferror (f) || fclose (f) != 0;
28193 rm -f conftest$ac_exeext
28194 if { (ac_try="$ac_link"
28195 case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_link") 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28204 { (case "(($ac_try" in
28205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206 *) ac_try_echo=$ac_try;;
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209 (eval "$ac_try") 2>&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213 ac_cv_sizeof_long_long_int=`cat conftest.val`
28215 echo "$as_me: program exited with status $ac_status" >&5
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ( exit $ac_status )
28220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28221 See \`config.log' for more details." >&5
28222 echo "$as_me: error: cannot compute sizeof (long long int)
28223 See \`config.log' for more details." >&2;}
28224 { (exit 77); exit 77; }; }
28226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28230 ac_cv_sizeof_long_long_int=0
28233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28234 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28235 cat >>confdefs.h <<_ACEOF
28236 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28240 { echo "$as_me:$LINENO: checking for int *" >&5
28241 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28242 if test "${ac_cv_type_int_p+set}" = set; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 $ac_includes_default
28252 typedef int * ac__type_new_;
28256 if ((ac__type_new_ *) 0)
28258 if (sizeof (ac__type_new_))
28264 rm -f conftest.$ac_objext
28265 if { (ac_try="$ac_compile"
28266 case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_compile") 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
28278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest.$ac_objext'
28289 { (case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_try") 2>&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; }; then
28298 ac_cv_type_int_p=yes
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28303 ac_cv_type_int_p=no
28306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28308 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28309 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28311 { echo "$as_me:$LINENO: checking size of int *" >&5
28312 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28313 if test "${ac_cv_sizeof_int_p+set}" = set; then
28314 echo $ECHO_N "(cached) $ECHO_C" >&6
28316 if test "$ac_cv_type_int_p" = yes; then
28317 # The cast to long int works around a bug in the HP C Compiler
28318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28320 # This bug is HP SR number 8606223364.
28321 if test "$cross_compiling" = yes; then
28322 # Depending upon the size, compute the lo and hi bounds.
28323 cat >conftest.$ac_ext <<_ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28329 $ac_includes_default
28330 typedef int * ac__type_sizeof_;
28334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28341 rm -f conftest.$ac_objext
28342 if { (ac_try="$ac_compile"
28343 case "(($ac_try" in
28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345 *) ac_try_echo=$ac_try;;
28347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348 (eval "$ac_compile") 2>conftest.er1
28350 grep -v '^ *+' conftest.er1 >conftest.err
28352 cat conftest.err >&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28356 { (case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_try") 2>&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; } &&
28365 { ac_try='test -s conftest.$ac_objext'
28366 { (case "(($ac_try" in
28367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28368 *) ac_try_echo=$ac_try;;
28370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28371 (eval "$ac_try") 2>&5
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; }; then
28377 cat >conftest.$ac_ext <<_ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28383 $ac_includes_default
28384 typedef int * ac__type_sizeof_;
28388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_compile") 2>conftest.er1
28404 grep -v '^ *+' conftest.er1 >conftest.err
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest.$ac_objext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_hi=$ac_mid; break
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28434 ac_lo=`expr $ac_mid + 1`
28435 if test $ac_lo -le $ac_mid; then
28439 ac_mid=`expr 2 '*' $ac_mid + 1`
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28448 cat >conftest.$ac_ext <<_ACEOF
28451 cat confdefs.h >>conftest.$ac_ext
28452 cat >>conftest.$ac_ext <<_ACEOF
28453 /* end confdefs.h. */
28454 $ac_includes_default
28455 typedef int * ac__type_sizeof_;
28459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28466 rm -f conftest.$ac_objext
28467 if { (ac_try="$ac_compile"
28468 case "(($ac_try" in
28469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470 *) ac_try_echo=$ac_try;;
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473 (eval "$ac_compile") 2>conftest.er1
28475 grep -v '^ *+' conftest.er1 >conftest.err
28477 cat conftest.err >&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } &&
28480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28481 { (case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_try") 2>&5
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; } &&
28490 { ac_try='test -s conftest.$ac_objext'
28491 { (case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496 (eval "$ac_try") 2>&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); }; }; then
28502 cat >conftest.$ac_ext <<_ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h. */
28508 $ac_includes_default
28509 typedef int * ac__type_sizeof_;
28513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28520 rm -f conftest.$ac_objext
28521 if { (ac_try="$ac_compile"
28522 case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_compile") 2>conftest.er1
28529 grep -v '^ *+' conftest.er1 >conftest.err
28531 cat conftest.err >&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28535 { (case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_try") 2>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; } &&
28544 { ac_try='test -s conftest.$ac_objext'
28545 { (case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_try") 2>&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; }; then
28554 ac_lo=$ac_mid; break
28556 echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28559 ac_hi=`expr '(' $ac_mid ')' - 1`
28560 if test $ac_mid -le $ac_hi; then
28564 ac_mid=`expr 2 '*' $ac_mid`
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 # Binary search between lo and hi bounds.
28581 while test "x$ac_lo" != "x$ac_hi"; do
28582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 $ac_includes_default
28590 typedef int * ac__type_sizeof_;
28594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28601 rm -f conftest.$ac_objext
28602 if { (ac_try="$ac_compile"
28603 case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_compile") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } &&
28615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28616 { (case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_try") 2>&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; } &&
28625 { ac_try='test -s conftest.$ac_objext'
28626 { (case "(($ac_try" in
28627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628 *) ac_try_echo=$ac_try;;
28630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631 (eval "$ac_try") 2>&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; }; then
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28640 ac_lo=`expr '(' $ac_mid ')' + 1`
28643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28646 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28648 See \`config.log' for more details." >&5
28649 echo "$as_me: error: cannot compute sizeof (int *)
28650 See \`config.log' for more details." >&2;}
28651 { (exit 77); exit 77; }; } ;;
28654 cat >conftest.$ac_ext <<_ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h. */
28660 $ac_includes_default
28661 typedef int * ac__type_sizeof_;
28662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28665 #include <stdlib.h>
28670 FILE *f = fopen ("conftest.val", "w");
28673 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28675 long int i = longval ();
28676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28678 fprintf (f, "%ld\n", i);
28682 unsigned long int i = ulongval ();
28683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28685 fprintf (f, "%lu\n", i);
28687 return ferror (f) || fclose (f) != 0;
28693 rm -f conftest$ac_exeext
28694 if { (ac_try="$ac_link"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_link") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28704 { (case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_try") 2>&5
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; }; then
28713 ac_cv_sizeof_int_p=`cat conftest.val`
28715 echo "$as_me: program exited with status $ac_status" >&5
28716 echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28719 ( exit $ac_status )
28720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28721 See \`config.log' for more details." >&5
28722 echo "$as_me: error: cannot compute sizeof (int *)
28723 See \`config.log' for more details." >&2;}
28724 { (exit 77); exit 77; }; }
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28730 ac_cv_sizeof_int_p=0
28733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28734 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28735 cat >>confdefs.h <<_ACEOF
28736 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28741 # Check for sys/types.h types
28742 { echo "$as_me:$LINENO: checking for u_int type" >&5
28743 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28744 if test "${ac_cv_have_u_int+set}" = set; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28748 cat >conftest.$ac_ext <<_ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h. */
28754 #include <sys/types.h>
28763 rm -f conftest.$ac_objext
28764 if { (ac_try="$ac_compile"
28765 case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_compile") 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } &&
28777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28778 { (case "(($ac_try" in
28779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780 *) ac_try_echo=$ac_try;;
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783 (eval "$ac_try") 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; } &&
28787 { ac_try='test -s conftest.$ac_objext'
28788 { (case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_try") 2>&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 ac_cv_have_u_int="yes"
28799 echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28802 ac_cv_have_u_int="no"
28806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28810 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28811 if test "x$ac_cv_have_u_int" = "xyes" ; then
28812 cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_U_INT 1
28819 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28820 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28821 if test "${ac_cv_have_intmax_t+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28825 cat >conftest.$ac_ext <<_ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h. */
28831 #include <sys/types.h>
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_compile") 2>conftest.er1
28849 grep -v '^ *+' conftest.er1 >conftest.err
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
28854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28855 { (case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_try") 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
28865 { (case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_try") 2>&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; }; then
28874 ac_cv_have_intmax_t="yes"
28876 echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28880 cat >conftest.$ac_ext <<_ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28886 #include <stdint.h>
28895 rm -f conftest.$ac_objext
28896 if { (ac_try="$ac_compile"
28897 case "(($ac_try" in
28898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28899 *) ac_try_echo=$ac_try;;
28901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902 (eval "$ac_compile") 2>conftest.er1
28904 grep -v '^ *+' conftest.er1 >conftest.err
28906 cat conftest.err >&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
28909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28910 { (case "(($ac_try" in
28911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28912 *) ac_try_echo=$ac_try;;
28914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915 (eval "$ac_try") 2>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; } &&
28919 { ac_try='test -s conftest.$ac_objext'
28920 { (case "(($ac_try" in
28921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925 (eval "$ac_try") 2>&5
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
28929 ac_cv_have_intmax_t="yes"
28931 echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28934 ac_cv_have_intmax_t="no"
28938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28947 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28948 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28949 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28950 cat >>confdefs.h <<\_ACEOF
28951 #define HAVE_INTMAX_T 1
28958 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28959 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28960 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 cat >conftest.$ac_ext <<_ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h. */
28970 #include <sys/types.h>
28974 u_intmax_t a; a = 1;
28979 rm -f conftest.$ac_objext
28980 if { (ac_try="$ac_compile"
28981 case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_compile") 2>conftest.er1
28988 grep -v '^ *+' conftest.er1 >conftest.err
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } &&
28993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28994 { (case "(($ac_try" in
28995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996 *) ac_try_echo=$ac_try;;
28998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28999 (eval "$ac_try") 2>&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest.$ac_objext'
29004 { (case "(($ac_try" in
29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006 *) ac_try_echo=$ac_try;;
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009 (eval "$ac_try") 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; }; then
29013 ac_cv_have_u_intmax_t="yes"
29015 echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29019 cat >conftest.$ac_ext <<_ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h. */
29025 #include <stdint.h>
29029 u_intmax_t a; a = 1;
29034 rm -f conftest.$ac_objext
29035 if { (ac_try="$ac_compile"
29036 case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29041 (eval "$ac_compile") 2>conftest.er1
29043 grep -v '^ *+' conftest.er1 >conftest.err
29045 cat conftest.err >&5
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); } &&
29048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29049 { (case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_try") 2>&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; } &&
29058 { ac_try='test -s conftest.$ac_objext'
29059 { (case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064 (eval "$ac_try") 2>&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); }; }; then
29068 ac_cv_have_u_intmax_t="yes"
29070 echo "$as_me: failed program was:" >&5
29071 sed 's/^/| /' conftest.$ac_ext >&5
29073 ac_cv_have_u_intmax_t="no"
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29085 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29086 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29087 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29088 cat >>confdefs.h <<\_ACEOF
29089 #define HAVE_U_INTMAX_T 1
29096 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29097 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29098 if test "${ac_cv_have_intxx_t+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
29112 int8_t a; int16_t b; int32_t c; a = b = c = 1;
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_intxx_t="yes"
29153 echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29156 ac_cv_have_intxx_t="no"
29160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29163 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29164 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29165 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29166 cat >>confdefs.h <<\_ACEOF
29167 #define HAVE_INTXX_T 1
29173 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29174 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29175 if test "${ac_cv_have_int64_t+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 #include <sys/types.h>
29194 rm -f conftest.$ac_objext
29195 if { (ac_try="$ac_compile"
29196 case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_compile") 2>conftest.er1
29203 grep -v '^ *+' conftest.er1 >conftest.err
29205 cat conftest.err >&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
29208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29209 { (case "(($ac_try" in
29210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211 *) ac_try_echo=$ac_try;;
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214 (eval "$ac_try") 2>&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest.$ac_objext'
29219 { (case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_try") 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29228 ac_cv_have_int64_t="yes"
29230 echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29233 ac_cv_have_int64_t="no"
29237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29240 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29241 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29242 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29243 cat >>confdefs.h <<\_ACEOF
29244 #define HAVE_INT64_T 1
29250 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29251 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29252 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29262 #include <sys/types.h>
29266 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29271 rm -f conftest.$ac_objext
29272 if { (ac_try="$ac_compile"
29273 case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_compile") 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } &&
29285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29286 { (case "(($ac_try" in
29287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288 *) ac_try_echo=$ac_try;;
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291 (eval "$ac_try") 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest.$ac_objext'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; }; then
29305 ac_cv_have_u_intxx_t="yes"
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29310 ac_cv_have_u_intxx_t="no"
29314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29318 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29319 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29320 cat >>confdefs.h <<\_ACEOF
29321 #define HAVE_U_INTXX_T 1
29327 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29328 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29329 if test "${ac_cv_have_u_int64_t+set}" = set; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 cat >conftest.$ac_ext <<_ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29339 #include <sys/types.h>
29343 u_int64_t a; a = 1;
29348 rm -f conftest.$ac_objext
29349 if { (ac_try="$ac_compile"
29350 case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_compile") 2>conftest.er1
29357 grep -v '^ *+' conftest.er1 >conftest.err
29359 cat conftest.err >&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } &&
29362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29363 { (case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_try") 2>&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); }; } &&
29372 { ac_try='test -s conftest.$ac_objext'
29373 { (case "(($ac_try" in
29374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375 *) ac_try_echo=$ac_try;;
29377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378 (eval "$ac_try") 2>&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); }; }; then
29382 ac_cv_have_u_int64_t="yes"
29384 echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29387 ac_cv_have_u_int64_t="no"
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29395 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29396 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29397 cat >>confdefs.h <<\_ACEOF
29398 #define HAVE_U_INT64_T 1
29404 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29405 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29407 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29408 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29409 cat >conftest.$ac_ext <<_ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29415 #include <sys/bitypes.h>
29419 int8_t a; int16_t b; int32_t c;
29420 u_int8_t e; u_int16_t f; u_int32_t g;
29421 a = b = c = e = f = g = 1;
29426 rm -f conftest.$ac_objext
29427 if { (ac_try="$ac_compile"
29428 case "(($ac_try" in
29429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430 *) ac_try_echo=$ac_try;;
29432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433 (eval "$ac_compile") 2>conftest.er1
29435 grep -v '^ *+' conftest.er1 >conftest.err
29437 cat conftest.err >&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } &&
29440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29450 { ac_try='test -s conftest.$ac_objext'
29451 { (case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_try") 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_U_INTXX_T 1
29464 cat >>confdefs.h <<\_ACEOF
29465 #define HAVE_INTXX_T 1
29468 cat >>confdefs.h <<\_ACEOF
29469 #define HAVE_SYS_BITYPES_H 1
29472 { echo "$as_me:$LINENO: result: yes" >&5
29473 echo "${ECHO_T}yes" >&6; }
29475 echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29478 { echo "$as_me:$LINENO: result: no" >&5
29479 echo "${ECHO_T}no" >&6; }
29483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29486 if test -z "$have_u_intxx_t" ; then
29487 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29488 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29489 if test "${ac_cv_have_uintxx_t+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 cat >conftest.$ac_ext <<_ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29499 #include <sys/types.h>
29503 uint8_t a; uint16_t b;
29504 uint32_t c; a = b = c = 1;
29509 rm -f conftest.$ac_objext
29510 if { (ac_try="$ac_compile"
29511 case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_compile") 2>conftest.er1
29518 grep -v '^ *+' conftest.er1 >conftest.err
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } &&
29523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29524 { (case "(($ac_try" in
29525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526 *) ac_try_echo=$ac_try;;
29528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29529 (eval "$ac_try") 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest.$ac_objext'
29534 { (case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_try") 2>&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; }; then
29543 ac_cv_have_uintxx_t="yes"
29545 echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29548 ac_cv_have_uintxx_t="no"
29552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29556 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29557 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29558 cat >>confdefs.h <<\_ACEOF
29559 #define HAVE_UINTXX_T 1
29565 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29566 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29568 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29569 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29570 cat >conftest.$ac_ext <<_ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h. */
29576 #include <sys/bitypes.h>
29580 int64_t a; u_int64_t b;
29586 rm -f conftest.$ac_objext
29587 if { (ac_try="$ac_compile"
29588 case "(($ac_try" in
29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590 *) ac_try_echo=$ac_try;;
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593 (eval "$ac_compile") 2>conftest.er1
29595 grep -v '^ *+' conftest.er1 >conftest.err
29597 cat conftest.err >&5
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } &&
29600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29601 { (case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_try") 2>&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; } &&
29610 { ac_try='test -s conftest.$ac_objext'
29611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_try") 2>&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; }; then
29620 cat >>confdefs.h <<\_ACEOF
29621 #define HAVE_U_INT64_T 1
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_INT64_T 1
29628 { echo "$as_me:$LINENO: result: yes" >&5
29629 echo "${ECHO_T}yes" >&6; }
29631 echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 { echo "$as_me:$LINENO: result: no" >&5
29635 echo "${ECHO_T}no" >&6; }
29639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642 if (test -z "$have_uintxx_t" && \
29643 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29645 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29646 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29647 cat >conftest.$ac_ext <<_ACEOF
29650 cat confdefs.h >>conftest.$ac_ext
29651 cat >>conftest.$ac_ext <<_ACEOF
29652 /* end confdefs.h. */
29653 #include <sys/bitypes.h>
29657 uint8_t a; uint16_t b;
29658 uint32_t c; a = b = c = 1;
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
29677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29678 { (case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_try") 2>&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest.$ac_objext'
29688 { (case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_try") 2>&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 cat >>confdefs.h <<\_ACEOF
29698 #define HAVE_UINTXX_T 1
29701 { echo "$as_me:$LINENO: result: yes" >&5
29702 echo "${ECHO_T}yes" >&6; }
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 { echo "$as_me:$LINENO: result: no" >&5
29708 echo "${ECHO_T}no" >&6; }
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29752 echo $ECHO_N "(cached) $ECHO_C" >&6
29754 cat >conftest.$ac_ext <<_ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29762 #define $ac_func innocuous_$ac_func
29764 /* System header to define __stub macros and hopefully few prototypes,
29765 which can conflict with char $ac_func (); below.
29766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29767 <limits.h> exists even on freestanding compilers. */
29770 # include <limits.h>
29772 # include <assert.h>
29777 /* Override any GCC internal prototype to avoid an error.
29778 Use char because int might match the return type of a GCC
29779 builtin and then its argument prototype would still apply. */
29784 /* The GNU C library defines this for functions which it implements
29785 to always fail with ENOSYS. Some functions are actually named
29786 something starting with __ and the normal name is an alias. */
29787 #if defined __stub_$ac_func || defined __stub___$ac_func
29794 return $ac_func ();
29799 rm -f conftest.$ac_objext conftest$ac_exeext
29800 if { (ac_try="$ac_link"
29801 case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_link") 2>conftest.er1
29808 grep -v '^ *+' conftest.er1 >conftest.err
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } &&
29813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; } &&
29823 { ac_try='test -s conftest$ac_exeext'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 eval "$as_ac_var=yes"
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 eval "$as_ac_var=no"
29841 rm -f core conftest.err conftest.$ac_objext \
29842 conftest$ac_exeext conftest.$ac_ext
29844 ac_res=`eval echo '${'$as_ac_var'}'`
29845 { echo "$as_me:$LINENO: result: $ac_res" >&5
29846 echo "${ECHO_T}$ac_res" >&6; }
29847 if test `eval echo '${'$as_ac_var'}'` = yes; then
29848 cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29853 echo 'configure: cannot find needed function.'; exit 1
29860 for ac_func in fchdir
29862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29866 echo $ECHO_N "(cached) $ECHO_C" >&6
29868 cat >conftest.$ac_ext <<_ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29876 #define $ac_func innocuous_$ac_func
29878 /* System header to define __stub macros and hopefully few prototypes,
29879 which can conflict with char $ac_func (); below.
29880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29881 <limits.h> exists even on freestanding compilers. */
29884 # include <limits.h>
29886 # include <assert.h>
29891 /* Override any GCC internal prototype to avoid an error.
29892 Use char because int might match the return type of a GCC
29893 builtin and then its argument prototype would still apply. */
29898 /* The GNU C library defines this for functions which it implements
29899 to always fail with ENOSYS. Some functions are actually named
29900 something starting with __ and the normal name is an alias. */
29901 #if defined __stub_$ac_func || defined __stub___$ac_func
29908 return $ac_func ();
29913 rm -f conftest.$ac_objext conftest$ac_exeext
29914 if { (ac_try="$ac_link"
29915 case "(($ac_try" in
29916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_link") 2>conftest.er1
29922 grep -v '^ *+' conftest.er1 >conftest.err
29924 cat conftest.err >&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); } &&
29927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29928 { (case "(($ac_try" in
29929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29930 *) ac_try_echo=$ac_try;;
29932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29933 (eval "$ac_try") 2>&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; } &&
29937 { ac_try='test -s conftest$ac_exeext'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; }; then
29947 eval "$as_ac_var=yes"
29949 echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29952 eval "$as_ac_var=no"
29955 rm -f core conftest.err conftest.$ac_objext \
29956 conftest$ac_exeext conftest.$ac_ext
29958 ac_res=`eval echo '${'$as_ac_var'}'`
29959 { echo "$as_me:$LINENO: result: $ac_res" >&5
29960 echo "${ECHO_T}$ac_res" >&6; }
29961 if test `eval echo '${'$as_ac_var'}'` = yes; then
29962 cat >>confdefs.h <<_ACEOF
29963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29965 cat >>confdefs.h <<\_ACEOF
29966 #define HAVE_FCHDIR 1
29973 for ac_func in strtoll
29975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 cat >conftest.$ac_ext <<_ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29989 #define $ac_func innocuous_$ac_func
29991 /* System header to define __stub macros and hopefully few prototypes,
29992 which can conflict with char $ac_func (); below.
29993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994 <limits.h> exists even on freestanding compilers. */
29997 # include <limits.h>
29999 # include <assert.h>
30004 /* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
30011 /* The GNU C library defines this for functions which it implements
30012 to always fail with ENOSYS. Some functions are actually named
30013 something starting with __ and the normal name is an alias. */
30014 #if defined __stub_$ac_func || defined __stub___$ac_func
30021 return $ac_func ();
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>conftest.er1
30035 grep -v '^ *+' conftest.er1 >conftest.err
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
30040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30041 { (case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046 (eval "$ac_try") 2>&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; } &&
30050 { ac_try='test -s conftest$ac_exeext'
30051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056 (eval "$ac_try") 2>&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 eval "$as_ac_var=yes"
30062 echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30065 eval "$as_ac_var=no"
30068 rm -f core conftest.err conftest.$ac_objext \
30069 conftest$ac_exeext conftest.$ac_ext
30071 ac_res=`eval echo '${'$as_ac_var'}'`
30072 { echo "$as_me:$LINENO: result: $ac_res" >&5
30073 echo "${ECHO_T}$ac_res" >&6; }
30074 if test `eval echo '${'$as_ac_var'}'` = yes; then
30075 cat >>confdefs.h <<_ACEOF
30076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30078 cat >>confdefs.h <<\_ACEOF
30079 #define HAVE_STRTOLL 1
30087 for ac_func in chflags
30089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30095 cat >conftest.$ac_ext <<_ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30103 #define $ac_func innocuous_$ac_func
30105 /* System header to define __stub macros and hopefully few prototypes,
30106 which can conflict with char $ac_func (); below.
30107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30108 <limits.h> exists even on freestanding compilers. */
30111 # include <limits.h>
30113 # include <assert.h>
30118 /* Override any GCC internal prototype to avoid an error.
30119 Use char because int might match the return type of a GCC
30120 builtin and then its argument prototype would still apply. */
30125 /* The GNU C library defines this for functions which it implements
30126 to always fail with ENOSYS. Some functions are actually named
30127 something starting with __ and the normal name is an alias. */
30128 #if defined __stub_$ac_func || defined __stub___$ac_func
30135 return $ac_func ();
30140 rm -f conftest.$ac_objext conftest$ac_exeext
30141 if { (ac_try="$ac_link"
30142 case "(($ac_try" in
30143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144 *) ac_try_echo=$ac_try;;
30146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30147 (eval "$ac_link") 2>conftest.er1
30149 grep -v '^ *+' conftest.er1 >conftest.err
30151 cat conftest.err >&5
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); } &&
30154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30155 { (case "(($ac_try" in
30156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157 *) ac_try_echo=$ac_try;;
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160 (eval "$ac_try") 2>&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; } &&
30164 { ac_try='test -s conftest$ac_exeext'
30165 { (case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_try") 2>&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; }; then
30174 eval "$as_ac_var=yes"
30176 echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30179 eval "$as_ac_var=no"
30182 rm -f core conftest.err conftest.$ac_objext \
30183 conftest$ac_exeext conftest.$ac_ext
30185 ac_res=`eval echo '${'$as_ac_var'}'`
30186 { echo "$as_me:$LINENO: result: $ac_res" >&5
30187 echo "${ECHO_T}$ac_res" >&6; }
30188 if test `eval echo '${'$as_ac_var'}'` = yes; then
30189 cat >>confdefs.h <<_ACEOF
30190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30201 for ac_func in snprintf vsnprintf gethostid fseeko
30203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30209 cat >conftest.$ac_ext <<_ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h. */
30215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30217 #define $ac_func innocuous_$ac_func
30219 /* System header to define __stub macros and hopefully few prototypes,
30220 which can conflict with char $ac_func (); below.
30221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30222 <limits.h> exists even on freestanding compilers. */
30225 # include <limits.h>
30227 # include <assert.h>
30232 /* Override any GCC internal prototype to avoid an error.
30233 Use char because int might match the return type of a GCC
30234 builtin and then its argument prototype would still apply. */
30239 /* The GNU C library defines this for functions which it implements
30240 to always fail with ENOSYS. Some functions are actually named
30241 something starting with __ and the normal name is an alias. */
30242 #if defined __stub_$ac_func || defined __stub___$ac_func
30249 return $ac_func ();
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_link") 2>conftest.er1
30263 grep -v '^ *+' conftest.er1 >conftest.err
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest$ac_exeext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 eval "$as_ac_var=yes"
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 eval "$as_ac_var=no"
30296 rm -f core conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
30299 ac_res=`eval echo '${'$as_ac_var'}'`
30300 { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303 cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30315 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30321 echo $ECHO_N "(cached) $ECHO_C" >&6
30323 cat >conftest.$ac_ext <<_ACEOF
30326 cat confdefs.h >>conftest.$ac_ext
30327 cat >>conftest.$ac_ext <<_ACEOF
30328 /* end confdefs.h. */
30329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30331 #define $ac_func innocuous_$ac_func
30333 /* System header to define __stub macros and hopefully few prototypes,
30334 which can conflict with char $ac_func (); below.
30335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30336 <limits.h> exists even on freestanding compilers. */
30339 # include <limits.h>
30341 # include <assert.h>
30346 /* Override any GCC internal prototype to avoid an error.
30347 Use char because int might match the return type of a GCC
30348 builtin and then its argument prototype would still apply. */
30353 /* The GNU C library defines this for functions which it implements
30354 to always fail with ENOSYS. Some functions are actually named
30355 something starting with __ and the normal name is an alias. */
30356 #if defined __stub_$ac_func || defined __stub___$ac_func
30363 return $ac_func ();
30368 rm -f conftest.$ac_objext conftest$ac_exeext
30369 if { (ac_try="$ac_link"
30370 case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_link") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383 { (case "(($ac_try" in
30384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385 *) ac_try_echo=$ac_try;;
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388 (eval "$ac_try") 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest$ac_exeext'
30393 { (case "(($ac_try" in
30394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395 *) ac_try_echo=$ac_try;;
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398 (eval "$ac_try") 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; }; then
30402 eval "$as_ac_var=yes"
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 eval "$as_ac_var=no"
30410 rm -f core conftest.err conftest.$ac_objext \
30411 conftest$ac_exeext conftest.$ac_ext
30413 ac_res=`eval echo '${'$as_ac_var'}'`
30414 { echo "$as_me:$LINENO: result: $ac_res" >&5
30415 echo "${ECHO_T}$ac_res" >&6; }
30416 if test `eval echo '${'$as_ac_var'}'` = yes; then
30417 cat >>confdefs.h <<_ACEOF
30418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30425 # If resolver functions are not in libc check for -lnsl or -lresolv.
30426 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30427 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30428 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 cat >conftest.$ac_ext <<_ACEOF
30434 cat confdefs.h >>conftest.$ac_ext
30435 cat >>conftest.$ac_ext <<_ACEOF
30436 /* end confdefs.h. */
30437 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30439 #define gethostbyname_r innocuous_gethostbyname_r
30441 /* System header to define __stub macros and hopefully few prototypes,
30442 which can conflict with char gethostbyname_r (); below.
30443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30444 <limits.h> exists even on freestanding compilers. */
30447 # include <limits.h>
30449 # include <assert.h>
30452 #undef gethostbyname_r
30454 /* Override any GCC internal prototype to avoid an error.
30455 Use char because int might match the return type of a GCC
30456 builtin and then its argument prototype would still apply. */
30460 char gethostbyname_r ();
30461 /* The GNU C library defines this for functions which it implements
30462 to always fail with ENOSYS. Some functions are actually named
30463 something starting with __ and the normal name is an alias. */
30464 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30471 return gethostbyname_r ();
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480 *) ac_try_echo=$ac_try;;
30482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30483 (eval "$ac_link") 2>conftest.er1
30485 grep -v '^ *+' conftest.er1 >conftest.err
30487 cat conftest.err >&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } &&
30490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30491 { (case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_try") 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; } &&
30500 { ac_try='test -s conftest$ac_exeext'
30501 { (case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_try") 2>&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); }; }; then
30510 ac_cv_func_gethostbyname_r=yes
30512 echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.$ac_ext >&5
30515 ac_cv_func_gethostbyname_r=no
30518 rm -f core conftest.err conftest.$ac_objext \
30519 conftest$ac_exeext conftest.$ac_ext
30521 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30522 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30523 if test $ac_cv_func_gethostbyname_r = yes; then
30524 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30525 echo "${ECHO_T}using libc's resolver" >&6; }
30528 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30529 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30530 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30533 ac_check_lib_save_LIBS=$LIBS
30535 cat >conftest.$ac_ext <<_ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h. */
30542 /* Override any GCC internal prototype to avoid an error.
30543 Use char because int might match the return type of a GCC
30544 builtin and then its argument prototype would still apply. */
30548 char gethostbyname_r ();
30552 return gethostbyname_r ();
30557 rm -f conftest.$ac_objext conftest$ac_exeext
30558 if { (ac_try="$ac_link"
30559 case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_link") 2>conftest.er1
30566 grep -v '^ *+' conftest.er1 >conftest.err
30568 cat conftest.err >&5
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); } &&
30571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30572 { (case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_try") 2>&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); }; } &&
30581 { ac_try='test -s conftest$ac_exeext'
30582 { (case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_try") 2>&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; }; then
30591 ac_cv_lib_nsl_gethostbyname_r=yes
30593 echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30596 ac_cv_lib_nsl_gethostbyname_r=no
30599 rm -f core conftest.err conftest.$ac_objext \
30600 conftest$ac_exeext conftest.$ac_ext
30601 LIBS=$ac_check_lib_save_LIBS
30603 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30604 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30605 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30606 cat >>confdefs.h <<_ACEOF
30607 #define HAVE_LIBNSL 1
30615 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30616 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30617 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30620 ac_check_lib_save_LIBS=$LIBS
30621 LIBS="-lresolv $LIBS"
30622 cat >conftest.$ac_ext <<_ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30629 /* Override any GCC internal prototype to avoid an error.
30630 Use char because int might match the return type of a GCC
30631 builtin and then its argument prototype would still apply. */
30635 char gethostbyname_r ();
30639 return gethostbyname_r ();
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (ac_try="$ac_link"
30646 case "(($ac_try" in
30647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648 *) ac_try_echo=$ac_try;;
30650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651 (eval "$ac_link") 2>conftest.er1
30653 grep -v '^ *+' conftest.er1 >conftest.err
30655 cat conftest.err >&5
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); } &&
30658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30659 { (case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_try") 2>&5
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); }; } &&
30668 { ac_try='test -s conftest$ac_exeext'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_try") 2>&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; }; then
30678 ac_cv_lib_resolv_gethostbyname_r=yes
30680 echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30683 ac_cv_lib_resolv_gethostbyname_r=no
30686 rm -f core conftest.err conftest.$ac_objext \
30687 conftest$ac_exeext conftest.$ac_ext
30688 LIBS=$ac_check_lib_save_LIBS
30690 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30691 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30692 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30693 cat >>confdefs.h <<_ACEOF
30694 #define HAVE_LIBRESOLV 1
30697 LIBS="-lresolv $LIBS"
30707 for ac_func in inet_pton
30709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 cat >conftest.$ac_ext <<_ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30723 #define $ac_func innocuous_$ac_func
30725 /* System header to define __stub macros and hopefully few prototypes,
30726 which can conflict with char $ac_func (); below.
30727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728 <limits.h> exists even on freestanding compilers. */
30731 # include <limits.h>
30733 # include <assert.h>
30738 /* Override any GCC internal prototype to avoid an error.
30739 Use char because int might match the return type of a GCC
30740 builtin and then its argument prototype would still apply. */
30745 /* The GNU C library defines this for functions which it implements
30746 to always fail with ENOSYS. Some functions are actually named
30747 something starting with __ and the normal name is an alias. */
30748 #if defined __stub_$ac_func || defined __stub___$ac_func
30755 return $ac_func ();
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (ac_try="$ac_link"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_link") 2>conftest.er1
30769 grep -v '^ *+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } &&
30774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30775 { (case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_try") 2>&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; } &&
30784 { ac_try='test -s conftest$ac_exeext'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; }; then
30794 eval "$as_ac_var=yes"
30796 echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 eval "$as_ac_var=no"
30802 rm -f core conftest.err conftest.$ac_objext \
30803 conftest$ac_exeext conftest.$ac_ext
30805 ac_res=`eval echo '${'$as_ac_var'}'`
30806 { echo "$as_me:$LINENO: result: $ac_res" >&5
30807 echo "${ECHO_T}$ac_res" >&6; }
30808 if test `eval echo '${'$as_ac_var'}'` = yes; then
30809 cat >>confdefs.h <<_ACEOF
30810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30812 cat >>confdefs.h <<\_ACEOF
30813 #define HAVE_INET_PTON 1
30820 for ac_func in inet_ntop
30822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30828 cat >conftest.$ac_ext <<_ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h. */
30834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836 #define $ac_func innocuous_$ac_func
30838 /* System header to define __stub macros and hopefully few prototypes,
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
30844 # include <limits.h>
30846 # include <assert.h>
30851 /* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
30858 /* The GNU C library defines this for functions which it implements
30859 to always fail with ENOSYS. Some functions are actually named
30860 something starting with __ and the normal name is an alias. */
30861 #if defined __stub_$ac_func || defined __stub___$ac_func
30868 return $ac_func ();
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (ac_try="$ac_link"
30875 case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_link") 2>conftest.er1
30882 grep -v '^ *+' conftest.er1 >conftest.err
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888 { (case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_try") 2>&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 eval "$as_ac_var=yes"
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30912 eval "$as_ac_var=no"
30915 rm -f core conftest.err conftest.$ac_objext \
30916 conftest$ac_exeext conftest.$ac_ext
30918 ac_res=`eval echo '${'$as_ac_var'}'`
30919 { echo "$as_me:$LINENO: result: $ac_res" >&5
30920 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_var'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30925 cat >>confdefs.h <<\_ACEOF
30926 #define HAVE_INET_NTOP 1
30933 for ac_func in gethostbyname2
30935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30939 echo $ECHO_N "(cached) $ECHO_C" >&6
30941 cat >conftest.$ac_ext <<_ACEOF
30944 cat confdefs.h >>conftest.$ac_ext
30945 cat >>conftest.$ac_ext <<_ACEOF
30946 /* end confdefs.h. */
30947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30949 #define $ac_func innocuous_$ac_func
30951 /* System header to define __stub macros and hopefully few prototypes,
30952 which can conflict with char $ac_func (); below.
30953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30954 <limits.h> exists even on freestanding compilers. */
30957 # include <limits.h>
30959 # include <assert.h>
30964 /* Override any GCC internal prototype to avoid an error.
30965 Use char because int might match the return type of a GCC
30966 builtin and then its argument prototype would still apply. */
30971 /* The GNU C library defines this for functions which it implements
30972 to always fail with ENOSYS. Some functions are actually named
30973 something starting with __ and the normal name is an alias. */
30974 #if defined __stub_$ac_func || defined __stub___$ac_func
30981 return $ac_func ();
30986 rm -f conftest.$ac_objext conftest$ac_exeext
30987 if { (ac_try="$ac_link"
30988 case "(($ac_try" in
30989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990 *) ac_try_echo=$ac_try;;
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993 (eval "$ac_link") 2>conftest.er1
30995 grep -v '^ *+' conftest.er1 >conftest.err
30997 cat conftest.err >&5
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); } &&
31000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; } &&
31010 { ac_try='test -s conftest$ac_exeext'
31011 { (case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_try") 2>&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; }; then
31020 eval "$as_ac_var=yes"
31022 echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31025 eval "$as_ac_var=no"
31028 rm -f core conftest.err conftest.$ac_objext \
31029 conftest$ac_exeext conftest.$ac_ext
31031 ac_res=`eval echo '${'$as_ac_var'}'`
31032 { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31034 if test `eval echo '${'$as_ac_var'}'` = yes; then
31035 cat >>confdefs.h <<_ACEOF
31036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31038 cat >>confdefs.h <<\_ACEOF
31039 #define HAVE_GETHOSTBYNAME2 1
31046 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31047 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31048 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31051 cat >conftest.$ac_ext <<_ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 #include <sys/socket.h>
31061 struct sockaddr s; s.sa_len;
31066 rm -f conftest.$ac_objext
31067 if { (ac_try="$ac_compile"
31068 case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_compile") 2>conftest.er1
31075 grep -v '^ *+' conftest.er1 >conftest.err
31077 cat conftest.err >&5
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; } &&
31090 { ac_try='test -s conftest.$ac_objext'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
31100 ac_cv_struct_sockaddr_sa_len=yes
31102 echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 ac_cv_struct_sockaddr_sa_len=no
31108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31110 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31111 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31113 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31115 cat >>confdefs.h <<\_ACEOF
31116 #define HAVE_SA_LEN 1
31125 for ac_func in strftime
31127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31131 echo $ECHO_N "(cached) $ECHO_C" >&6
31133 cat >conftest.$ac_ext <<_ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31141 #define $ac_func innocuous_$ac_func
31143 /* System header to define __stub macros and hopefully few prototypes,
31144 which can conflict with char $ac_func (); below.
31145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31146 <limits.h> exists even on freestanding compilers. */
31149 # include <limits.h>
31151 # include <assert.h>
31156 /* Override any GCC internal prototype to avoid an error.
31157 Use char because int might match the return type of a GCC
31158 builtin and then its argument prototype would still apply. */
31163 /* The GNU C library defines this for functions which it implements
31164 to always fail with ENOSYS. Some functions are actually named
31165 something starting with __ and the normal name is an alias. */
31166 #if defined __stub_$ac_func || defined __stub___$ac_func
31173 return $ac_func ();
31178 rm -f conftest.$ac_objext conftest$ac_exeext
31179 if { (ac_try="$ac_link"
31180 case "(($ac_try" in
31181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182 *) ac_try_echo=$ac_try;;
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185 (eval "$ac_link") 2>conftest.er1
31187 grep -v '^ *+' conftest.er1 >conftest.err
31189 cat conftest.err >&5
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); } &&
31192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31193 { (case "(($ac_try" in
31194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195 *) ac_try_echo=$ac_try;;
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198 (eval "$ac_try") 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest$ac_exeext'
31203 { (case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_try") 2>&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; }; then
31212 eval "$as_ac_var=yes"
31214 echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31217 eval "$as_ac_var=no"
31220 rm -f core conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
31223 ac_res=`eval echo '${'$as_ac_var'}'`
31224 { echo "$as_me:$LINENO: result: $ac_res" >&5
31225 echo "${ECHO_T}$ac_res" >&6; }
31226 if test `eval echo '${'$as_ac_var'}'` = yes; then
31227 cat >>confdefs.h <<_ACEOF
31228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31232 # strftime is in -lintl on SCO UNIX.
31233 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31234 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31235 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31236 echo $ECHO_N "(cached) $ECHO_C" >&6
31238 ac_check_lib_save_LIBS=$LIBS
31239 LIBS="-lintl $LIBS"
31240 cat >conftest.$ac_ext <<_ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h. */
31247 /* Override any GCC internal prototype to avoid an error.
31248 Use char because int might match the return type of a GCC
31249 builtin and then its argument prototype would still apply. */
31257 return strftime ();
31262 rm -f conftest.$ac_objext conftest$ac_exeext
31263 if { (ac_try="$ac_link"
31264 case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_link") 2>conftest.er1
31271 grep -v '^ *+' conftest.er1 >conftest.err
31273 cat conftest.err >&5
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); } &&
31276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31277 { (case "(($ac_try" in
31278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279 *) ac_try_echo=$ac_try;;
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282 (eval "$ac_try") 2>&5
31284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285 (exit $ac_status); }; } &&
31286 { ac_try='test -s conftest$ac_exeext'
31287 { (case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_try") 2>&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31296 ac_cv_lib_intl_strftime=yes
31298 echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31301 ac_cv_lib_intl_strftime=no
31304 rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
31306 LIBS=$ac_check_lib_save_LIBS
31308 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31309 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31310 if test $ac_cv_lib_intl_strftime = yes; then
31311 cat >>confdefs.h <<\_ACEOF
31312 #define HAVE_STRFTIME 1
31315 LIBS="-lintl $LIBS"
31322 for ac_func in vprintf
31324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31328 echo $ECHO_N "(cached) $ECHO_C" >&6
31330 cat >conftest.$ac_ext <<_ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h. */
31336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31338 #define $ac_func innocuous_$ac_func
31340 /* System header to define __stub macros and hopefully few prototypes,
31341 which can conflict with char $ac_func (); below.
31342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31343 <limits.h> exists even on freestanding compilers. */
31346 # include <limits.h>
31348 # include <assert.h>
31353 /* Override any GCC internal prototype to avoid an error.
31354 Use char because int might match the return type of a GCC
31355 builtin and then its argument prototype would still apply. */
31360 /* The GNU C library defines this for functions which it implements
31361 to always fail with ENOSYS. Some functions are actually named
31362 something starting with __ and the normal name is an alias. */
31363 #if defined __stub_$ac_func || defined __stub___$ac_func
31370 return $ac_func ();
31375 rm -f conftest.$ac_objext conftest$ac_exeext
31376 if { (ac_try="$ac_link"
31377 case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_link") 2>conftest.er1
31384 grep -v '^ *+' conftest.er1 >conftest.err
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
31389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390 { (case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_try") 2>&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest$ac_exeext'
31400 { (case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_try") 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 eval "$as_ac_var=yes"
31411 echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31414 eval "$as_ac_var=no"
31417 rm -f core conftest.err conftest.$ac_objext \
31418 conftest$ac_exeext conftest.$ac_ext
31420 ac_res=`eval echo '${'$as_ac_var'}'`
31421 { echo "$as_me:$LINENO: result: $ac_res" >&5
31422 echo "${ECHO_T}$ac_res" >&6; }
31423 if test `eval echo '${'$as_ac_var'}'` = yes; then
31424 cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31428 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31429 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31430 if test "${ac_cv_func__doprnt+set}" = set; then
31431 echo $ECHO_N "(cached) $ECHO_C" >&6
31433 cat >conftest.$ac_ext <<_ACEOF
31436 cat confdefs.h >>conftest.$ac_ext
31437 cat >>conftest.$ac_ext <<_ACEOF
31438 /* end confdefs.h. */
31439 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31441 #define _doprnt innocuous__doprnt
31443 /* System header to define __stub macros and hopefully few prototypes,
31444 which can conflict with char _doprnt (); below.
31445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31446 <limits.h> exists even on freestanding compilers. */
31449 # include <limits.h>
31451 # include <assert.h>
31456 /* Override any GCC internal prototype to avoid an error.
31457 Use char because int might match the return type of a GCC
31458 builtin and then its argument prototype would still apply. */
31463 /* The GNU C library defines this for functions which it implements
31464 to always fail with ENOSYS. Some functions are actually named
31465 something starting with __ and the normal name is an alias. */
31466 #if defined __stub__doprnt || defined __stub____doprnt
31478 rm -f conftest.$ac_objext conftest$ac_exeext
31479 if { (ac_try="$ac_link"
31480 case "(($ac_try" in
31481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482 *) ac_try_echo=$ac_try;;
31484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31485 (eval "$ac_link") 2>conftest.er1
31487 grep -v '^ *+' conftest.er1 >conftest.err
31489 cat conftest.err >&5
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } &&
31492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31493 { (case "(($ac_try" in
31494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31495 *) ac_try_echo=$ac_try;;
31497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31498 (eval "$ac_try") 2>&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); }; } &&
31502 { ac_try='test -s conftest$ac_exeext'
31503 { (case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_try") 2>&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); }; }; then
31512 ac_cv_func__doprnt=yes
31514 echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31517 ac_cv_func__doprnt=no
31520 rm -f core conftest.err conftest.$ac_objext \
31521 conftest$ac_exeext conftest.$ac_ext
31523 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31524 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31525 if test $ac_cv_func__doprnt = yes; then
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_DOPRNT 1
31537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31538 # for constant arguments. Useless!
31539 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31541 if test "${ac_cv_working_alloca_h+set}" = set; then
31542 echo $ECHO_N "(cached) $ECHO_C" >&6
31544 cat >conftest.$ac_ext <<_ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h. */
31550 #include <alloca.h>
31554 char *p = (char *) alloca (2 * sizeof (int));
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (ac_try="$ac_link"
31562 case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_link") 2>conftest.er1
31569 grep -v '^ *+' conftest.er1 >conftest.err
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31575 { (case "(($ac_try" in
31576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577 *) ac_try_echo=$ac_try;;
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580 (eval "$ac_try") 2>&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest$ac_exeext'
31585 { (case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_try") 2>&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; }; then
31594 ac_cv_working_alloca_h=yes
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 ac_cv_working_alloca_h=no
31602 rm -f core conftest.err conftest.$ac_objext \
31603 conftest$ac_exeext conftest.$ac_ext
31605 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31606 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31607 if test $ac_cv_working_alloca_h = yes; then
31609 cat >>confdefs.h <<\_ACEOF
31610 #define HAVE_ALLOCA_H 1
31615 { echo "$as_me:$LINENO: checking for alloca" >&5
31616 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31617 if test "${ac_cv_func_alloca_works+set}" = set; then
31618 echo $ECHO_N "(cached) $ECHO_C" >&6
31620 cat >conftest.$ac_ext <<_ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h. */
31627 # define alloca __builtin_alloca
31630 # include <malloc.h>
31631 # define alloca _alloca
31634 # include <alloca.h>
31639 # ifndef alloca /* predefined by HP cc +Olibcalls */
31650 char *p = (char *) alloca (1);
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (ac_try="$ac_link"
31658 case "(($ac_try" in
31659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660 *) ac_try_echo=$ac_try;;
31662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663 (eval "$ac_link") 2>conftest.er1
31665 grep -v '^ *+' conftest.er1 >conftest.err
31667 cat conftest.err >&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); } &&
31670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31671 { (case "(($ac_try" in
31672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673 *) ac_try_echo=$ac_try;;
31675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676 (eval "$ac_try") 2>&5
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; } &&
31680 { ac_try='test -s conftest$ac_exeext'
31681 { (case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686 (eval "$ac_try") 2>&5
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; }; then
31690 ac_cv_func_alloca_works=yes
31692 echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31695 ac_cv_func_alloca_works=no
31698 rm -f core conftest.err conftest.$ac_objext \
31699 conftest$ac_exeext conftest.$ac_ext
31701 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31704 if test $ac_cv_func_alloca_works = yes; then
31706 cat >>confdefs.h <<\_ACEOF
31707 #define HAVE_ALLOCA 1
31711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31712 # that cause trouble. Some versions do not even contain alloca or
31713 # contain a buggy version. If you still want to use their alloca,
31714 # use ar to extract alloca.o from them instead of compiling alloca.c.
31716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31718 cat >>confdefs.h <<\_ACEOF
31723 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31724 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31725 if test "${ac_cv_os_cray+set}" = set; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31728 cat >conftest.$ac_ext <<_ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h. */
31734 #if defined CRAY && ! defined CRAY2
31741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31742 $EGREP "webecray" >/dev/null 2>&1; then
31750 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31751 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31752 if test $ac_cv_os_cray = yes; then
31753 for ac_func in _getb67 GETB67 getb67; do
31754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31760 cat >conftest.$ac_ext <<_ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h. */
31766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31768 #define $ac_func innocuous_$ac_func
31770 /* System header to define __stub macros and hopefully few prototypes,
31771 which can conflict with char $ac_func (); below.
31772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31773 <limits.h> exists even on freestanding compilers. */
31776 # include <limits.h>
31778 # include <assert.h>
31783 /* Override any GCC internal prototype to avoid an error.
31784 Use char because int might match the return type of a GCC
31785 builtin and then its argument prototype would still apply. */
31790 /* The GNU C library defines this for functions which it implements
31791 to always fail with ENOSYS. Some functions are actually named
31792 something starting with __ and the normal name is an alias. */
31793 #if defined __stub_$ac_func || defined __stub___$ac_func
31800 return $ac_func ();
31805 rm -f conftest.$ac_objext conftest$ac_exeext
31806 if { (ac_try="$ac_link"
31807 case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_link") 2>conftest.er1
31814 grep -v '^ *+' conftest.er1 >conftest.err
31816 cat conftest.err >&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); } &&
31819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31820 { (case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_try") 2>&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
31829 { ac_try='test -s conftest$ac_exeext'
31830 { (case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_try") 2>&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
31839 eval "$as_ac_var=yes"
31841 echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31844 eval "$as_ac_var=no"
31847 rm -f core conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31850 ac_res=`eval echo '${'$as_ac_var'}'`
31851 { echo "$as_me:$LINENO: result: $ac_res" >&5
31852 echo "${ECHO_T}$ac_res" >&6; }
31853 if test `eval echo '${'$as_ac_var'}'` = yes; then
31855 cat >>confdefs.h <<_ACEOF
31856 #define CRAY_STACKSEG_END $ac_func
31865 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31867 if test "${ac_cv_c_stack_direction+set}" = set; then
31868 echo $ECHO_N "(cached) $ECHO_C" >&6
31870 if test "$cross_compiling" = yes; then
31871 ac_cv_c_stack_direction=0
31873 cat >conftest.$ac_ext <<_ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31879 $ac_includes_default
31881 find_stack_direction ()
31883 static char *addr = 0;
31888 return find_stack_direction ();
31891 return (&dummy > addr) ? 1 : -1;
31897 return find_stack_direction () < 0;
31900 rm -f conftest$ac_exeext
31901 if { (ac_try="$ac_link"
31902 case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_link") 2>&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31911 { (case "(($ac_try" in
31912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913 *) ac_try_echo=$ac_try;;
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916 (eval "$ac_try") 2>&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; }; then
31920 ac_cv_c_stack_direction=1
31922 echo "$as_me: program exited with status $ac_status" >&5
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31926 ( exit $ac_status )
31927 ac_cv_c_stack_direction=-1
31929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31934 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31937 cat >>confdefs.h <<_ACEOF
31938 #define STACK_DIRECTION $ac_cv_c_stack_direction
31944 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31945 # -lseq on Dynix/PTX, -lgen on Unixware.
31946 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31947 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31948 if test "${ac_cv_search_getmntent+set}" = set; then
31949 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 ac_func_search_save_LIBS=$LIBS
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31959 /* Override any GCC internal prototype to avoid an error.
31960 Use char because int might match the return type of a GCC
31961 builtin and then its argument prototype would still apply. */
31969 return getmntent ();
31974 for ac_lib in '' sun seq gen; do
31975 if test -z "$ac_lib"; then
31976 ac_res="none required"
31979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31981 rm -f conftest.$ac_objext conftest$ac_exeext
31982 if { (ac_try="$ac_link"
31983 case "(($ac_try" in
31984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985 *) ac_try_echo=$ac_try;;
31987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988 (eval "$ac_link") 2>conftest.er1
31990 grep -v '^ *+' conftest.er1 >conftest.err
31992 cat conftest.err >&5
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } &&
31995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31996 { (case "(($ac_try" in
31997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998 *) ac_try_echo=$ac_try;;
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001 (eval "$ac_try") 2>&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; } &&
32005 { ac_try='test -s conftest$ac_exeext'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; }; then
32015 ac_cv_search_getmntent=$ac_res
32017 echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32023 rm -f core conftest.err conftest.$ac_objext \
32025 if test "${ac_cv_search_getmntent+set}" = set; then
32029 if test "${ac_cv_search_getmntent+set}" = set; then
32032 ac_cv_search_getmntent=no
32034 rm conftest.$ac_ext
32035 LIBS=$ac_func_search_save_LIBS
32037 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32038 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32039 ac_res=$ac_cv_search_getmntent
32040 if test "$ac_res" != no; then
32041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32046 for ac_func in getmntent
32048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32054 cat >conftest.$ac_ext <<_ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h. */
32060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32062 #define $ac_func innocuous_$ac_func
32064 /* System header to define __stub macros and hopefully few prototypes,
32065 which can conflict with char $ac_func (); below.
32066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32067 <limits.h> exists even on freestanding compilers. */
32070 # include <limits.h>
32072 # include <assert.h>
32077 /* Override any GCC internal prototype to avoid an error.
32078 Use char because int might match the return type of a GCC
32079 builtin and then its argument prototype would still apply. */
32084 /* The GNU C library defines this for functions which it implements
32085 to always fail with ENOSYS. Some functions are actually named
32086 something starting with __ and the normal name is an alias. */
32087 #if defined __stub_$ac_func || defined __stub___$ac_func
32094 return $ac_func ();
32099 rm -f conftest.$ac_objext conftest$ac_exeext
32100 if { (ac_try="$ac_link"
32101 case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_link") 2>conftest.er1
32108 grep -v '^ *+' conftest.er1 >conftest.err
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } &&
32113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32114 { (case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_try") 2>&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest$ac_exeext'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; }; then
32133 eval "$as_ac_var=yes"
32135 echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32138 eval "$as_ac_var=no"
32141 rm -f core conftest.err conftest.$ac_objext \
32142 conftest$ac_exeext conftest.$ac_ext
32144 ac_res=`eval echo '${'$as_ac_var'}'`
32145 { echo "$as_me:$LINENO: result: $ac_res" >&5
32146 echo "${ECHO_T}$ac_res" >&6; }
32147 if test `eval echo '${'$as_ac_var'}'` = yes; then
32148 cat >>confdefs.h <<_ACEOF
32149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32156 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32157 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32158 if test "${ac_cv_func_closedir_void+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32161 if test "$cross_compiling" = yes; then
32162 ac_cv_func_closedir_void=yes
32164 cat >conftest.$ac_ext <<_ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h. */
32170 $ac_includes_default
32171 #include <$ac_header_dirent>
32172 #ifndef __cplusplus
32179 return closedir (opendir (".")) != 0;
32184 rm -f conftest$ac_exeext
32185 if { (ac_try="$ac_link"
32186 case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_link") 2>&5
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32195 { (case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_try") 2>&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; }; then
32204 ac_cv_func_closedir_void=no
32206 echo "$as_me: program exited with status $ac_status" >&5
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32210 ( exit $ac_status )
32211 ac_cv_func_closedir_void=yes
32213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32218 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32219 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32220 if test $ac_cv_func_closedir_void = yes; then
32222 cat >>confdefs.h <<\_ACEOF
32223 #define CLOSEDIR_VOID 1
32228 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32229 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32230 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 if test "$cross_compiling" = yes; then
32234 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32235 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32236 { (exit 1); exit 1; }; }
32238 cat >conftest.$ac_ext <<_ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h. */
32244 $ac_includes_default
32248 /* If this system has a BSD-style setpgrp which takes arguments,
32249 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32250 exit successfully. */
32251 return setpgrp (1,1) != -1;
32256 rm -f conftest$ac_exeext
32257 if { (ac_try="$ac_link"
32258 case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_link") 2>&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32267 { (case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_try") 2>&5
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; }; then
32276 ac_cv_func_setpgrp_void=no
32278 echo "$as_me: program exited with status $ac_status" >&5
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32282 ( exit $ac_status )
32283 ac_cv_func_setpgrp_void=yes
32285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32290 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32291 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32292 if test $ac_cv_func_setpgrp_void = yes; then
32294 cat >>confdefs.h <<\_ACEOF
32295 #define SETPGRP_VOID 1
32299 # AC_FUNC_FNMATCH dnl use local version
32302 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32303 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32304 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32307 ac_check_lib_save_LIBS=$LIBS
32308 LIBS="-lintl $LIBS"
32309 cat >conftest.$ac_ext <<_ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h. */
32316 /* Override any GCC internal prototype to avoid an error.
32317 Use char because int might match the return type of a GCC
32318 builtin and then its argument prototype would still apply. */
32331 rm -f conftest.$ac_objext conftest$ac_exeext
32332 if { (ac_try="$ac_link"
32333 case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_link") 2>conftest.er1
32340 grep -v '^ *+' conftest.er1 >conftest.err
32342 cat conftest.err >&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); } &&
32345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32346 { (case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_try") 2>&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; } &&
32355 { ac_try='test -s conftest$ac_exeext'
32356 { (case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_try") 2>&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); }; }; then
32365 ac_cv_lib_intl_gettext=yes
32367 echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.$ac_ext >&5
32370 ac_cv_lib_intl_gettext=no
32373 rm -f core conftest.err conftest.$ac_objext \
32374 conftest$ac_exeext conftest.$ac_ext
32375 LIBS=$ac_check_lib_save_LIBS
32377 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32378 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32379 if test $ac_cv_lib_intl_gettext = yes; then
32380 LIBS="$LIBS -lintl"
32386 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32387 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32388 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32389 echo $ECHO_N "(cached) $ECHO_C" >&6
32391 ac_check_lib_save_LIBS=$LIBS
32393 cat >conftest.$ac_ext <<_ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h. */
32400 /* Override any GCC internal prototype to avoid an error.
32401 Use char because int might match the return type of a GCC
32402 builtin and then its argument prototype would still apply. */
32410 return getpwnam ();
32415 rm -f conftest.$ac_objext conftest$ac_exeext
32416 if { (ac_try="$ac_link"
32417 case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_link") 2>conftest.er1
32424 grep -v '^ *+' conftest.er1 >conftest.err
32426 cat conftest.err >&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
32429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32430 { (case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_try") 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest$ac_exeext'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_cv_lib_sun_getpwnam=yes
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 ac_cv_lib_sun_getpwnam=no
32457 rm -f core conftest.err conftest.$ac_objext \
32458 conftest$ac_exeext conftest.$ac_ext
32459 LIBS=$ac_check_lib_save_LIBS
32461 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32462 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32463 if test $ac_cv_lib_sun_getpwnam = yes; then
32464 cat >>confdefs.h <<_ACEOF
32465 #define HAVE_LIBSUN 1
32474 for ac_header in zlib.h
32476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32483 ac_res=`eval echo '${'$as_ac_Header'}'`
32484 { echo "$as_me:$LINENO: result: $ac_res" >&5
32485 echo "${ECHO_T}$ac_res" >&6; }
32487 # Is the header compilable?
32488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32490 cat >conftest.$ac_ext <<_ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h. */
32496 $ac_includes_default
32497 #include <$ac_header>
32499 rm -f conftest.$ac_objext
32500 if { (ac_try="$ac_compile"
32501 case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_compile") 2>conftest.er1
32508 grep -v '^ *+' conftest.er1 >conftest.err
32510 cat conftest.err >&5
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); } &&
32513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32514 { (case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519 (eval "$ac_try") 2>&5
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); }; } &&
32523 { ac_try='test -s conftest.$ac_objext'
32524 { (case "(($ac_try" in
32525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526 *) ac_try_echo=$ac_try;;
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529 (eval "$ac_try") 2>&5
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; }; then
32533 ac_header_compiler=yes
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32538 ac_header_compiler=no
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32543 echo "${ECHO_T}$ac_header_compiler" >&6; }
32545 # Is the header present?
32546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32548 cat >conftest.$ac_ext <<_ACEOF
32551 cat confdefs.h >>conftest.$ac_ext
32552 cat >>conftest.$ac_ext <<_ACEOF
32553 /* end confdefs.h. */
32554 #include <$ac_header>
32556 if { (ac_try="$ac_cpp conftest.$ac_ext"
32557 case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32564 grep -v '^ *+' conftest.er1 >conftest.err
32566 cat conftest.err >&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } >/dev/null; then
32569 if test -s conftest.err; then
32570 ac_cpp_err=$ac_c_preproc_warn_flag
32571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32578 if test -z "$ac_cpp_err"; then
32579 ac_header_preproc=yes
32581 echo "$as_me: failed program was:" >&5
32582 sed 's/^/| /' conftest.$ac_ext >&5
32584 ac_header_preproc=no
32587 rm -f conftest.err conftest.$ac_ext
32588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32589 echo "${ECHO_T}$ac_header_preproc" >&6; }
32591 # So? What about this header?
32592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32598 ac_header_preproc=yes
32601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32621 eval "$as_ac_Header=\$ac_header_preproc"
32623 ac_res=`eval echo '${'$as_ac_Header'}'`
32624 { echo "$as_me:$LINENO: result: $ac_res" >&5
32625 echo "${ECHO_T}$ac_res" >&6; }
32628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32629 cat >>confdefs.h <<_ACEOF
32630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32637 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32638 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32639 if test "${ac_cv_lib_z_deflate+set}" = set; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32642 ac_check_lib_save_LIBS=$LIBS
32644 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32651 /* Override any GCC internal prototype to avoid an error.
32652 Use char because int might match the return type of a GCC
32653 builtin and then its argument prototype would still apply. */
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (ac_try="$ac_link"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_link") 2>conftest.er1
32675 grep -v '^ *+' conftest.er1 >conftest.err
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } &&
32680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32681 { (case "(($ac_try" in
32682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683 *) ac_try_echo=$ac_try;;
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686 (eval "$ac_try") 2>&5
32688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); }; } &&
32690 { ac_try='test -s conftest$ac_exeext'
32691 { (case "(($ac_try" in
32692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32693 *) ac_try_echo=$ac_try;;
32695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32696 (eval "$ac_try") 2>&5
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; }; then
32700 ac_cv_lib_z_deflate=yes
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32705 ac_cv_lib_z_deflate=no
32708 rm -f core conftest.err conftest.$ac_objext \
32709 conftest$ac_exeext conftest.$ac_ext
32710 LIBS=$ac_check_lib_save_LIBS
32712 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32713 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32714 if test $ac_cv_lib_z_deflate = yes; then
32719 if test x$FDLIBS = x-lz; then
32720 cat >>confdefs.h <<\_ACEOF
32721 #define HAVE_LIBZ 1
32728 # Check for ACL libraries
32731 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32732 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32733 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32734 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32735 echo $ECHO_N "(cached) $ECHO_C" >&6
32737 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32738 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32740 # Is the header compilable?
32741 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32742 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32743 cat >conftest.$ac_ext <<_ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32749 $ac_includes_default
32750 #include <sys/acl.h>
32752 rm -f conftest.$ac_objext
32753 if { (ac_try="$ac_compile"
32754 case "(($ac_try" in
32755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756 *) ac_try_echo=$ac_try;;
32758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759 (eval "$ac_compile") 2>conftest.er1
32761 grep -v '^ *+' conftest.er1 >conftest.err
32763 cat conftest.err >&5
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); } &&
32766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest.$ac_objext'
32777 { (case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_try") 2>&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32786 ac_header_compiler=yes
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 ac_header_compiler=no
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32796 echo "${ECHO_T}$ac_header_compiler" >&6; }
32798 # Is the header present?
32799 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32800 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h. */
32807 #include <sys/acl.h>
32809 if { (ac_try="$ac_cpp conftest.$ac_ext"
32810 case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32817 grep -v '^ *+' conftest.er1 >conftest.err
32819 cat conftest.err >&5
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); } >/dev/null; then
32822 if test -s conftest.err; then
32823 ac_cpp_err=$ac_c_preproc_warn_flag
32824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32831 if test -z "$ac_cpp_err"; then
32832 ac_header_preproc=yes
32834 echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32837 ac_header_preproc=no
32840 rm -f conftest.err conftest.$ac_ext
32841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32842 echo "${ECHO_T}$ac_header_preproc" >&6; }
32844 # So? What about this header?
32845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32847 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32848 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32849 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32850 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32851 ac_header_preproc=yes
32854 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32855 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32856 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
32857 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
32858 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32859 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32860 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
32861 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32862 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32863 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32864 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32865 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32869 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32870 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32871 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32874 ac_cv_header_sys_acl_h=$ac_header_preproc
32876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32877 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32882 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32883 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32884 if test "${ac_cv_func_acl_get_file+set}" = set; then
32885 echo $ECHO_N "(cached) $ECHO_C" >&6
32887 cat >conftest.$ac_ext <<_ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h. */
32893 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32895 #define acl_get_file innocuous_acl_get_file
32897 /* System header to define __stub macros and hopefully few prototypes,
32898 which can conflict with char acl_get_file (); below.
32899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32900 <limits.h> exists even on freestanding compilers. */
32903 # include <limits.h>
32905 # include <assert.h>
32908 #undef acl_get_file
32910 /* Override any GCC internal prototype to avoid an error.
32911 Use char because int might match the return type of a GCC
32912 builtin and then its argument prototype would still apply. */
32916 char acl_get_file ();
32917 /* The GNU C library defines this for functions which it implements
32918 to always fail with ENOSYS. Some functions are actually named
32919 something starting with __ and the normal name is an alias. */
32920 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32927 return acl_get_file ();
32932 rm -f conftest.$ac_objext conftest$ac_exeext
32933 if { (ac_try="$ac_link"
32934 case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939 (eval "$ac_link") 2>conftest.er1
32941 grep -v '^ *+' conftest.er1 >conftest.err
32943 cat conftest.err >&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } &&
32946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32947 { (case "(($ac_try" in
32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949 *) ac_try_echo=$ac_try;;
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952 (eval "$ac_try") 2>&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); }; } &&
32956 { ac_try='test -s conftest$ac_exeext'
32957 { (case "(($ac_try" in
32958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959 *) ac_try_echo=$ac_try;;
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962 (eval "$ac_try") 2>&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; }; then
32966 ac_cv_func_acl_get_file=yes
32968 echo "$as_me: failed program was:" >&5
32969 sed 's/^/| /' conftest.$ac_ext >&5
32971 ac_cv_func_acl_get_file=no
32974 rm -f core conftest.err conftest.$ac_objext \
32975 conftest$ac_exeext conftest.$ac_ext
32977 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32978 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32979 if test $ac_cv_func_acl_get_file = yes; then
32982 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32983 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32984 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32987 ac_check_lib_save_LIBS=$LIBS
32989 cat >conftest.$ac_ext <<_ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32996 /* Override any GCC internal prototype to avoid an error.
32997 Use char because int might match the return type of a GCC
32998 builtin and then its argument prototype would still apply. */
33002 char acl_get_file ();
33006 return acl_get_file ();
33011 rm -f conftest.$ac_objext conftest$ac_exeext
33012 if { (ac_try="$ac_link"
33013 case "(($ac_try" in
33014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015 *) ac_try_echo=$ac_try;;
33017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018 (eval "$ac_link") 2>conftest.er1
33020 grep -v '^ *+' conftest.er1 >conftest.err
33022 cat conftest.err >&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); } &&
33025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; } &&
33035 { ac_try='test -s conftest$ac_exeext'
33036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 ac_cv_lib_acl_acl_get_file=yes
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33050 ac_cv_lib_acl_acl_get_file=no
33053 rm -f core conftest.err conftest.$ac_objext \
33054 conftest$ac_exeext conftest.$ac_ext
33055 LIBS=$ac_check_lib_save_LIBS
33057 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33058 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33059 if test $ac_cv_lib_acl_acl_get_file = yes; then
33060 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33062 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33063 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33064 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33067 ac_check_lib_save_LIBS=$LIBS
33069 cat >conftest.$ac_ext <<_ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h. */
33076 /* Override any GCC internal prototype to avoid an error.
33077 Use char because int might match the return type of a GCC
33078 builtin and then its argument prototype would still apply. */
33086 return acltotext ();
33091 rm -f conftest.$ac_objext conftest$ac_exeext
33092 if { (ac_try="$ac_link"
33093 case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_link") 2>conftest.er1
33100 grep -v '^ *+' conftest.er1 >conftest.err
33102 cat conftest.err >&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } &&
33105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33106 { (case "(($ac_try" in
33107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108 *) ac_try_echo=$ac_try;;
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111 (eval "$ac_try") 2>&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; } &&
33115 { ac_try='test -s conftest$ac_exeext'
33116 { (case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_try") 2>&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; }; then
33125 ac_cv_lib_sec_acltotext=yes
33127 echo "$as_me: failed program was:" >&5
33128 sed 's/^/| /' conftest.$ac_ext >&5
33130 ac_cv_lib_sec_acltotext=no
33133 rm -f core conftest.err conftest.$ac_objext \
33134 conftest$ac_exeext conftest.$ac_ext
33135 LIBS=$ac_check_lib_save_LIBS
33137 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33138 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33139 if test $ac_cv_lib_sec_acltotext = yes; then
33140 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33149 if test $have_acl = yes; then
33150 cat >>confdefs.h <<\_ACEOF
33157 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33158 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33159 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33162 ac_check_lib_save_LIBS=$LIBS
33163 LIBS="-lpthread $LIBS"
33164 cat >conftest.$ac_ext <<_ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h. */
33171 /* Override any GCC internal prototype to avoid an error.
33172 Use char because int might match the return type of a GCC
33173 builtin and then its argument prototype would still apply. */
33177 char pthread_create ();
33181 return pthread_create ();
33186 rm -f conftest.$ac_objext conftest$ac_exeext
33187 if { (ac_try="$ac_link"
33188 case "(($ac_try" in
33189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190 *) ac_try_echo=$ac_try;;
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193 (eval "$ac_link") 2>conftest.er1
33195 grep -v '^ *+' conftest.er1 >conftest.err
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
33200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; } &&
33210 { ac_try='test -s conftest$ac_exeext'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
33220 ac_cv_lib_pthread_pthread_create=yes
33222 echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33225 ac_cv_lib_pthread_pthread_create=no
33228 rm -f core conftest.err conftest.$ac_objext \
33229 conftest$ac_exeext conftest.$ac_ext
33230 LIBS=$ac_check_lib_save_LIBS
33232 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33233 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33234 if test $ac_cv_lib_pthread_pthread_create = yes; then
33235 PTHREAD_LIB="-lpthread"
33237 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33238 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33239 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 ac_check_lib_save_LIBS=$LIBS
33243 LIBS="-lpthreads $LIBS"
33244 cat >conftest.$ac_ext <<_ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h. */
33251 /* Override any GCC internal prototype to avoid an error.
33252 Use char because int might match the return type of a GCC
33253 builtin and then its argument prototype would still apply. */
33257 char pthread_create ();
33261 return pthread_create ();
33266 rm -f conftest.$ac_objext conftest$ac_exeext
33267 if { (ac_try="$ac_link"
33268 case "(($ac_try" in
33269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270 *) ac_try_echo=$ac_try;;
33272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33273 (eval "$ac_link") 2>conftest.er1
33275 grep -v '^ *+' conftest.er1 >conftest.err
33277 cat conftest.err >&5
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
33280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33281 { (case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_try") 2>&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest$ac_exeext'
33291 { (case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_try") 2>&5
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 ac_cv_lib_pthreads_pthread_create=yes
33302 echo "$as_me: failed program was:" >&5
33303 sed 's/^/| /' conftest.$ac_ext >&5
33305 ac_cv_lib_pthreads_pthread_create=no
33308 rm -f core conftest.err conftest.$ac_objext \
33309 conftest$ac_exeext conftest.$ac_ext
33310 LIBS=$ac_check_lib_save_LIBS
33312 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33313 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33314 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33315 PTHREAD_LIB="-lpthreads"
33317 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33318 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33319 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33322 ac_check_lib_save_LIBS=$LIBS
33324 cat >conftest.$ac_ext <<_ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33331 /* Override any GCC internal prototype to avoid an error.
33332 Use char because int might match the return type of a GCC
33333 builtin and then its argument prototype would still apply. */
33337 char pthread_create ();
33341 return pthread_create ();
33346 rm -f conftest.$ac_objext conftest$ac_exeext
33347 if { (ac_try="$ac_link"
33348 case "(($ac_try" in
33349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33350 *) ac_try_echo=$ac_try;;
33352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33353 (eval "$ac_link") 2>conftest.er1
33355 grep -v '^ *+' conftest.er1 >conftest.err
33357 cat conftest.err >&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); } &&
33360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33361 { (case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366 (eval "$ac_try") 2>&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; } &&
33370 { ac_try='test -s conftest$ac_exeext'
33371 { (case "(($ac_try" in
33372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373 *) ac_try_echo=$ac_try;;
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376 (eval "$ac_try") 2>&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); }; }; then
33380 ac_cv_lib_c_r_pthread_create=yes
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33385 ac_cv_lib_c_r_pthread_create=no
33388 rm -f core conftest.err conftest.$ac_objext \
33389 conftest$ac_exeext conftest.$ac_ext
33390 LIBS=$ac_check_lib_save_LIBS
33392 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33393 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33394 if test $ac_cv_lib_c_r_pthread_create = yes; then
33395 PTHREAD_LIB="-lc_r"
33397 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33398 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33399 if test "${ac_cv_func_pthread_create+set}" = set; then
33400 echo $ECHO_N "(cached) $ECHO_C" >&6
33402 cat >conftest.$ac_ext <<_ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h. */
33408 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33410 #define pthread_create innocuous_pthread_create
33412 /* System header to define __stub macros and hopefully few prototypes,
33413 which can conflict with char pthread_create (); below.
33414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33415 <limits.h> exists even on freestanding compilers. */
33418 # include <limits.h>
33420 # include <assert.h>
33423 #undef pthread_create
33425 /* Override any GCC internal prototype to avoid an error.
33426 Use char because int might match the return type of a GCC
33427 builtin and then its argument prototype would still apply. */
33431 char pthread_create ();
33432 /* The GNU C library defines this for functions which it implements
33433 to always fail with ENOSYS. Some functions are actually named
33434 something starting with __ and the normal name is an alias. */
33435 #if defined __stub_pthread_create || defined __stub___pthread_create
33442 return pthread_create ();
33447 rm -f conftest.$ac_objext conftest$ac_exeext
33448 if { (ac_try="$ac_link"
33449 case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_link") 2>conftest.er1
33456 grep -v '^ *+' conftest.er1 >conftest.err
33458 cat conftest.err >&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); } &&
33461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; } &&
33471 { ac_try='test -s conftest$ac_exeext'
33472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_func_pthread_create=yes
33483 echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33486 ac_cv_func_pthread_create=no
33489 rm -f core conftest.err conftest.$ac_objext \
33490 conftest$ac_exeext conftest.$ac_ext
33492 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33493 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33506 cat >>confdefs.h <<\_ACEOF
33512 CFLAGS=${CFLAGS--O}
33514 if test x$have_gcc = xyes ; then
33515 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33516 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33518 LDFLAGS=${LDFLAGS--O}
33519 DB_LIBS="${SQL_LFLAGS}"
33520 CPPFLAGS="$CPPFLAGS"
33548 # Finally we set appropriate distribution specific
33549 # variables and defaults
33551 # PFILES are platform specific files
33552 PFILES="platforms/Makefile"
33556 hostname=`uname -n | cut -d '.' -f 1`
33557 if test x${hostname} = x ; then
33558 hostname="localhost"
33560 case "$DISTNAME" in
33563 PSCMD="ps -e -o pid,comm"
33564 PFILES="${PFILES} \
33565 platforms/aix/Makefile"
33566 TAPEDRIVE="/dev/rmt0.1"
33570 PTHREAD_LIB="-lpthread -lexc"
33571 if test "${CC}" = "gcc" ; then
33578 TAPEDRIVE="/dev/nrmt0"
33581 DISTVER=`uname -a |awk '{print $3}'`
33582 TAPEDRIVE="/dev/nrmt0"
33583 PTHREAD_LIB="-pthread"
33584 CFLAGS="${CFLAGS} -pthread"
33585 PSCMD="ps -ax -o pid,command"
33588 PFILES="${PFILES} \
33589 platforms/bsdi/Makefile \
33590 platforms/bsdi/bacula-fd \
33591 platforms/bsdi/bacula-sd \
33592 platforms/bsdi/bacula-dir"
33593 largefile_support="yes"
33596 DISTVER=`uname -a |awk '{print $3}'`
33597 TAPEDRIVE="/dev/nrst0"
33599 WCFLAGS="-mwindows"
33600 WLDFLAGS="-mwindows"
33604 TAPEDRIVE="/dev/nst0"
33605 PSCMD="ps -e -o pid,command"
33607 PFILES="${PFILES} \
33608 platforms/darwin/Makefile"
33611 DISTVER=`cat /etc/debian_version`
33612 TAPEDRIVE="/dev/nrst0"
33613 PSCMD="ps -e -o pid,command"
33616 DISTVER=`uname -a |awk '{print $3}'`
33617 VER=`echo $DISTVER | cut -c 1`
33618 if test x$VER = x4 ; then
33619 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33620 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33624 TAPEDRIVE="/dev/nrsa0"
33625 PSCMD="ps -ax -o pid,command"
33626 PFILES="${PFILES} \
33627 platforms/freebsd/Makefile \
33628 platforms/freebsd/bacula-fd \
33629 platforms/freebsd/bacula-sd \
33630 platforms/freebsd/bacula-dir"
33631 largefile_support="yes"
33634 PSCMD="UNIX95=1 ps -e -o pid,comm"
33635 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33637 TAPEDRIVE="/dev/rmt/0hnb"
33638 PTHREAD_LIB="-lpthread"
33639 cat >>confdefs.h <<\_ACEOF
33640 #define _INCLUDE_LONGLONG 1
33646 TAPEDRIVE="/dev/rmt/0cbn"
33647 PSCMD="ps -e -o pid,comm"
33648 PFILES="${PFILES} \
33649 platforms/irix/Makefile \
33650 platforms/irix/bacula-fd \
33651 platforms/irix/bacula-sd \
33652 platforms/irix/bacula-dir"
33655 DISTVER=`uname -a |awk '{print $3}'`
33658 TAPEDRIVE="/dev/nrst0"
33659 PSCMD="ps -ax -o pid,command"
33660 PTHREAD_LIB="-pthread"
33661 CFLAGS="${CFLAGS} -pthread"
33664 DISTVER=`uname -a |awk '{print $3}'`
33667 TAPEDRIVE="/dev/nrst0"
33668 PSCMD="ps -ax -o pid,command"
33669 PTHREAD_LIB="-pthread"
33670 CFLAGS="${CFLAGS} -pthread"
33671 PFILES="${PFILES} \
33672 platforms/openbsd/Makefile \
33673 platforms/openbsd/bacula-fd \
33674 platforms/openbsd/bacula-sd \
33675 platforms/openbsd/bacula-dir"
33678 if test -f /etc/whitebox-release ; then
33679 f=/etc/whitebox-release
33681 f=/etc/redhat-release
33683 if test `cat $f | grep release |\
33684 cut -f 3 -d ' '`x = "Enterprise"x ; then
33685 DISTVER="Enterprise "`cat $f | grep release |\
33688 DISTVER=`cat /etc/redhat-release | grep release |\
33691 TAPEDRIVE="/dev/nst0"
33692 PSCMD="ps -e -o pid,command"
33693 PFILES="${PFILES} \
33694 platforms/redhat/Makefile \
33695 platforms/redhat/bacula-fd \
33696 platforms/redhat/bacula-sd \
33697 platforms/redhat/bacula-dir \
33698 platforms/redhat/bacula.spec \
33702 DISTVER=`cat /etc/mandrake-release | grep release |\
33704 TAPEDRIVE="/dev/nst0"
33705 PSCMD="ps -e -o pid,command"
33706 PFILES="${PFILES} \
33707 platforms/mandrake/Makefile \
33708 platforms/mandrake/bacula-fd \
33709 platforms/mandrake/bacula-sd \
33710 platforms/mandrake/bacula-dir \
33711 platforms/mandrake/bacula.spec \
33715 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33716 TAPEDRIVE="/dev/nst0"
33717 PSCMD="ps -e -o pid,command"
33718 PFILES="${PFILES} \
33719 platforms/gentoo/Makefile \
33720 platforms/gentoo/bacula-init \
33721 platforms/gentoo/bacula-fd \
33722 platforms/gentoo/bacula-sd \
33723 platforms/gentoo/bacula-dir"
33726 DISTVER=`cat /etc/slackware-version`
33727 TAPEDRIVE="/dev/nst0"
33728 PSCMD="ps -e -o pid,command"
33729 PFILES="${PFILES} \
33730 platforms/slackware/Makefile \
33731 platforms/slackware/rc.bacula-fd \
33732 platforms/slackware/rc.bacula-sd \
33733 platforms/slackware/rc.bacula-dir\
33734 platforms/slackware/functions.bacula"
33738 TAPEDRIVE="/dev/rmt/0cbn"
33739 PSCMD="ps -e -o pid,comm"
33740 PFILES="${PFILES} \
33741 platforms/solaris/Makefile \
33742 platforms/solaris/bacula-fd \
33743 platforms/solaris/bacula-sd \
33744 platforms/solaris/bacula-dir"
33745 if test x$DISTVER = x5.6 ; then
33746 cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_OLD_SOCKOPT 1
33751 LIBS="$LIBS -lresolv"
33754 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33756 TAPEDRIVE="/dev/nst0"
33757 PSCMD="ps -e -o pid,command"
33758 PFILES="${PFILES} \
33759 platforms/suse/Makefile \
33760 platforms/suse/bacula-fd \
33761 platforms/suse/bacula-sd \
33762 platforms/suse/bacula-dir \
33763 platforms/suse/bacula \
33764 platforms/suse/bacula.spec"
33769 TAPEDRIVE="/dev/nst0"
33770 PSCMD="ps -e -o pid,command"
33771 PFILES="${PFILES} \
33772 platforms/suse/Makefile \
33773 platforms/suse/bacula-fd \
33774 platforms/suse/bacula-sd \
33775 platforms/suse/bacula-dir"
33779 TAPEDRIVE="/dev/nst0"
33782 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33788 LIBS="$PTHREAD_LIB $LIBS"
33790 cat >>confdefs.h <<_ACEOF
33794 cat >>confdefs.h <<_ACEOF
33805 MCOMMON=./autoconf/Make.common
33808 if test "x${subsysdir}" = "x${sbindir}" ; then
33811 echo "You have set both --sbindir and --with-subsys-dir"
33812 echo " equal to: ${subsysdir} "
33813 echo "This is not permitted. Please reconfigure."
33815 echo "Aborting configuration ..."
33821 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/gnome-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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-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"
33823 ac_config_commands="$ac_config_commands default"
33825 cat >confcache <<\_ACEOF
33826 # This file is a shell script that caches the results of configure
33827 # tests run on this system so they can be shared between configure
33828 # scripts and configure runs, see configure's option --config-cache.
33829 # It is not useful on other systems. If it contains results you don't
33830 # want to keep, you may remove or edit it.
33832 # config.status only pays attention to the cache file if you give it
33833 # the --recheck option to rerun configure.
33835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33837 # following values.
33841 # The following way of writing the cache mishandles newlines in values,
33842 # but we know of no workaround that is simple, portable, and efficient.
33843 # So, we kill variables containing newlines.
33844 # Ultrix sh set writes to stderr and can't be redirected directly,
33845 # and sets the high bit in the cache file unless we assign to the vars.
33847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33848 eval ac_val=\$$ac_var
33852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33856 _ | IFS | as_nl) ;; #(
33857 *) $as_unset $ac_var ;;
33863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33864 *${as_nl}ac_space=\ *)
33865 # `set' does not quote correctly, so add quotes (double-quote
33866 # substitution turns \\\\ into \\, and sed turns \\ into \).
33869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33872 # `set' quotes correctly as required by POSIX, so do not add quotes.
33873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33887 if test -w "$cache_file"; then
33888 test "x$cache_file" != "x/dev/null" &&
33889 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33890 echo "$as_me: updating cache $cache_file" >&6;}
33891 cat confcache >$cache_file
33893 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33900 # Let make expand exec_prefix.
33901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33903 DEFS=-DHAVE_CONFIG_H
33907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33908 # 1. Remove the extension, and $U if already installed.
33909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33910 ac_i=`echo "$ac_i" | sed "$ac_script"`
33911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33912 # will be set to the directory where LIBOBJS objects are built.
33913 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33914 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33916 LIBOBJS=$ac_libobjs
33918 LTLIBOBJS=$ac_ltlibobjs
33922 : ${CONFIG_STATUS=./config.status}
33923 ac_clean_files_save=$ac_clean_files
33924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33925 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33926 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33927 cat >$CONFIG_STATUS <<_ACEOF
33929 # Generated by $as_me.
33930 # Run this file to recreate the current configuration.
33931 # Compiler output produced by configure, useful for debugging
33932 # configure, is in config.log if it exists.
33935 ac_cs_recheck=false
33937 SHELL=\${CONFIG_SHELL-$SHELL}
33940 cat >>$CONFIG_STATUS <<\_ACEOF
33941 ## --------------------- ##
33942 ## M4sh Initialization. ##
33943 ## --------------------- ##
33945 # Be Bourne compatible
33946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33949 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33950 # is contrary to our usage. Disable this feature.
33951 alias -g '${1+"$@"}'='"$@"'
33952 setopt NO_GLOB_SUBST
33954 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33956 BIN_SH=xpg4; export BIN_SH # for Tru64
33957 DUALCASE=1; export DUALCASE # for MKS sh
33961 # Avoid depending upon Character Ranges.
33962 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33965 as_cr_digits='0123456789'
33966 as_cr_alnum=$as_cr_Letters$as_cr_digits
33968 # The user is always right.
33969 if test "${PATH_SEPARATOR+set}" != set; then
33970 echo "#! /bin/sh" >conf$$.sh
33971 echo "exit 0" >>conf$$.sh
33973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33981 # Support unset when possible.
33982 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33990 # We need space, tab and new line, in precisely that order. Quoting is
33991 # there to prevent editors from complaining about space-tab.
33992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33993 # splitting by setting IFS to empty value.)
33998 # Find who we are. Look in the path if we contain no directory separator.
34000 *[\\/]* ) as_myself=$0 ;;
34001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002 for as_dir in $PATH
34005 test -z "$as_dir" && as_dir=.
34006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34012 # We did not find ourselves, most probably we were run as `sh COMMAND'
34013 # in which case we are not to be found in the path.
34014 if test "x$as_myself" = x; then
34017 if test ! -f "$as_myself"; then
34018 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34019 { (exit 1); exit 1; }
34022 # Work around bugs in pre-3.0 UWIN ksh.
34023 for as_var in ENV MAIL MAILPATH
34024 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34032 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34033 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34034 LC_TELEPHONE LC_TIME
34036 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34037 eval $as_var=C; export $as_var
34039 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34043 # Required to use basename.
34044 if expr a : '\(a\)' >/dev/null 2>&1 &&
34045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34052 as_basename=basename
34058 # Name of the executable.
34059 as_me=`$as_basename -- "$0" ||
34060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34061 X"$0" : 'X\(//\)$' \| \
34062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34064 sed '/^.*\/\([^/][^/]*\)\/*$/{
34083 as_lineno_1=$LINENO
34084 as_lineno_2=$LINENO
34085 test "x$as_lineno_1" != "x$as_lineno_2" &&
34086 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34088 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34089 # uniformly replaced by the line number. The first 'sed' inserts a
34090 # line-number line after each line using $LINENO; the second 'sed'
34091 # does the real work. The second script uses 'N' to pair each
34092 # line-number line with the line containing $LINENO, and appends
34093 # trailing '-' during substitution so that $LINENO is not a special
34094 # case at line end.
34095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34096 # scripts with optimization help from Paolo Bonzini. Blame Lee
34097 # E. McMahon (1931-1989) for sed's syntax. :-)
34109 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34112 ' >$as_me.lineno &&
34113 chmod +x "$as_me.lineno" ||
34114 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34115 { (exit 1); exit 1; }; }
34117 # Don't try to exec as it changes $[0], causing all sort of problems
34118 # (the dirname of $[0] is not the place where we might find the
34119 # original and so on. Autoconf is especially sensitive to this).
34120 . "./$as_me.lineno"
34121 # Exit status is that of the last command.
34126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34132 ECHO_C= ECHO_N= ECHO_T=
34133 case `echo -n x` in
34135 case `echo 'x\c'` in
34136 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34143 if expr a : '\(a\)' >/dev/null 2>&1 &&
34144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34150 rm -f conf$$ conf$$.exe conf$$.file
34151 if test -d conf$$.dir; then
34152 rm -f conf$$.dir/conf$$.file
34158 if ln -s conf$$.file conf$$ 2>/dev/null; then
34160 # ... but there are two gotchas:
34161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34163 # In both cases, we have to default to `cp -p'.
34164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34166 elif ln conf$$.file conf$$ 2>/dev/null; then
34171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34172 rmdir conf$$.dir 2>/dev/null
34174 if mkdir -p . 2>/dev/null; then
34177 test -d ./-p && rmdir ./-p
34181 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34182 # systems may use methods other than mode bits to determine executability.
34183 cat >conf$$.file <<_ASEOF
34187 chmod +x conf$$.file
34188 if test -x conf$$.file >/dev/null 2>&1; then
34189 as_executable_p="test -x"
34195 # Sed expression to map a string onto a valid CPP name.
34196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34198 # Sed expression to map a string onto a valid variable name.
34199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34204 # Save the log message, to keep $[0] and so on meaningful, and to
34205 # report actual input values of CONFIG_FILES etc. instead of their
34206 # values after options handling.
34208 This file was extended by $as_me, which was
34209 generated by GNU Autoconf 2.60. Invocation command line was
34211 CONFIG_FILES = $CONFIG_FILES
34212 CONFIG_HEADERS = $CONFIG_HEADERS
34213 CONFIG_LINKS = $CONFIG_LINKS
34214 CONFIG_COMMANDS = $CONFIG_COMMANDS
34217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34222 cat >>$CONFIG_STATUS <<_ACEOF
34223 # Files that config.status was made for.
34224 config_files="$ac_config_files"
34225 config_headers="$ac_config_headers"
34226 config_commands="$ac_config_commands"
34230 cat >>$CONFIG_STATUS <<\_ACEOF
34232 \`$as_me' instantiates files from templates according to the
34233 current configuration.
34235 Usage: $0 [OPTIONS] [FILE]...
34237 -h, --help print this help, then exit
34238 -V, --version print version number, then exit
34239 -q, --quiet do not print progress messages
34240 -d, --debug don't remove temporary files
34241 --recheck update $as_me by reconfiguring in the same conditions
34242 --file=FILE[:TEMPLATE]
34243 instantiate the configuration file FILE
34244 --header=FILE[:TEMPLATE]
34245 instantiate the configuration header FILE
34247 Configuration files:
34250 Configuration headers:
34253 Configuration commands:
34256 Report bugs to <bug-autoconf@gnu.org>."
34259 cat >>$CONFIG_STATUS <<_ACEOF
34262 configured by $0, generated by GNU Autoconf 2.60,
34263 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34265 Copyright (C) 2006 Free Software Foundation, Inc.
34266 This config.status script is free software; the Free Software Foundation
34267 gives unlimited permission to copy, distribute and modify it."
34274 cat >>$CONFIG_STATUS <<\_ACEOF
34275 # If no file are specified by the user, then we need to provide default
34276 # value. By we need to know if files were specified by the user.
34282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34294 # Handling of the options.
34295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34298 echo "$ac_cs_version"; exit ;;
34299 --debug | --debu | --deb | --de | --d | -d )
34301 --file | --fil | --fi | --f )
34303 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34304 ac_need_defaults=false;;
34305 --header | --heade | --head | --hea )
34307 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34308 ac_need_defaults=false;;
34310 # Conflict between --help and --header
34311 { echo "$as_me: error: ambiguous option: $1
34312 Try \`$0 --help' for more information." >&2
34313 { (exit 1); exit 1; }; };;
34314 --help | --hel | -h )
34315 echo "$ac_cs_usage"; exit ;;
34316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34317 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34320 # This is an error.
34321 -*) { echo "$as_me: error: unrecognized option: $1
34322 Try \`$0 --help' for more information." >&2
34323 { (exit 1); exit 1; }; } ;;
34325 *) ac_config_targets="$ac_config_targets $1"
34326 ac_need_defaults=false ;;
34332 ac_configure_extra_args=
34334 if $ac_cs_silent; then
34336 ac_configure_extra_args="$ac_configure_extra_args --silent"
34340 cat >>$CONFIG_STATUS <<_ACEOF
34341 if \$ac_cs_recheck; then
34342 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34343 CONFIG_SHELL=$SHELL
34344 export CONFIG_SHELL
34345 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34349 cat >>$CONFIG_STATUS <<\_ACEOF
34353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34354 ## Running $as_me. ##
34360 cat >>$CONFIG_STATUS <<_ACEOF
34364 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34365 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34367 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34368 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34369 LINGUAS="${LINGUAS-%UNSET%}"
34374 cat >>$CONFIG_STATUS <<\_ACEOF
34376 # Handling of arguments.
34377 for ac_config_target in $ac_config_targets
34379 case $ac_config_target in
34380 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34381 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34382 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34384 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34385 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34386 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34387 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34388 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34389 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34390 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34391 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34392 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34393 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34394 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34395 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34396 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34397 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34398 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34399 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34400 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34401 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34402 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34403 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34404 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34405 "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34406 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34407 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34408 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34409 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34410 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34411 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34412 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34413 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34414 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34415 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34416 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34417 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34418 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34419 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34420 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34421 "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34422 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34423 "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34424 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34425 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34426 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34427 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34428 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34429 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34430 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34431 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34432 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34433 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34434 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34435 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34436 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34437 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34438 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34439 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34440 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34441 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34442 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34443 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34444 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34445 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34446 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34447 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34448 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34449 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34450 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34451 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34452 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34453 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34454 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34455 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34456 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34457 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34458 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34459 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34460 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34461 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34462 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34463 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34464 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34465 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34466 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34467 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34468 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34469 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34470 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34471 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34472 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34473 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34474 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34475 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34476 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34477 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34478 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34480 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34481 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34482 { (exit 1); exit 1; }; };;
34487 # If the user did not use the arguments to specify the items to instantiate,
34488 # then the envvar interface is used. Set only those that are not.
34489 # We use the long form for the default assignment because of an extremely
34490 # bizarre bug on SunOS 4.1.3.
34491 if $ac_need_defaults; then
34492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34497 # Have a temporary directory for convenience. Make it in the build tree
34498 # simply because there is no reason against having it here, and in addition,
34499 # creating and moving files from /tmp can sometimes cause problems.
34500 # Hook for its removal unless debugging.
34501 # Note that there is a small window in which the directory will not be cleaned:
34502 # after its creation but before its name has been assigned to `$tmp'.
34506 trap 'exit_status=$?
34507 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34509 trap '{ (exit 1); exit 1; }' 1 2 13 15
34511 # Create a (secure) tmp directory for tmp files.
34514 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34515 test -n "$tmp" && test -d "$tmp"
34518 tmp=./conf$$-$RANDOM
34519 (umask 077 && mkdir "$tmp")
34522 echo "$me: cannot create a temporary directory in ." >&2
34523 { (exit 1); exit 1; }
34527 # Set up the sed scripts for CONFIG_FILES section.
34530 # No need to generate the scripts if there are no CONFIG_FILES.
34531 # This happens for instance when ./config.status config.h
34532 if test -n "$CONFIG_FILES"; then
34536 # Create sed commands to just substitute file output variables.
34538 # Remaining file output variables are in a fragment that also has non-file
34544 for ac_last_try in false false false false false :; do
34545 cat >conf$$subs.sed <<_ACEOF
34546 SHELL!$SHELL$ac_delim
34547 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34548 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34549 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34550 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34551 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34552 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34553 exec_prefix!$exec_prefix$ac_delim
34554 prefix!$prefix$ac_delim
34555 program_transform_name!$program_transform_name$ac_delim
34556 bindir!$bindir$ac_delim
34557 sbindir!$sbindir$ac_delim
34558 libexecdir!$libexecdir$ac_delim
34559 datarootdir!$datarootdir$ac_delim
34560 datadir!$datadir$ac_delim
34561 sysconfdir!$sysconfdir$ac_delim
34562 sharedstatedir!$sharedstatedir$ac_delim
34563 localstatedir!$localstatedir$ac_delim
34564 includedir!$includedir$ac_delim
34565 oldincludedir!$oldincludedir$ac_delim
34566 docdir!$docdir$ac_delim
34567 infodir!$infodir$ac_delim
34568 htmldir!$htmldir$ac_delim
34569 dvidir!$dvidir$ac_delim
34570 pdfdir!$pdfdir$ac_delim
34571 psdir!$psdir$ac_delim
34572 libdir!$libdir$ac_delim
34573 localedir!$localedir$ac_delim
34574 mandir!$mandir$ac_delim
34575 DEFS!$DEFS$ac_delim
34576 ECHO_C!$ECHO_C$ac_delim
34577 ECHO_N!$ECHO_N$ac_delim
34578 ECHO_T!$ECHO_T$ac_delim
34579 LIBS!$LIBS$ac_delim
34580 build_alias!$build_alias$ac_delim
34581 host_alias!$host_alias$ac_delim
34582 target_alias!$target_alias$ac_delim
34583 BUILD_DIR!$BUILD_DIR$ac_delim
34584 TOP_DIR!$TOP_DIR$ac_delim
34585 TRUEPRG!$TRUEPRG$ac_delim
34586 FALSEPRG!$FALSEPRG$ac_delim
34587 VERSION!$VERSION$ac_delim
34588 DATE!$DATE$ac_delim
34589 LSMDATE!$LSMDATE$ac_delim
34591 CFLAGS!$CFLAGS$ac_delim
34592 LDFLAGS!$LDFLAGS$ac_delim
34593 CPPFLAGS!$CPPFLAGS$ac_delim
34594 ac_ct_CC!$ac_ct_CC$ac_delim
34595 EXEEXT!$EXEEXT$ac_delim
34596 OBJEXT!$OBJEXT$ac_delim
34598 CXXFLAGS!$CXXFLAGS$ac_delim
34599 ac_ct_CXX!$ac_ct_CXX$ac_delim
34601 GREP!$GREP$ac_delim
34602 EGREP!$EGREP$ac_delim
34603 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34604 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34605 INSTALL_DATA!$INSTALL_DATA$ac_delim
34606 RANLIB!$RANLIB$ac_delim
34611 ECHO!$ECHO$ac_delim
34615 OPENSSL!$OPENSSL$ac_delim
34618 MKISOFS!$MKISOFS$ac_delim
34619 PYTHON!$PYTHON$ac_delim
34620 GROWISOFS!$GROWISOFS$ac_delim
34621 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34622 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34623 PKGCONFIG!$PKGCONFIG$ac_delim
34624 WXCONFIG!$WXCONFIG$ac_delim
34625 WXFLAGS!$WXFLAGS$ac_delim
34626 CDRECORD!$CDRECORD$ac_delim
34627 PIDOF!$PIDOF$ac_delim
34629 ARFLAGS!$ARFLAGS$ac_delim
34630 MAKE_SHELL!$MAKE_SHELL$ac_delim
34631 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34632 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34633 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34634 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34635 build!$build$ac_delim
34636 build_cpu!$build_cpu$ac_delim
34637 build_vendor!$build_vendor$ac_delim
34638 build_os!$build_os$ac_delim
34639 host!$host$ac_delim
34642 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34644 elif $ac_last_try; then
34645 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34646 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34647 { (exit 1); exit 1; }; }
34649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34653 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34654 if test -n "$ac_eof"; then
34655 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34656 ac_eof=`expr $ac_eof + 1`
34659 cat >>$CONFIG_STATUS <<_ACEOF
34660 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34662 /^[ ]*@MCOMMON@[ ]*$/{
34668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34669 s/^/s,@/; s/!/@,|#_!!_#|/
34672 s/'"$ac_delim"'$/,g/; t
34674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34675 ' >>$CONFIG_STATUS <conf$$subs.sed
34676 rm -f conf$$subs.sed
34677 cat >>$CONFIG_STATUS <<_ACEOF
34683 for ac_last_try in false false false false false :; do
34684 cat >conf$$subs.sed <<_ACEOF
34685 host_cpu!$host_cpu$ac_delim
34686 host_vendor!$host_vendor$ac_delim
34687 host_os!$host_os$ac_delim
34688 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34689 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34690 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34691 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34692 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34693 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34694 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34695 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34696 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34697 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34698 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34699 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34700 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34701 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34702 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34703 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34704 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34705 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34706 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34707 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34708 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34709 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34710 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34711 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34712 SET_MAKE!$SET_MAKE$ac_delim
34713 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34714 USE_NLS!$USE_NLS$ac_delim
34715 MSGFMT!$MSGFMT$ac_delim
34716 GMSGFMT!$GMSGFMT$ac_delim
34717 XGETTEXT!$XGETTEXT$ac_delim
34718 MSGMERGE!$MSGMERGE$ac_delim
34719 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34720 LIBICONV!$LIBICONV$ac_delim
34721 LTLIBICONV!$LTLIBICONV$ac_delim
34722 INTLLIBS!$INTLLIBS$ac_delim
34723 LIBINTL!$LIBINTL$ac_delim
34724 LTLIBINTL!$LTLIBINTL$ac_delim
34725 POSUB!$POSUB$ac_delim
34726 GLIBC2!$GLIBC2$ac_delim
34727 ALLOCA!$ALLOCA$ac_delim
34728 GLIBC21!$GLIBC21$ac_delim
34729 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34730 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34731 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34732 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34733 INTLBISON!$INTLBISON$ac_delim
34734 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34735 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34736 CATOBJEXT!$CATOBJEXT$ac_delim
34737 DATADIRNAME!$DATADIRNAME$ac_delim
34738 INSTOBJEXT!$INSTOBJEXT$ac_delim
34739 GENCAT!$GENCAT$ac_delim
34740 INTLOBJS!$INTLOBJS$ac_delim
34741 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34742 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34743 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34744 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34745 GNOME_LIBS!$GNOME_LIBS$ac_delim
34746 GNOME_DIR!$GNOME_DIR$ac_delim
34747 BAT_DIR!$BAT_DIR$ac_delim
34748 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34749 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34750 WX_DIR!$WX_DIR$ac_delim
34751 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34752 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34753 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34754 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34755 STATIC_FD!$STATIC_FD$ac_delim
34756 STATIC_SD!$STATIC_SD$ac_delim
34757 STATIC_DIR!$STATIC_DIR$ac_delim
34758 STATIC_CONS!$STATIC_CONS$ac_delim
34759 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34760 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34761 ALL_DIRS!$ALL_DIRS$ac_delim
34762 DIRD_DIR!$DIRD_DIR$ac_delim
34763 DIR_TOOLS!$DIR_TOOLS$ac_delim
34764 STORED_DIR!$STORED_DIR$ac_delim
34765 CONS_INC!$CONS_INC$ac_delim
34766 CONS_OBJ!$CONS_OBJ$ac_delim
34767 CONS_SRC!$CONS_SRC$ac_delim
34768 CONS_LIBS!$CONS_LIBS$ac_delim
34769 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34770 READLINE_SRC!$READLINE_SRC$ac_delim
34771 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34772 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34773 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34774 OPENSSL_INC!$OPENSSL_INC$ac_delim
34775 working_dir!$working_dir$ac_delim
34776 scriptdir!$scriptdir$ac_delim
34777 dump_email!$dump_email$ac_delim
34778 job_email!$job_email$ac_delim
34779 smtp_host!$smtp_host$ac_delim
34780 piddir!$piddir$ac_delim
34781 subsysdir!$subsysdir$ac_delim
34784 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34786 elif $ac_last_try; then
34787 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34788 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34789 { (exit 1); exit 1; }; }
34791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34795 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34796 if test -n "$ac_eof"; then
34797 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34798 ac_eof=`expr $ac_eof + 1`
34801 cat >>$CONFIG_STATUS <<_ACEOF
34802 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34806 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34807 s/^/s,@/; s/!/@,|#_!!_#|/
34810 s/'"$ac_delim"'$/,g/; t
34812 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34813 ' >>$CONFIG_STATUS <conf$$subs.sed
34814 rm -f conf$$subs.sed
34815 cat >>$CONFIG_STATUS <<_ACEOF
34821 for ac_last_try in false false false false false :; do
34822 cat >conf$$subs.sed <<_ACEOF
34823 baseport!$baseport$ac_delim
34824 dir_port!$dir_port$ac_delim
34825 fd_port!$fd_port$ac_delim
34826 sd_port!$sd_port$ac_delim
34827 dir_password!$dir_password$ac_delim
34828 fd_password!$fd_password$ac_delim
34829 sd_password!$sd_password$ac_delim
34830 mon_dir_password!$mon_dir_password$ac_delim
34831 mon_fd_password!$mon_fd_password$ac_delim
34832 mon_sd_password!$mon_sd_password$ac_delim
34833 dir_user!$dir_user$ac_delim
34834 dir_group!$dir_group$ac_delim
34835 sd_user!$sd_user$ac_delim
34836 sd_group!$sd_group$ac_delim
34837 fd_user!$fd_user$ac_delim
34838 fd_group!$fd_group$ac_delim
34839 SBINPERM!$SBINPERM$ac_delim
34840 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34841 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34842 SQL_BINDIR!$SQL_BINDIR$ac_delim
34843 cats!$cats$ac_delim
34844 DB_NAME!$DB_NAME$ac_delim
34845 GETCONF!$GETCONF$ac_delim
34846 XMKMF!$XMKMF$ac_delim
34847 X_CFLAGS!$X_CFLAGS$ac_delim
34848 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34849 X_LIBS!$X_LIBS$ac_delim
34850 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34851 LIBOBJS!$LIBOBJS$ac_delim
34852 FDLIBS!$FDLIBS$ac_delim
34853 DEBUG!$DEBUG$ac_delim
34854 DINCLUDE!$DINCLUDE$ac_delim
34855 DLIB!$DLIB$ac_delim
34856 DB_LIBS!$DB_LIBS$ac_delim
34857 WCFLAGS!$WCFLAGS$ac_delim
34858 WLDFLAGS!$WLDFLAGS$ac_delim
34859 WRAPLIBS!$WRAPLIBS$ac_delim
34860 OBJLIST!$OBJLIST$ac_delim
34861 hostname!$hostname$ac_delim
34862 TAPEDRIVE!$TAPEDRIVE$ac_delim
34863 PSCMD!$PSCMD$ac_delim
34864 WIN32!$WIN32$ac_delim
34865 MACOSX!$MACOSX$ac_delim
34866 DISTNAME!$DISTNAME$ac_delim
34867 DISTVER!$DISTVER$ac_delim
34868 LTLIBOBJS!$LTLIBOBJS$ac_delim
34871 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
34873 elif $ac_last_try; then
34874 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34875 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34876 { (exit 1); exit 1; }; }
34878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34882 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34883 if test -n "$ac_eof"; then
34884 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34885 ac_eof=`expr $ac_eof + 1`
34888 cat >>$CONFIG_STATUS <<_ACEOF
34889 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34893 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34894 s/^/s,@/; s/!/@,|#_!!_#|/
34897 s/'"$ac_delim"'$/,g/; t
34899 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34900 ' >>$CONFIG_STATUS <conf$$subs.sed
34901 rm -f conf$$subs.sed
34902 cat >>$CONFIG_STATUS <<_ACEOF
34909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34911 # trailing colons and then remove the whole line if VPATH becomes empty
34912 # (actually we leave an empty line to preserve line numbers).
34913 if test "x$srcdir" = x.; then
34914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34915 s/:*\$(srcdir):*/:/
34916 s/:*\${srcdir}:*/:/
34918 s/^\([^=]*=[ ]*\):*/\1/
34924 cat >>$CONFIG_STATUS <<\_ACEOF
34925 fi # test -n "$CONFIG_FILES"
34928 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34931 :[FHLC]) ac_mode=$ac_tag; continue;;
34933 case $ac_mode$ac_tag in
34935 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34936 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34937 { (exit 1); exit 1; }; };;
34938 :[FH]-) ac_tag=-:-;;
34939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34956 -) ac_f="$tmp/stdin";;
34957 *) # Look for the file first in the build tree, then in the source tree
34958 # (if the path is not absolute). The absolute path cannot be DOS-style,
34959 # because $ac_f cannot contain `:'.
34963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34965 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34966 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34967 { (exit 1); exit 1; }; };;
34969 ac_file_inputs="$ac_file_inputs $ac_f"
34972 # Let's still pretend it is `configure' which instantiates (i.e., don't
34973 # use $as_me), people would be surprised to read:
34974 # /* config.h. Generated by config.status. */
34975 configure_input="Generated from "`IFS=:
34976 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34977 if test x"$ac_file" != x-; then
34978 configure_input="$ac_file. $configure_input"
34979 { echo "$as_me:$LINENO: creating $ac_file" >&5
34980 echo "$as_me: creating $ac_file" >&6;}
34984 *:-:* | *:-) cat >"$tmp/stdin";;
34989 ac_dir=`$as_dirname -- "$ac_file" ||
34990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34991 X"$ac_file" : 'X\(//\)[^/]' \| \
34992 X"$ac_file" : 'X\(//\)$' \| \
34993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34999 /^X\(\/\/\)[^/].*/{
35014 -*) as_dir=./$as_dir;;
35016 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35020 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35021 *) as_qdir=$as_dir;;
35023 as_dirs="'$as_qdir' $as_dirs"
35024 as_dir=`$as_dirname -- "$as_dir" ||
35025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35026 X"$as_dir" : 'X\(//\)[^/]' \| \
35027 X"$as_dir" : 'X\(//\)$' \| \
35028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35034 /^X\(\/\/\)[^/].*/{
35047 test -d "$as_dir" && break
35049 test -z "$as_dirs" || eval "mkdir $as_dirs"
35050 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35052 { (exit 1); exit 1; }; }; }
35056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35059 # A ".." for each directory in $ac_dir_suffix.
35060 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35061 case $ac_top_builddir_sub in
35062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35066 ac_abs_top_builddir=$ac_pwd
35067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35068 # for backward compatibility:
35069 ac_top_builddir=$ac_top_build_prefix
35072 .) # We are building in place.
35074 ac_top_srcdir=$ac_top_builddir_sub
35075 ac_abs_top_srcdir=$ac_pwd ;;
35076 [\\/]* | ?:[\\/]* ) # Absolute name.
35077 ac_srcdir=$srcdir$ac_dir_suffix;
35078 ac_top_srcdir=$srcdir
35079 ac_abs_top_srcdir=$srcdir ;;
35080 *) # Relative name.
35081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35082 ac_top_srcdir=$ac_top_build_prefix$srcdir
35083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35100 cat >>$CONFIG_STATUS <<\_ACEOF
35101 # If the template does not know about datarootdir, expand it.
35102 # FIXME: This hack should be removed a few years after 2.60.
35103 ac_datarootdir_hack=; ac_datarootdir_seen=
35105 case `sed -n '/datarootdir/ {
35114 ' $ac_file_inputs` in
35115 *datarootdir*) ac_datarootdir_seen=yes;;
35116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35117 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35118 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35120 cat >>$CONFIG_STATUS <<_ACEOF
35121 ac_datarootdir_hack='
35122 s&@datadir@&$datadir&g
35123 s&@docdir@&$docdir&g
35124 s&@infodir@&$infodir&g
35125 s&@localedir@&$localedir&g
35126 s&@mandir@&$mandir&g
35127 s&\\\${datarootdir}&$datarootdir&g' ;;
35131 # Neutralize VPATH when `$srcdir' = `.'.
35132 # Shell code in configure.ac might set extrasub.
35133 # FIXME: do we really want to maintain this feature?
35134 cat >>$CONFIG_STATUS <<_ACEOF
35138 cat >>$CONFIG_STATUS <<\_ACEOF
35140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35141 s&@configure_input@&$configure_input&;t t
35142 s&@top_builddir@&$ac_top_builddir_sub&;t t
35143 s&@srcdir@&$ac_srcdir&;t t
35144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35145 s&@top_srcdir@&$ac_top_srcdir&;t t
35146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35147 s&@builddir@&$ac_builddir&;t t
35148 s&@abs_builddir@&$ac_abs_builddir&;t t
35149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35150 s&@INSTALL@&$ac_INSTALL&;t t
35151 $ac_datarootdir_hack
35152 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35154 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35155 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35156 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35157 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35158 which seems to be undefined. Please make sure it is defined." >&5
35159 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35160 which seems to be undefined. Please make sure it is defined." >&2;}
35164 -) cat "$tmp/out"; rm -f "$tmp/out";;
35165 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35174 # Transform confdefs.h into a sed script `conftest.defines', that
35175 # substitutes the proper values into config.h.in to produce config.h.
35176 rm -f conftest.defines conftest.tail
35177 # First, append a space to every undef/define line, to ease matching.
35178 echo 's/$/ /' >conftest.defines
35179 # Then, protect against being on the right side of a sed subst, or in
35180 # an unquoted here document, in config.status. If some macros were
35181 # called several times there might be several #defines for the same
35182 # symbol, which is useless. But do not sort them, since the last
35183 # AC_DEFINE must be honored.
35184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35185 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35186 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35187 # PARAMS is the parameter list in the macro definition--in most cases, it's
35188 # just an empty string.
35189 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35190 ac_dB='\\)[ (].*,\\1define\\2'
35198 s/^[ ]*#[ ]*define[ ][ ]*//
35203 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35204 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35205 ' >>conftest.defines
35207 # Remove the space that was appended to ease matching.
35208 # Then replace #undef with comments. This is necessary, for
35209 # example, in the case of _POSIX_SOURCE, which is predefined and required
35210 # on some systems where configure will not decide to define it.
35211 # (The regexp can be short, since the line contains either #define or #undef.)
35213 s,^[ #]*u.*,/* & */,' >>conftest.defines
35215 # Break up conftest.defines:
35216 ac_max_sed_lines=50
35218 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35219 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35220 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35222 ac_in='$ac_file_inputs'
35223 ac_out='"$tmp/out1"'
35224 ac_nxt='"$tmp/out2"'
35228 # Write a here document:
35229 cat >>$CONFIG_STATUS <<_ACEOF
35230 # First, check the format of the line:
35231 cat >"\$tmp/defines.sed" <<\\CEOF
35232 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35233 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35237 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35239 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35240 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35241 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35242 grep . conftest.tail >/dev/null || break
35243 rm -f conftest.defines
35244 mv conftest.tail conftest.defines
35246 rm -f conftest.defines conftest.tail
35248 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35249 cat >>$CONFIG_STATUS <<\_ACEOF
35250 if test x"$ac_file" != x-; then
35251 echo "/* $configure_input */" >"$tmp/config.h"
35252 cat "$ac_result" >>"$tmp/config.h"
35253 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35254 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35255 echo "$as_me: $ac_file is unchanged" >&6;}
35258 mv "$tmp/config.h" $ac_file
35261 echo "/* $configure_input */"
35267 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35268 echo "$as_me: executing $ac_file commands" >&6;}
35273 case $ac_file$ac_mode in
35275 for ac_file in $CONFIG_FILES; do
35276 # Support "outfile[:infile[:infile...]]"
35278 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35280 # PO directories have a Makefile.in generated from Makefile.in.in.
35281 case "$ac_file" in */Makefile.in)
35282 # Adjust a relative srcdir.
35283 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35284 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35285 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35286 # In autoconf-2.13 it is called $ac_given_srcdir.
35287 # In autoconf-2.50 it is called $srcdir.
35288 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35289 case "$ac_given_srcdir" in
35290 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35291 /*) top_srcdir="$ac_given_srcdir" ;;
35292 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35294 # Treat a directory as a PO directory if and only if it has a
35295 # POTFILES.in file. This allows packages to have multiple PO
35296 # directories under different names or in different locations.
35297 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35298 rm -f "$ac_dir/POTFILES"
35299 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35300 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35301 POMAKEFILEDEPS="POTFILES.in"
35302 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35303 # on $ac_dir but don't depend on user-specified configuration
35305 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35306 # The LINGUAS file contains the set of available languages.
35307 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35308 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35310 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35311 # Hide the ALL_LINGUAS assigment from automake.
35312 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35313 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35315 # The set of available languages was given in configure.in.
35316 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35319 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35320 # Compute UPDATEPOFILES
35321 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35322 # Compute DUMMYPOFILES
35323 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35325 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35326 case "$ac_given_srcdir" in
35328 *) srcdirpre='$(srcdir)/' ;;
35334 for lang in $ALL_LINGUAS; do
35335 POFILES="$POFILES $srcdirpre$lang.po"
35336 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35337 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35338 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35340 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35341 # environment variable.
35343 if test -n "$ALL_LINGUAS"; then
35344 for presentlang in $ALL_LINGUAS; do
35346 if test "%UNSET%" != "$LINGUAS"; then
35347 desiredlanguages="$LINGUAS"
35349 desiredlanguages="$ALL_LINGUAS"
35351 for desiredlang in $desiredlanguages; do
35352 # Use the presentlang catalog if desiredlang is
35353 # a. equal to presentlang, or
35354 # b. a variant of presentlang (because in this case,
35355 # presentlang can be used as a fallback for messages
35356 # which are not translated in the desiredlang catalog).
35357 case "$desiredlang" in
35358 "$presentlang"*) useit=yes;;
35361 if test $useit = yes; then
35362 INST_LINGUAS="$INST_LINGUAS $presentlang"
35367 if test -n "$INST_LINGUAS"; then
35368 for lang in $INST_LINGUAS; do
35369 CATALOGS="$CATALOGS $lang.gmo"
35372 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35373 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"
35374 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35375 if test -f "$f"; then
35377 *.orig | *.bak | *~) ;;
35378 *) cat "$f" >> "$ac_dir/Makefile" ;;
35386 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35393 { (exit 0); exit 0; }
35395 chmod +x $CONFIG_STATUS
35396 ac_clean_files=$ac_clean_files_save
35399 # configure is writing to config.log, and then calls config.status.
35400 # config.status does its own redirection, appending to config.log.
35401 # Unfortunately, on DOS this fails, as config.log is still kept open
35402 # by configure, so config.status won't be able to write to it; its
35403 # output is simply discarded. So we exec the FD to /dev/null,
35404 # effectively closing config.log, so it can be properly (re)opened and
35405 # appended to by config.status. When coming back to configure, we
35406 # need to make the FD available again.
35407 if test "$no_create" != yes; then
35409 ac_config_status_args=
35410 test "$silent" = yes &&
35411 ac_config_status_args="$ac_config_status_args --quiet"
35413 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35415 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35416 # would make configure fail if this is the last instruction.
35417 $ac_cs_success || { (exit 1); exit 1; }
35422 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35423 chmod 755 dvd-handler dvd-simulator
35424 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35429 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35430 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35432 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35433 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35435 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35436 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35438 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35439 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35441 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35442 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35444 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35445 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35447 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35448 chmod 755 $c/sqlite
35451 chmod 755 src/win32/build-depkgs-mingw32
35453 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35454 largefile_support="yes"
35458 # A whole lot of hand springs to get the compiler version.
35459 # This is because gcc changed the output in version 3.0
35461 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35462 if test "x${CCVERSION}" = "x" ; then
35463 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35465 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35466 if test x"${CXXVERSION}" = x ; then
35467 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35470 if test "x${subsysdir}" = "x${sbindir}" ; then
35473 echo "You have set --sbindir and --with-subsys-dir"
35474 echo " both equal to: ${subsysdir} "
35475 echo " This is not permitted. Please reconfigure."
35477 echo "Aborting configuration ..."
35483 if test "x${db_name}" = "xInternal" ; then
35486 echo "You have not specified either --enable-client-only or one of the"
35487 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35488 echo " This is not permitted. Please reconfigure."
35490 echo "Aborting the configuration ..."
35497 Configuration on `date`:
35499 Host: $host -- ${DISTNAME} ${DISTVER}
35500 Bacula version: ${VERSION} (${DATE})
35501 Source code location: ${srcdir}
35502 Install binaries: ${sbindir}
35503 Install config files: ${sysconfdir}
35504 Scripts directory: ${scriptdir}
35505 Working directory: ${working_dir}
35506 PID directory: ${piddir}
35507 Subsys directory: ${subsysdir}
35508 Man directory: ${mandir}
35509 Data directory: ${datadir}
35510 C Compiler: ${CC} ${CCVERSION}
35511 C++ Compiler: ${CXX} ${CXXVERSION}
35512 Compiler flags: ${WCFLAGS} ${CFLAGS}
35513 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35515 Statically Linked Tools: ${support_static_tools}
35516 Statically Linked FD: ${support_static_fd}
35517 Statically Linked SD: ${support_static_sd}
35518 Statically Linked DIR: ${support_static_dir}
35519 Statically Linked CONS: ${support_static_cons}
35520 Database type: ${db_name}
35521 Database lib: ${DB_LIBS}
35523 Job Output Email: ${job_email}
35524 Traceback Email: ${dump_email}
35525 SMTP Host Address: ${smtp_host}
35527 Director Port: ${dir_port}
35528 File daemon Port: ${fd_port}
35529 Storage daemon Port: ${sd_port}
35531 Director User: ${dir_user}
35532 Director Group: ${dir_group}
35533 Storage Daemon User: ${sd_user}
35534 Storage DaemonGroup: ${sd_group}
35535 File Daemon User: ${fd_user}
35536 File Daemon Group: ${fd_group}
35538 SQL binaries Directory ${SQL_BINDIR}
35540 Large file support: $largefile_support
35541 Bacula conio support: ${got_conio} ${CONS_LIBS}
35542 readline support: ${got_readline} ${PRTREADLINE_SRC}
35543 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35544 TLS support: ${support_tls}
35545 Encryption support: ${support_crypto}
35546 ZLIB support: ${have_zlib}
35547 enable-smartalloc: ${support_smartalloc}
35548 enable-bat: ${support_bat}
35549 enable-gnome: ${support_gnome} ${gnome_version}
35550 enable-wx-console: ${support_wx_console} ${wx_version}
35551 enable-tray-monitor: ${support_tray_monitor}
35552 client-only: ${build_client_only}
35553 build-dird: ${build_dird}
35554 build-stored: ${build_stored}
35555 ACL support: ${have_acl}
35556 Python support: ${support_python} ${PYTHON_LIBS}