2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="src/version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
709 HAVE_FREEBSD_OS_FALSE
713 HAVE_OPENBSD_OS_FALSE
744 BUILD_INCLUDED_LIBINTL
751 INTL_LIBTOOL_SUFFIX_PREFIX
761 TRAY_MONITOR_CPPFLAGS
840 ac_subst_files='MCOMMON'
841 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
961 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962 { (exit 1); exit 1; }; }
963 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
964 eval enable_$ac_feature=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
980 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
981 { (exit 1); exit 1; }; }
982 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
983 eval enable_$ac_feature=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package=`echo $ac_package| sed 's/-/_/g'`
1180 eval with_$ac_package=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid package name: $ac_package" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_package=`echo $ac_package | sed 's/-/_/g'`
1189 eval with_$ac_package=no ;;
1192 # Obsolete; use --with-x.
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) { echo "$as_me: error: unrecognized option: $ac_option
1210 Try \`$0 --help' for more information." >&2
1211 { (exit 1); exit 1; }; }
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219 { (exit 1); exit 1; }; }
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 { echo "$as_me: error: missing argument to $ac_option" >&2
1237 { (exit 1); exit 1; }; }
1240 # Be sure to have absolute directory names.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1252 { (exit 1); exit 1; }; }
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 { echo "$as_me: error: Working directory cannot be determined" >&2
1283 { (exit 1); exit 1; }; }
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 { echo "$as_me: error: pwd does not report name of working directory" >&2
1286 { (exit 1); exit 1; }; }
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$0" ||
1294 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$0" : 'X\(//\)[^/]' \| \
1296 X"$0" : 'X\(//\)$' \| \
1297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1326 { (exit 1); exit 1; }; }
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1331 { (exit 1); exit 1; }; }
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 # Report the --help message.
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1357 \`configure' configures this package to adapt to many kinds of systems.
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1364 Defaults for the options are specified in brackets.
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1388 For better control, use the options below.
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1415 --x-includes=DIR X include files are in DIR
1416 --x-libraries=DIR X library files are in DIR
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 if test -n "$ac_init_help"; then
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --disable-nls do not use Native Language Support
1432 --disable-rpath do not hardcode runtime library paths
1433 --enable-gnome enable build of bgnome-console GUI disabled
1434 --enable-bat enable build of bat Qt4 GUI disabled
1435 --enable-bwx-console enable build of wxWidgets console disabled
1436 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1437 --enable-smartalloc enable smartalloc debugging support disabled
1438 --enable-static-tools enable static tape tools disabled
1439 --enable-static-fd enable static File daemon disabled
1440 --enable-static-sd enable static Storage daemon disabled
1441 --enable-static-dir enable static Director disabled
1442 --enable-static-cons enable static Console disabled
1443 --enable-client-only build client (File daemon) only disabled
1444 --enable-build-dird enable building of dird (Director) enabled
1445 --enable-build-stored enable building of stored (Storage daemon) enabled
1446 --disable-conio disable conio support enabled
1448 --enable-ipv6 enable ipv6 support enabled
1450 --disable-readline disable readline support disable
1452 --disable-largefile omit support for large files
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-gnu-ld assume the C compiler uses GNU ld default=no
1458 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1459 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1460 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1461 --without-libintl-prefix don't search for libintl in includedir and libdir
1462 --with-included-gettext use the GNU gettext library included here
1463 --with-readline[=DIR] specify readline library directory
1465 --with-python[=DIR] Include Python support. DIR is the Python base
1466 install directory, default is to search through
1467 a number of common places for the Python files.
1468 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1469 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1470 --with-working-dir=PATH specify path of Bacula working directory
1471 --with-scriptdir=PATH specify path of Bacula scripts directory
1472 --with-dump-email=EMAIL dump email address
1473 --with-job-email=EMAIL job output email address
1474 --with-smtp-host=HOST SMTP mail host address
1475 --with-pid-dir=PATH specify location of Bacula pid files
1476 --with-subsys-dir=PATH specify location of Bacula subsys file
1477 --with-baseport=PORT specify base port address for daemons
1478 --with-dir-password=PASSWORD specify Director's password
1479 --with-fd-password=PASSWORD specify Client's password
1480 --with-sd-password=PASSWORD specify Storage daemon's password
1481 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1482 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1483 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1484 --with-db-name=DBNAME specify database name (default bacula)
1485 --with-db-user=UNAME specify database user (default bacula)
1486 --with-dir-user=USER specify user for Director daemon
1487 --with-dir-group=GROUP specify group for Director daemon
1488 --with-sd-user=USER specify user for Storage daemon
1489 --with-sd-group=GROUP specify group for Storage daemon
1490 --with-fd-user=USER specify user for File daemon
1491 --with-fd-group=GROUP specify group for File daemon
1492 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1493 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1494 base install directory, defaults to /usr/local/pgsql
1496 --with-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-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1501 install directory, default is to search through
1502 a number of common places for the MySQL files.
1504 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1505 install directory, default is to search through
1506 a number of common places for the SQLite3 files.
1508 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1509 install directory, default is to search through
1510 a number of common places for the SQLite files.
1511 --with-x use the X Window System
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1523 WXCONFIG wx-config command. On some systems, you must set it to
1524 wx-config-2.6 to use wxWidgets 2.6.
1525 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1526 XMKMF Path to xmkmf, Makefile generator for X Window System
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" || continue
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1592 generated by GNU Autoconf 2.60
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.60. Invocation command line was
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 *) $as_unset $ac_var ;;
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1759 for ac_var in $ac_subst_vars
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 echo "$ac_var='\''$ac_val'\''"
1769 if test -n "$ac_subst_files"; then
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1776 for ac_var in $ac_subst_files
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 echo "$ac_var='\''$ac_val'\''"
1787 if test -s confdefs.h; then
1797 test "$ac_signal" != 0 &&
1798 echo "$as_me: caught signal $ac_signal"
1799 echo "$as_me: exit $exit_status"
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1813 # Predefined preprocessor variables.
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843 set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 set x "$ac_default_prefix/share/config.site" \
1848 "$ac_default_prefix/etc/config.site"
1853 if test -r "$ac_site_file"; then
1854 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869 *) . "./$cache_file";;
1873 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1878 # Check that the precious variables saved in the cache have kept the same
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883 eval ac_new_set=\$ac_env_${ac_var}_set
1884 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885 eval ac_new_val=\$ac_env_${ac_var}_value
1886 case $ac_old_set,$ac_new_set in
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1897 if test "x$ac_old_val" != "x$ac_new_val"; then
1898 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1901 echo "$as_me: former value: $ac_old_val" >&2;}
1902 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1903 echo "$as_me: current value: $ac_new_val" >&2;}
1904 ac_cache_corrupted=:
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1910 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 if $ac_cache_corrupted; then
1920 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1958 if test -f "$ac_dir/install-sh"; then
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1962 elif test -f "$ac_dir/install.sh"; then
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1966 elif test -f "$ac_dir/shtool"; then
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1972 if test -z "$ac_aux_dir"; then
1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1975 { (exit 1); exit 1; }; }
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1987 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1995 # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 TRUEPRG=$ac_cv_path_TRUEPRG
2026 if test -n "$TRUEPRG"; then
2027 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2028 echo "${ECHO_T}$TRUEPRG" >&6; }
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2035 test -n "$TRUEPRG" && break
2037 test -n "$TRUEPRG" || TRUEPRG=":"
2039 for ac_prog in false
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 FALSEPRG=$ac_cv_path_FALSEPRG
2072 if test -n "$FALSEPRG"; then
2073 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2074 echo "${ECHO_T}$FALSEPRG" >&6; }
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2081 test -n "$FALSEPRG" && break
2083 test -n "$FALSEPRG" || FALSEPRG=":"
2088 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2089 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2090 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2091 echo "configuring for bacula $VERSION ($DATE)"
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test -n "$CC"; then
2130 { echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6; }
2133 { echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6; }
2139 if test -z "$ac_cv_prog_CC"; then
2141 # Extract the first word of "gcc", so it can be a program name with args.
2142 set dummy gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_ac_ct_CC="gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 echo "${ECHO_T}$ac_ct_CC" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2177 if test "x$ac_ct_CC" = x; then
2180 case $cross_compiling:$ac_tool_warned in
2182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet. If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&5
2185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet. If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2188 ac_tool_warned=yes ;;
2196 if test -z "$CC"; then
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}cc; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_CC="${ac_tool_prefix}cc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 if test -n "$CC"; then
2227 { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2237 if test -z "$CC"; then
2238 # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257 ac_prog_rejected=yes
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 if test $ac_prog_rejected = yes; then
2269 # We found a bogon in the path, so make sure we never use it.
2270 set dummy $ac_cv_prog_CC
2272 if test $# != 0; then
2273 # We chose a different compiler from the bogus one.
2274 # However, it has the same basename, so the bogon will be chosen
2275 # first if we set CC to just the basename; use the full file name.
2277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2283 if test -n "$CC"; then
2284 { echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6; }
2287 { echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6; }
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 for ac_prog in cl.exe
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 if test -n "$CC"; then
2326 { echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2334 test -n "$CC" && break
2337 if test -z "$CC"; then
2339 for ac_prog in cl.exe
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_ac_ct_CC="$ac_prog"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369 if test -n "$ac_ct_CC"; then
2370 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371 echo "${ECHO_T}$ac_ct_CC" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2378 test -n "$ac_ct_CC" && break
2381 if test "x$ac_ct_CC" = x; then
2384 case $cross_compiling:$ac_tool_warned in
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2401 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO: checking for C compiler version" >&5
2409 ac_compiler=`set X $ac_compile; echo $2`
2410 { (ac_try="$ac_compiler --version >&5"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_compiler --version >&5") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (ac_try="$ac_compiler -v >&5"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler -v >&5") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (ac_try="$ac_compiler -V >&5"
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compiler -V >&5") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2461 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465 # List of possible output files, starting from the most likely.
2466 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2467 # only as a last resort. b.out is created by i960 compilers.
2468 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2470 # The IRIX 6 linker writes into existing files which may not be
2471 # executable, retaining their permissions. Remove them first so a
2472 # subsequent execution test works.
2474 for ac_file in $ac_files
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2483 if { (ac_try="$ac_link_default"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_link_default") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2496 # so that the user can short-circuit this test for compilers unknown to
2498 for ac_file in $ac_files
2500 test -f "$ac_file" || continue
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2505 # We found the default executable, but exeext='' is most
2509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513 # We set ac_cv_exeext here because the later test for it is not
2514 # safe: cross compilers may not add the suffix if given an `-o'
2515 # argument, so we may need to know it at that point already.
2516 # Even if this section looks crufty: it has the advantage of
2523 test "$ac_cv_exeext" = no && ac_cv_exeext=
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&2;}
2533 { (exit 77); exit 77; }; }
2536 ac_exeext=$ac_cv_exeext
2537 { echo "$as_me:$LINENO: result: $ac_file" >&5
2538 echo "${ECHO_T}$ac_file" >&6; }
2540 # Check that the compiler produces executables we can run. If not, either
2541 # the compiler is broken, or we cross compile.
2542 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2544 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545 # If not cross compiling, check that we can run a simple program.
2546 if test "$cross_compiling" != yes; then
2547 if { ac_try='./$ac_file'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 if test "$cross_compiling" = maybe; then
2562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2572 { echo "$as_me:$LINENO: result: yes" >&5
2573 echo "${ECHO_T}yes" >&6; }
2575 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2576 ac_clean_files=$ac_clean_files_save
2577 # Check that the compiler produces executables we can run. If not, either
2578 # the compiler is broken, or we cross compile.
2579 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2581 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582 echo "${ECHO_T}$cross_compiling" >&6; }
2584 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2586 if { (ac_try="$ac_link"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_link") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2617 rm -f conftest$ac_cv_exeext
2618 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2621 rm -f conftest.$ac_ext
2622 EXEEXT=$ac_cv_exeext
2624 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2626 if test "${ac_cv_objext+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.o conftest.obj
2645 if { (ac_try="$ac_compile"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; then
2655 for ac_file in conftest.o conftest.obj conftest.*; do
2656 test -f "$ac_file" || continue;
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6; }
2678 OBJEXT=$ac_cv_objext
2680 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2751 GCC=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CFLAGS=${CFLAGS+set}
2753 ac_save_CFLAGS=$CFLAGS
2754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_cc_g+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 ac_save_c_werror_flag=$ac_c_werror_flag
2760 ac_c_werror_flag=yes
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compile") 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_try") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2848 { (case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_try") 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_try") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 ac_c_werror_flag=$ac_save_c_werror_flag
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2904 { (case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_try") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_try") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 ac_c_werror_flag=$ac_save_c_werror_flag
2940 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2942 if test "$ac_test_CFLAGS" = set; then
2943 CFLAGS=$ac_save_CFLAGS
2944 elif test $ac_cv_prog_cc_g = yes; then
2945 if test "$GCC" = yes; then
2951 if test "$GCC" = yes; then
2957 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2958 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_cc_c89+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 ac_cv_prog_cc_c89=no
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 #include <sys/types.h>
2973 #include <sys/stat.h>
2974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2975 struct buf { int x; };
2976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2977 static char *e (p, i)
2983 static char *f (char * (*g) (char **, int), char **p, ...)
2988 s = g (p, va_arg (v,int));
2993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2994 function prototypes and stuff, but not '\xHH' hex character constants.
2995 These don't provoke an error unfortunately, instead are silently treated
2996 as 'x'. The following induces an error, until -std is added to get
2997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2998 array size at least. It's necessary to write '\x00'==0 to get something
2999 that's true only with -std. */
3000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3003 inside strings and character constants. */
3005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3007 int test (int i, double x);
3008 struct s1 {int (*f) (int a);};
3009 struct s2 {int (*f) (double a);};
3010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3024 CC="$ac_save_CC $ac_arg"
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cc_c89=$ac_arg
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f core conftest.err conftest.$ac_objext
3068 test "x$ac_cv_prog_cc_c89" != "xno" && break
3070 rm -f conftest.$ac_ext
3075 case "x$ac_cv_prog_cc_c89" in
3077 { echo "$as_me:$LINENO: result: none needed" >&5
3078 echo "${ECHO_T}none needed" >&6; } ;;
3080 { echo "$as_me:$LINENO: result: unsupported" >&5
3081 echo "${ECHO_T}unsupported" >&6; } ;;
3083 CC="$CC $ac_cv_prog_cc_c89"
3084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096 ac_cpp='$CXXCPP $CPPFLAGS'
3097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100 if test -z "$CXX"; then
3101 if test -n "$CCC"; then
3104 if test -n "$ac_tool_prefix"; then
3105 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_CXX+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if test -n "$CXX"; then
3115 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$CXX"; then
3136 { echo "$as_me:$LINENO: result: $CXX" >&5
3137 echo "${ECHO_T}$CXX" >&6; }
3139 { echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6; }
3144 test -n "$CXX" && break
3147 if test -z "$CXX"; then
3149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3155 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$ac_ct_CXX"; then
3159 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_ac_ct_CXX="$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3179 if test -n "$ac_ct_CXX"; then
3180 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3181 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3183 { echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6; }
3188 test -n "$ac_ct_CXX" && break
3191 if test "x$ac_ct_CXX" = x; then
3194 case $cross_compiling:$ac_tool_warned in
3196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3197 whose name does not start with the host triplet. If you think this
3198 configuration is useful to you, please write to autoconf@gnu.org." >&5
3199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3200 whose name does not start with the host triplet. If you think this
3201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3202 ac_tool_warned=yes ;;
3210 # Provide some information about the compiler.
3211 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3212 ac_compiler=`set X $ac_compile; echo $2`
3213 { (ac_try="$ac_compiler --version >&5"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compiler --version >&5") 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }
3223 { (ac_try="$ac_compiler -v >&5"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compiler -v >&5") 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }
3233 { (ac_try="$ac_compiler -V >&5"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compiler -V >&5") 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }
3244 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3245 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3246 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3282 { (case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_try") 2>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; } &&
3291 { ac_try='test -s conftest.$ac_objext'
3292 { (case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_try") 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3313 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3314 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3315 GXX=`test $ac_compiler_gnu = yes && echo yes`
3316 ac_test_CXXFLAGS=${CXXFLAGS+set}
3317 ac_save_CXXFLAGS=$CXXFLAGS
3318 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3319 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_cxx_g+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3324 ac_cxx_werror_flag=yes
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3357 { (case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_try") 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_try") 2>&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_cv_prog_cxx_g=yes
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3412 { (case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_try") 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_try") 2>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_compile") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3468 { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_prog_cxx_g=yes
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3506 if test "$ac_test_CXXFLAGS" = set; then
3507 CXXFLAGS=$ac_save_CXXFLAGS
3508 elif test $ac_cv_prog_cxx_g = yes; then
3509 if test "$GXX" = yes; then
3515 if test "$GXX" = yes; then
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 if test "x$CC" != xcc; then
3528 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3529 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3531 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3532 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3534 set dummy $CC; ac_cc=`echo $2 |
3535 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3536 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3554 # Make sure it works both with $CC and with simple cc.
3555 # We do the test twice because some compilers refuse to overwrite an
3556 # existing .o file with -o, though they will create one.
3557 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3559 if { (case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_try") 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_try") 2>&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); };
3578 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3579 if test "x$CC" != xcc; then
3580 # Test first that cc exists at all.
3581 if { ac_try='cc -c conftest.$ac_ext >&5'
3582 { (case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_try") 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3593 if { (case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_try") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); };
3615 # cc exists but doesn't like -o.
3616 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3621 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3623 rm -f core conftest*
3626 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3627 { echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6; }
3630 { echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6; }
3633 cat >>confdefs.h <<\_ACEOF
3634 #define NO_MINUS_C_MINUS_O 1
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3645 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if test "${ac_cv_prog_CPP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 # Double quotes because CPP needs to be expanded
3655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3658 for ac_c_preproc_warn_flag in '' yes
3660 # Use a header file that comes with gcc, so configuring glibc
3661 # with a fresh cross-compiler works.
3662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663 # <limits.h> exists even on freestanding compilers.
3664 # On the NeXT, cc -E runs the code through the compiler's parser,
3665 # not just through cpp. "Syntax error" is here to catch this case.
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3673 # include <limits.h>
3675 # include <assert.h>
3679 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } >/dev/null; then
3692 if test -s conftest.err; then
3693 ac_cpp_err=$ac_c_preproc_warn_flag
3694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3701 if test -z "$ac_cpp_err"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Broken: fails on valid input.
3711 rm -f conftest.err conftest.$ac_ext
3713 # OK, works on sane cases. Now check whether nonexistent headers
3714 # can be detected and how.
3715 cat >conftest.$ac_ext <<_ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null; then
3736 if test -s conftest.err; then
3737 ac_cpp_err=$ac_c_preproc_warn_flag
3738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3745 if test -z "$ac_cpp_err"; then
3746 # Broken: success on invalid input.
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 # Passes both tests.
3757 rm -f conftest.err conftest.$ac_ext
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then
3774 { echo "$as_me:$LINENO: result: $CPP" >&5
3775 echo "${ECHO_T}$CPP" >&6; }
3777 for ac_c_preproc_warn_flag in '' yes
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782 # <limits.h> exists even on freestanding compilers.
3783 # On the NeXT, cc -E runs the code through the compiler's parser,
3784 # not just through cpp. "Syntax error" is here to catch this case.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3792 # include <limits.h>
3794 # include <assert.h>
3798 if { (ac_try="$ac_cpp conftest.$ac_ext"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } >/dev/null; then
3811 if test -s conftest.err; then
3812 ac_cpp_err=$ac_c_preproc_warn_flag
3813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3820 if test -z "$ac_cpp_err"; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Broken: fails on valid input.
3830 rm -f conftest.err conftest.$ac_ext
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <ac_nonexistent.h>
3842 if { (ac_try="$ac_cpp conftest.$ac_ext"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null; then
3855 if test -s conftest.err; then
3856 ac_cpp_err=$ac_c_preproc_warn_flag
3857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3864 if test -z "$ac_cpp_err"; then
3865 # Broken: success on invalid input.
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 # Passes both tests.
3876 rm -f conftest.err conftest.$ac_ext
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888 { (exit 1); exit 1; }; }
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3899 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3900 if test "${ac_cv_path_GREP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 # Extract the first word of "grep ggrep" to use in msg output
3904 if test -z "$GREP"; then
3905 set dummy grep ggrep; ac_prog_name=$2
3906 if test "${ac_cv_path_GREP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 ac_path_GREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in grep ggrep; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3920 # Check for GNU ac_path_GREP and select it if it is found.
3921 # Check for GNU $ac_path_GREP
3922 case `"$ac_path_GREP" --version 2>&1` in
3924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3927 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3930 cat "conftest.in" "conftest.in" >"conftest.tmp"
3931 mv "conftest.tmp" "conftest.in"
3932 cp "conftest.in" "conftest.nl"
3933 echo 'GREP' >> "conftest.nl"
3934 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936 ac_count=`expr $ac_count + 1`
3937 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938 # Best one so far, save it but keep looking for a better one
3939 ac_cv_path_GREP="$ac_path_GREP"
3940 ac_path_GREP_max=$ac_count
3942 # 10*(2^10) chars as input seems more than enough
3943 test $ac_count -gt 10 && break
3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 $ac_path_GREP_found && break 3
3959 GREP="$ac_cv_path_GREP"
3960 if test -z "$GREP"; then
3961 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3962 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3963 { (exit 1); exit 1; }; }
3967 ac_cv_path_GREP=$GREP
3972 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3973 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3974 GREP="$ac_cv_path_GREP"
3977 { echo "$as_me:$LINENO: checking for egrep" >&5
3978 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3983 then ac_cv_path_EGREP="$GREP -E"
3985 # Extract the first word of "egrep" to use in msg output
3986 if test -z "$EGREP"; then
3987 set dummy egrep; ac_prog_name=$2
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_path_EGREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 test -z "$as_dir" && as_dir=.
3998 for ac_prog in egrep; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4001 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4002 # Check for GNU ac_path_EGREP and select it if it is found.
4003 # Check for GNU $ac_path_EGREP
4004 case `"$ac_path_EGREP" --version 2>&1` in
4006 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012 cat "conftest.in" "conftest.in" >"conftest.tmp"
4013 mv "conftest.tmp" "conftest.in"
4014 cp "conftest.in" "conftest.nl"
4015 echo 'EGREP' >> "conftest.nl"
4016 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018 ac_count=`expr $ac_count + 1`
4019 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4020 # Best one so far, save it but keep looking for a better one
4021 ac_cv_path_EGREP="$ac_path_EGREP"
4022 ac_path_EGREP_max=$ac_count
4024 # 10*(2^10) chars as input seems more than enough
4025 test $ac_count -gt 10 && break
4027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 $ac_path_EGREP_found && break 3
4041 EGREP="$ac_cv_path_EGREP"
4042 if test -z "$EGREP"; then
4043 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4044 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4045 { (exit 1); exit 1; }; }
4049 ac_cv_path_EGREP=$EGREP
4055 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4056 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4057 EGREP="$ac_cv_path_EGREP"
4060 if test $ac_cv_c_compiler_gnu = yes; then
4061 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4062 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4063 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_pattern="Autoconf.*'x'"
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4078 ac_cv_prog_gcc_traditional=yes
4080 ac_cv_prog_gcc_traditional=no
4085 if test $ac_cv_prog_gcc_traditional = no; then
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4097 ac_cv_prog_gcc_traditional=yes
4103 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4104 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4105 if test $ac_cv_prog_gcc_traditional = yes; then
4106 CC="$CC -traditional"
4110 BASECC=`basename $CC`
4112 if test "x$BASECC" = xgcc; then
4113 cat >>confdefs.h <<\_ACEOF
4119 # Extract the first word of "$CXX", so it can be a program name with args.
4120 set dummy $CXX; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_path_CXX+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4151 if test -n "$CXX"; then
4152 { echo "$as_me:$LINENO: result: $CXX" >&5
4153 echo "${ECHO_T}$CXX" >&6; }
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4160 if test ! -e $CXX; then
4161 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4162 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4163 { (exit 1); exit 1; }; }
4166 # Find a good install program. We prefer a C program (faster),
4167 # so one script is as good as another. But avoid the broken or
4168 # incompatible versions:
4169 # SysV /etc/install, /usr/sbin/install
4170 # SunOS /usr/etc/install
4171 # IRIX /sbin/install
4173 # AmigaOS /C/install, which installs bootblocks on floppy discs
4174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4177 # OS/2's system install, which has a completely different semantic
4178 # ./install, which can be erroneously created by make from ./install.sh.
4179 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4180 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4181 if test -z "$INSTALL"; then
4182 if test "${ac_cv_path_install+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 # Account for people who put trailing slashes in PATH elements.
4192 ./ | .// | /cC/* | \
4193 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4194 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4197 # OSF1 and SCO ODT 3.0 have their own names for install.
4198 # Don't use installbsd from OSF since it installs stuff as root
4200 for ac_prog in ginstall scoinst install; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4203 if test $ac_prog = install &&
4204 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4205 # AIX install. It has an incompatible calling convention.
4207 elif test $ac_prog = install &&
4208 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209 # program-specific install script used by HP pwplus--don't use.
4212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4225 if test "${ac_cv_path_install+set}" = set; then
4226 INSTALL=$ac_cv_path_install
4228 # As a last resort, use the slow shell script. Don't cache a
4229 # value for INSTALL within a source directory, because that will
4230 # break other packages using the cache if that directory is
4231 # removed, or if the value is a relative name.
4232 INSTALL=$ac_install_sh
4235 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4236 echo "${ECHO_T}$INSTALL" >&6; }
4238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4239 # It thinks the first close brace ends the variable substitution.
4240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4246 if test -n "$ac_tool_prefix"; then
4247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_RANLIB+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$RANLIB"; then
4255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 RANLIB=$ac_cv_prog_RANLIB
4275 if test -n "$RANLIB"; then
4276 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4277 echo "${ECHO_T}$RANLIB" >&6; }
4279 { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4285 if test -z "$ac_cv_prog_RANLIB"; then
4286 ac_ct_RANLIB=$RANLIB
4287 # Extract the first word of "ranlib", so it can be a program name with args.
4288 set dummy ranlib; ac_word=$2
4289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 if test -n "$ac_ct_RANLIB"; then
4295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 ac_cv_prog_ac_ct_RANLIB="ranlib"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4315 if test -n "$ac_ct_RANLIB"; then
4316 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4317 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4319 { echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6; }
4323 if test "x$ac_ct_RANLIB" = x; then
4326 case $cross_compiling:$ac_tool_warned in
4328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet. If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&5
4331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4332 whose name does not start with the host triplet. If you think this
4333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4334 ac_tool_warned=yes ;;
4336 RANLIB=$ac_ct_RANLIB
4339 RANLIB="$ac_cv_prog_RANLIB"
4342 # Extract the first word of "mv", so it can be a program name with args.
4343 set dummy mv; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_path_MV+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4374 if test -n "$MV"; then
4375 { echo "$as_me:$LINENO: result: $MV" >&5
4376 echo "${ECHO_T}$MV" >&6; }
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4383 # Extract the first word of "rm", so it can be a program name with args.
4384 set dummy rm; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_RM+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4415 if test -n "$RM"; then
4416 { echo "$as_me:$LINENO: result: $RM" >&5
4417 echo "${ECHO_T}$RM" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 # Extract the first word of "cp", so it can be a program name with args.
4425 set dummy cp; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_path_CP+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4456 if test -n "$CP"; then
4457 { echo "$as_me:$LINENO: result: $CP" >&5
4458 echo "${ECHO_T}$CP" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 # Extract the first word of "sed", so it can be a program name with args.
4466 set dummy sed; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_path_SED+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4497 if test -n "$SED"; then
4498 { echo "$as_me:$LINENO: result: $SED" >&5
4499 echo "${ECHO_T}$SED" >&6; }
4501 { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4506 # Extract the first word of "echo", so it can be a program name with args.
4507 set dummy echo; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_path_ECHO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4537 ECHO=$ac_cv_path_ECHO
4538 if test -n "$ECHO"; then
4539 { echo "$as_me:$LINENO: result: $ECHO" >&5
4540 echo "${ECHO_T}$ECHO" >&6; }
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4547 # Extract the first word of "cmp", so it can be a program name with args.
4548 set dummy cmp; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_path_CMP+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4579 if test -n "$CMP"; then
4580 { echo "$as_me:$LINENO: result: $CMP" >&5
4581 echo "${ECHO_T}$CMP" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 # Extract the first word of "tbl", so it can be a program name with args.
4589 set dummy tbl; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_TBL+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4620 if test -n "$TBL"; then
4621 { echo "$as_me:$LINENO: result: $TBL" >&5
4622 echo "${ECHO_T}$TBL" >&6; }
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4629 # Extract the first word of "ar", so it can be a program name with args.
4630 set dummy ar; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_path_AR+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4661 if test -n "$AR"; then
4662 { echo "$as_me:$LINENO: result: $AR" >&5
4663 echo "${ECHO_T}$AR" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 # Extract the first word of "openssl", so it can be a program name with args.
4671 set dummy openssl; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_path_OPENSSL+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4701 OPENSSL=$ac_cv_path_OPENSSL
4702 if test -n "$OPENSSL"; then
4703 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4704 echo "${ECHO_T}$OPENSSL" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4711 # Extract the first word of "mtx", so it can be a program name with args.
4712 set dummy mtx; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_path_MTX+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4743 if test -n "$MTX"; then
4744 { echo "$as_me:$LINENO: result: $MTX" >&5
4745 echo "${ECHO_T}$MTX" >&6; }
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 # Extract the first word of "dd", so it can be a program name with args.
4753 set dummy dd; ac_word=$2
4754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4756 if test "${ac_cv_path_DD+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4784 if test -n "$DD"; then
4785 { echo "$as_me:$LINENO: result: $DD" >&5
4786 echo "${ECHO_T}$DD" >&6; }
4788 { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4793 # Extract the first word of "mkisofs", so it can be a program name with args.
4794 set dummy mkisofs; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_path_MKISOFS+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4824 MKISOFS=$ac_cv_path_MKISOFS
4825 if test -n "$MKISOFS"; then
4826 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4827 echo "${ECHO_T}$MKISOFS" >&6; }
4829 { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4834 # Extract the first word of "python", so it can be a program name with args.
4835 set dummy python; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_path_PYTHON+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4865 PYTHON=$ac_cv_path_PYTHON
4866 if test -n "$PYTHON"; then
4867 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4868 echo "${ECHO_T}$PYTHON" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4875 # Extract the first word of "growisofs", so it can be a program name with args.
4876 set dummy growisofs; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4906 GROWISOFS=$ac_cv_path_GROWISOFS
4907 if test -n "$GROWISOFS"; then
4908 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4909 echo "${ECHO_T}$GROWISOFS" >&6; }
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4916 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4917 set dummy dvd+rw-mediainfo; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 case $DVDRWMEDIAINFO in
4925 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4947 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4948 if test -n "$DVDRWMEDIAINFO"; then
4949 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4950 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4957 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4958 set dummy dvd+rw-format; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 case $DVDRWFORMAT in
4966 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4988 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4989 if test -n "$DVDRWFORMAT"; then
4990 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4991 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4993 { echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6; }
4998 # Extract the first word of "pkg-config", so it can be a program name with args.
4999 set dummy pkg-config; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5029 PKGCONFIG=$ac_cv_path_PKGCONFIG
5030 if test -n "$PKGCONFIG"; then
5031 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5032 echo "${ECHO_T}$PKGCONFIG" >&6; }
5034 { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5040 if test "x$WXCONFIG" = x; then
5043 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5044 set dummy ${WXCONFIG}; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5074 WXCONFIG=$ac_cv_path_WXCONFIG
5075 if test -n "$WXCONFIG"; then
5076 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5077 echo "${ECHO_T}$WXCONFIG" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5085 # Extract the first word of "cdrecord", so it can be a program name with args.
5086 set dummy cdrecord; ac_word=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_path_CDRECORD+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5116 CDRECORD=$ac_cv_path_CDRECORD
5117 if test -n "$CDRECORD"; then
5118 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5119 echo "${ECHO_T}$CDRECORD" >&6; }
5121 { echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6; }
5126 # Extract the first word of "pidof", so it can be a program name with args.
5127 set dummy pidof; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_path_PIDOF+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5157 PIDOF=$ac_cv_path_PIDOF
5158 if test -n "$PIDOF"; then
5159 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5160 echo "${ECHO_T}$PIDOF" >&6; }
5162 { echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6; }
5167 for ac_prog in gawk mawk nawk awk
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_AWK+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test -n "$AWK"; then
5177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_AWK="$ac_prog"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 if test -n "$AWK"; then
5198 { echo "$as_me:$LINENO: result: $AWK" >&5
5199 echo "${ECHO_T}$AWK" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5206 test -n "$AWK" && break
5209 # Some AWK programs fail, so test it and warn the user
5210 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5211 { if ((prog == $2) || (("(" prog ")") == $2) ||
5212 (("" prog "") == $2) ||
5213 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5215 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5216 The regex engine of $AWK is too broken to be used you
5217 might want to install GNU AWK.
5218 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5219 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220 The regex engine of $AWK is too broken to be used you
5221 might want to install GNU AWK.
5222 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5223 { (exit 1); exit 1; }; }
5226 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5227 set dummy $THE_AWK; ac_word=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_path_AWK+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5258 if test -n "$AWK"; then
5259 { echo "$as_me:$LINENO: result: $AWK" >&5
5260 echo "${ECHO_T}$AWK" >&6; }
5262 { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5268 test -n "$ARFLAG" || ARFLAGS="cr"
5279 # Make sure we can run config.sub.
5280 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5281 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5282 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5283 { (exit 1); exit 1; }; }
5285 { echo "$as_me:$LINENO: checking build system type" >&5
5286 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5287 if test "${ac_cv_build+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 ac_build_alias=$build_alias
5291 test "x$ac_build_alias" = x &&
5292 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5293 test "x$ac_build_alias" = x &&
5294 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5295 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5296 { (exit 1); exit 1; }; }
5297 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5298 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5299 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5300 { (exit 1); exit 1; }; }
5303 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5304 echo "${ECHO_T}$ac_cv_build" >&6; }
5305 case $ac_cv_build in
5307 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5308 echo "$as_me: error: invalid value of canonical build" >&2;}
5309 { (exit 1); exit 1; }; };;
5312 ac_save_IFS=$IFS; IFS='-'
5318 # Remember, the first character of IFS is used to create $*,
5319 # except with old shells:
5322 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5326 { echo "$as_me:$LINENO: checking host system type" >&5
5327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5328 if test "${ac_cv_host+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test "x$host_alias" = x; then
5332 ac_cv_host=$ac_cv_build
5334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5337 { (exit 1); exit 1; }; }
5341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5342 echo "${ECHO_T}$ac_cv_host" >&6; }
5345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5346 echo "$as_me: error: invalid value of canonical host" >&2;}
5347 { (exit 1); exit 1; }; };;
5350 ac_save_IFS=$IFS; IFS='-'
5356 # Remember, the first character of IFS is used to create $*,
5357 # except with old shells:
5360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5364 *cygwin* ) CYGWIN=yes;;
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5374 HAVE_SUN_OS_FALSE='#'
5376 HAVE_SUN_OS_TRUE='#'
5379 cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_SUN_OS 1
5388 HAVE_SUN_OS_FALSE='#'
5390 HAVE_SUN_OS_TRUE='#'
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5401 HAVE_OSF1_OS_FALSE='#'
5403 HAVE_OSF1_OS_TRUE='#'
5406 cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_OSF1_OS 1
5415 HAVE_OSF1_OS_FALSE='#'
5417 HAVE_OSF1_OS_TRUE='#'
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5428 HAVE_AIX_OS_FALSE='#'
5430 HAVE_AIX_OS_TRUE='#'
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_AIX_OS 1
5442 HAVE_AIX_OS_FALSE='#'
5444 HAVE_AIX_OS_TRUE='#'
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5455 HAVE_HPUX_OS_FALSE='#'
5457 HAVE_HPUX_OS_TRUE='#'
5460 cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_HPUX_OS 1
5469 HAVE_HPUX_OS_FALSE='#'
5471 HAVE_HPUX_OS_TRUE='#'
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5482 HAVE_LINUX_OS_FALSE='#'
5484 HAVE_LINUX_OS_TRUE='#'
5485 HAVE_LINUX_OS_FALSE=
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_LINUX_OS 1
5496 HAVE_LINUX_OS_FALSE='#'
5498 HAVE_LINUX_OS_TRUE='#'
5499 HAVE_LINUX_OS_FALSE=
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5508 HAVE_FREEBSD_OS_TRUE=
5509 HAVE_FREEBSD_OS_FALSE='#'
5511 HAVE_FREEBSD_OS_TRUE='#'
5512 HAVE_FREEBSD_OS_FALSE=
5514 cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_FREEBSD_OS 1
5522 HAVE_FREEBSD_OS_TRUE=
5523 HAVE_FREEBSD_OS_FALSE='#'
5525 HAVE_FREEBSD_OS_TRUE='#'
5526 HAVE_FREEBSD_OS_FALSE=
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5535 HAVE_NETBSD_OS_TRUE=
5536 HAVE_NETBSD_OS_FALSE='#'
5538 HAVE_NETBSD_OS_TRUE='#'
5539 HAVE_NETBSD_OS_FALSE=
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_NETBSD_OS 1
5549 HAVE_NETBSD_OS_TRUE=
5550 HAVE_NETBSD_OS_FALSE='#'
5552 HAVE_NETBSD_OS_TRUE='#'
5553 HAVE_NETBSD_OS_FALSE=
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5562 HAVE_OPENBSD_OS_TRUE=
5563 HAVE_OPENBSD_OS_FALSE='#'
5565 HAVE_OPENBSD_OS_TRUE='#'
5566 HAVE_OPENBSD_OS_FALSE=
5568 cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_OPENBSD_OS 1
5576 HAVE_OPENBSD_OS_TRUE=
5577 HAVE_OPENBSD_OS_FALSE='#'
5579 HAVE_OPENBSD_OS_TRUE='#'
5580 HAVE_OPENBSD_OS_FALSE=
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5590 HAVE_BSDI_OS_FALSE='#'
5592 HAVE_BSDI_OS_TRUE='#'
5595 cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_BSDI_OS 1
5604 HAVE_BSDI_OS_FALSE='#'
5606 HAVE_BSDI_OS_TRUE='#'
5611 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5617 HAVE_SGI_OS_FALSE='#'
5619 HAVE_SGI_OS_TRUE='#'
5622 cat >>confdefs.h <<\_ACEOF
5623 #define HAVE_SGI_OS 1
5631 HAVE_SGI_OS_FALSE='#'
5633 HAVE_SGI_OS_TRUE='#'
5638 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5644 HAVE_IRIX_OS_FALSE='#'
5646 HAVE_IRIX_OS_TRUE='#'
5649 cat >>confdefs.h <<\_ACEOF
5650 #define HAVE_IRIX_OS 1
5658 HAVE_IRIX_OS_FALSE='#'
5660 HAVE_IRIX_OS_TRUE='#'
5665 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5670 HAVE_DARWIN_OS_TRUE=
5671 HAVE_DARWIN_OS_FALSE='#'
5673 HAVE_DARWIN_OS_TRUE='#'
5674 HAVE_DARWIN_OS_FALSE=
5676 cat >>confdefs.h <<\_ACEOF
5677 #define HAVE_DARWIN_OS 1
5684 HAVE_DARWIN_OS_TRUE=
5685 HAVE_DARWIN_OS_FALSE='#'
5687 HAVE_DARWIN_OS_TRUE='#'
5688 HAVE_DARWIN_OS_FALSE=
5693 # -----------------------------------------------------------
5694 # ----------------------------------------------------------
5695 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5696 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5697 if test "x$DISTNAME" != "x"
5699 echo "distname set to $DISTNAME"
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5703 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5712 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5715 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5718 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5721 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5724 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5727 elif test -f /etc/SuSE-release
5730 elif test -d /etc/SuSEconfig
5733 elif test -f /etc/mandrake-release
5736 elif test -f /etc/whitebox-release
5739 elif test -f /etc/redhat-release
5742 elif test -f /etc/gentoo-release
5745 elif test -f /etc/debian_version
5748 elif test -f /etc/slackware-version
5751 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5754 elif test -f /etc/engarde-version
5757 elif test "$CYGWIN" = yes
5760 cat >>confdefs.h <<\_ACEOF
5761 #define HAVE_CYGWIN 1
5767 { echo "$as_me:$LINENO: result: done" >&5
5768 echo "${ECHO_T}done" >&6; }
5771 # --------------------------------------------------
5772 # Suppport for gettext (translations)
5773 # By default, $datadir is ${prefix}/share
5774 # --------------------------------------------------
5775 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5776 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5777 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.make <<\_ACEOF
5784 @echo '@@@%%%=$(MAKE)=@@@%%%'
5786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5789 eval ac_cv_prog_make_${ac_make}_set=yes;;
5791 eval ac_cv_prog_make_${ac_make}_set=no;;
5795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5796 { echo "$as_me:$LINENO: result: yes" >&5
5797 echo "${ECHO_T}yes" >&6; }
5800 { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5802 SET_MAKE="MAKE=${MAKE-make}"
5808 if test -n "$ac_aux_dir"; then
5809 case "$ac_aux_dir" in
5810 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5811 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5814 if test -z "$MKINSTALLDIRS"; then
5815 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5820 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5821 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5822 # Check whether --enable-nls was given.
5823 if test "${enable_nls+set}" = set; then
5824 enableval=$enable_nls; USE_NLS=$enableval
5829 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5830 echo "${ECHO_T}$USE_NLS" >&6; }
5837 # Prepare PATH_SEPARATOR.
5838 # The user is always right.
5839 if test "${PATH_SEPARATOR+set}" != set; then
5840 echo "#! /bin/sh" >conf$$.sh
5841 echo "exit 0" >>conf$$.sh
5843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5851 # Find out how to test for executable files. Don't use a zero-byte file,
5852 # as systems may use methods other than mode bits to determine executability.
5853 cat >conf$$.file <<_ASEOF
5857 chmod +x conf$$.file
5858 if test -x conf$$.file >/dev/null 2>&1; then
5859 ac_executable_p="test -x"
5861 ac_executable_p="test -f"
5865 # Extract the first word of "msgfmt", so it can be a program name with args.
5866 set dummy msgfmt; ac_word=$2
5867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5869 if test "${ac_cv_path_MSGFMT+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5878 for ac_dir in $PATH; do
5880 test -z "$ac_dir" && ac_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5883 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5884 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5885 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5886 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5893 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5897 MSGFMT="$ac_cv_path_MSGFMT"
5898 if test "$MSGFMT" != ":"; then
5899 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5900 echo "${ECHO_T}$MSGFMT" >&6; }
5902 { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5907 set dummy gmsgfmt; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5937 GMSGFMT=$ac_cv_path_GMSGFMT
5938 if test -n "$GMSGFMT"; then
5939 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5940 echo "${ECHO_T}$GMSGFMT" >&6; }
5942 { echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6; }
5949 # Prepare PATH_SEPARATOR.
5950 # The user is always right.
5951 if test "${PATH_SEPARATOR+set}" != set; then
5952 echo "#! /bin/sh" >conf$$.sh
5953 echo "exit 0" >>conf$$.sh
5955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5963 # Find out how to test for executable files. Don't use a zero-byte file,
5964 # as systems may use methods other than mode bits to determine executability.
5965 cat >conf$$.file <<_ASEOF
5969 chmod +x conf$$.file
5970 if test -x conf$$.file >/dev/null 2>&1; then
5971 ac_executable_p="test -x"
5973 ac_executable_p="test -f"
5977 # Extract the first word of "xgettext", so it can be a program name with args.
5978 set dummy xgettext; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5989 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5990 for ac_dir in $PATH; do
5992 test -z "$ac_dir" && ac_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5995 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5996 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5997 (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
5998 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6005 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6009 XGETTEXT="$ac_cv_path_XGETTEXT"
6010 if test "$XGETTEXT" != ":"; then
6011 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6012 echo "${ECHO_T}$XGETTEXT" >&6; }
6014 { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6021 # Prepare PATH_SEPARATOR.
6022 # The user is always right.
6023 if test "${PATH_SEPARATOR+set}" != set; then
6024 echo "#! /bin/sh" >conf$$.sh
6025 echo "exit 0" >>conf$$.sh
6027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6035 # Find out how to test for executable files. Don't use a zero-byte file,
6036 # as systems may use methods other than mode bits to determine executability.
6037 cat >conf$$.file <<_ASEOF
6041 chmod +x conf$$.file
6042 if test -x conf$$.file >/dev/null 2>&1; then
6043 ac_executable_p="test -x"
6045 ac_executable_p="test -f"
6049 # Extract the first word of "msgmerge", so it can be a program name with args.
6050 set dummy msgmerge; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6061 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6062 for ac_dir in $PATH; do
6064 test -z "$ac_dir" && ac_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6067 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6068 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6069 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6076 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6080 MSGMERGE="$ac_cv_path_MSGMERGE"
6081 if test "$MSGMERGE" != ":"; then
6082 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6083 echo "${ECHO_T}$MSGMERGE" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6090 if test "$GMSGFMT" != ":"; then
6091 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6092 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6095 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6096 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6097 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6102 if test "$XGETTEXT" != ":"; then
6103 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6104 (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
6107 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6108 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6114 ac_config_commands="$ac_config_commands default-1"
6118 if test "X$prefix" = "XNONE"; then
6119 acl_final_prefix="$ac_default_prefix"
6121 acl_final_prefix="$prefix"
6123 if test "X$exec_prefix" = "XNONE"; then
6124 acl_final_exec_prefix='${prefix}'
6126 acl_final_exec_prefix="$exec_prefix"
6128 acl_save_prefix="$prefix"
6129 prefix="$acl_final_prefix"
6130 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6131 prefix="$acl_save_prefix"
6134 # Check whether --with-gnu-ld was given.
6135 if test "${with_gnu_ld+set}" = set; then
6136 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6141 # Prepare PATH_SEPARATOR.
6142 # The user is always right.
6143 if test "${PATH_SEPARATOR+set}" != set; then
6144 echo "#! /bin/sh" >conf$$.sh
6145 echo "exit 0" >>conf$$.sh
6147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6155 if test "$GCC" = yes; then
6156 # Check if gcc -print-prog-name=ld gives a path.
6157 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6158 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6161 # gcc leaves a trailing carriage return which upsets mingw
6162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6167 # Accept absolute paths.
6168 [\\/]* | [A-Za-z]:[\\/]*)
6169 re_direlt='/[^/][^/]*/\.\./'
6170 # Canonicalize the path of ld
6171 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6172 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6173 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6175 test -z "$LD" && LD="$ac_prog"
6178 # If it fails, then pretend we aren't using GCC.
6182 # If it is relative, then search for the first ld in PATH.
6186 elif test "$with_gnu_ld" = yes; then
6187 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6188 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6190 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6191 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6193 if test "${acl_cv_path_LD+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -z "$LD"; then
6197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6198 for ac_dir in $PATH; do
6199 test -z "$ac_dir" && ac_dir=.
6200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6201 acl_cv_path_LD="$ac_dir/$ac_prog"
6202 # Check to see if the program is GNU ld. I'd rather use --version,
6203 # but apparently some GNU ld's only accept -v.
6204 # Break only if it was the GNU/non-GNU ld that we prefer.
6205 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6206 *GNU* | *'with BFD'*)
6207 test "$with_gnu_ld" != no && break ;;
6209 test "$with_gnu_ld" != yes && break ;;
6215 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6219 LD="$acl_cv_path_LD"
6220 if test -n "$LD"; then
6221 { echo "$as_me:$LINENO: result: $LD" >&5
6222 echo "${ECHO_T}$LD" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6227 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229 { (exit 1); exit 1; }; }
6230 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6232 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 case `$LD -v 2>&1 </dev/null` in
6237 *GNU* | *'with BFD'*)
6238 acl_cv_prog_gnu_ld=yes ;;
6240 acl_cv_prog_gnu_ld=no ;;
6243 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6244 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6245 with_gnu_ld=$acl_cv_prog_gnu_ld
6250 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6251 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6252 if test "${acl_cv_rpath+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6257 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6263 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6264 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6266 libext="$acl_cv_libext"
6267 shlibext="$acl_cv_shlibext"
6268 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6269 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6270 hardcode_direct="$acl_cv_hardcode_direct"
6271 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6272 # Check whether --enable-rpath was given.
6273 if test "${enable_rpath+set}" = set; then
6274 enableval=$enable_rpath; :
6288 acl_save_prefix="$prefix"
6289 prefix="$acl_final_prefix"
6290 acl_save_exec_prefix="$exec_prefix"
6291 exec_prefix="$acl_final_exec_prefix"
6293 eval additional_includedir=\"$includedir\"
6294 eval additional_libdir=\"$libdir\"
6296 exec_prefix="$acl_save_exec_prefix"
6297 prefix="$acl_save_prefix"
6300 # Check whether --with-libiconv-prefix was given.
6301 if test "${with_libiconv_prefix+set}" = set; then
6302 withval=$with_libiconv_prefix;
6303 if test "X$withval" = "Xno"; then
6306 if test "X$withval" = "X"; then
6308 acl_save_prefix="$prefix"
6309 prefix="$acl_final_prefix"
6310 acl_save_exec_prefix="$exec_prefix"
6311 exec_prefix="$acl_final_exec_prefix"
6313 eval additional_includedir=\"$includedir\"
6314 eval additional_libdir=\"$libdir\"
6316 exec_prefix="$acl_save_exec_prefix"
6317 prefix="$acl_save_prefix"
6320 additional_includedir="$withval/include"
6321 additional_libdir="$withval/lib"
6332 names_already_handled=
6333 names_next_round='iconv '
6334 while test -n "$names_next_round"; do
6335 names_this_round="$names_next_round"
6337 for name in $names_this_round; do
6339 for n in $names_already_handled; do
6340 if test "$n" = "$name"; then
6345 if test -z "$already_handled"; then
6346 names_already_handled="$names_already_handled $name"
6347 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6348 eval value=\"\$HAVE_LIB$uppername\"
6349 if test -n "$value"; then
6350 if test "$value" = yes; then
6351 eval value=\"\$LIB$uppername\"
6352 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6353 eval value=\"\$LTLIB$uppername\"
6354 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6363 if test $use_additional = yes; then
6364 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6365 found_dir="$additional_libdir"
6366 found_so="$additional_libdir/lib$name.$shlibext"
6367 if test -f "$additional_libdir/lib$name.la"; then
6368 found_la="$additional_libdir/lib$name.la"
6371 if test -f "$additional_libdir/lib$name.$libext"; then
6372 found_dir="$additional_libdir"
6373 found_a="$additional_libdir/lib$name.$libext"
6374 if test -f "$additional_libdir/lib$name.la"; then
6375 found_la="$additional_libdir/lib$name.la"
6380 if test "X$found_dir" = "X"; then
6381 for x in $LDFLAGS $LTLIBICONV; do
6383 acl_save_prefix="$prefix"
6384 prefix="$acl_final_prefix"
6385 acl_save_exec_prefix="$exec_prefix"
6386 exec_prefix="$acl_final_exec_prefix"
6388 exec_prefix="$acl_save_exec_prefix"
6389 prefix="$acl_save_prefix"
6393 dir=`echo "X$x" | sed -e 's/^X-L//'`
6394 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6396 found_so="$dir/lib$name.$shlibext"
6397 if test -f "$dir/lib$name.la"; then
6398 found_la="$dir/lib$name.la"
6401 if test -f "$dir/lib$name.$libext"; then
6403 found_a="$dir/lib$name.$libext"
6404 if test -f "$dir/lib$name.la"; then
6405 found_la="$dir/lib$name.la"
6411 if test "X$found_dir" != "X"; then
6416 if test "X$found_dir" != "X"; then
6417 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6418 if test "X$found_so" != "X"; then
6419 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6423 for x in $ltrpathdirs; do
6424 if test "X$x" = "X$found_dir"; then
6429 if test -z "$haveit"; then
6430 ltrpathdirs="$ltrpathdirs $found_dir"
6432 if test "$hardcode_direct" = yes; then
6433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6435 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6438 for x in $rpathdirs; do
6439 if test "X$x" = "X$found_dir"; then
6444 if test -z "$haveit"; then
6445 rpathdirs="$rpathdirs $found_dir"
6449 for x in $LDFLAGS $LIBICONV; do
6451 acl_save_prefix="$prefix"
6452 prefix="$acl_final_prefix"
6453 acl_save_exec_prefix="$exec_prefix"
6454 exec_prefix="$acl_final_exec_prefix"
6456 exec_prefix="$acl_save_exec_prefix"
6457 prefix="$acl_save_prefix"
6459 if test "X$x" = "X-L$found_dir"; then
6464 if test -z "$haveit"; then
6465 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6467 if test "$hardcode_minus_L" != no; then
6468 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6470 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6476 if test "X$found_a" != "X"; then
6477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6479 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6482 additional_includedir=
6483 case "$found_dir" in
6485 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6486 additional_includedir="$basedir/include"
6489 if test "X$additional_includedir" != "X"; then
6490 if test "X$additional_includedir" != "X/usr/include"; then
6492 if test "X$additional_includedir" = "X/usr/local/include"; then
6493 if test -n "$GCC"; then
6495 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6499 if test -z "$haveit"; then
6500 for x in $CPPFLAGS $INCICONV; do
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6510 if test "X$x" = "X-I$additional_includedir"; then
6515 if test -z "$haveit"; then
6516 if test -d "$additional_includedir"; then
6517 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6523 if test -n "$found_la"; then
6524 save_libdir="$libdir"
6526 */* | *\\*) . "$found_la" ;;
6527 *) . "./$found_la" ;;
6529 libdir="$save_libdir"
6530 for dep in $dependency_libs; do
6533 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6534 if test "X$additional_libdir" != "X/usr/lib"; then
6536 if test "X$additional_libdir" = "X/usr/local/lib"; then
6537 if test -n "$GCC"; then
6539 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6543 if test -z "$haveit"; then
6545 for x in $LDFLAGS $LIBICONV; do
6547 acl_save_prefix="$prefix"
6548 prefix="$acl_final_prefix"
6549 acl_save_exec_prefix="$exec_prefix"
6550 exec_prefix="$acl_final_exec_prefix"
6552 exec_prefix="$acl_save_exec_prefix"
6553 prefix="$acl_save_prefix"
6555 if test "X$x" = "X-L$additional_libdir"; then
6560 if test -z "$haveit"; then
6561 if test -d "$additional_libdir"; then
6562 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6566 for x in $LDFLAGS $LTLIBICONV; do
6568 acl_save_prefix="$prefix"
6569 prefix="$acl_final_prefix"
6570 acl_save_exec_prefix="$exec_prefix"
6571 exec_prefix="$acl_final_exec_prefix"
6573 exec_prefix="$acl_save_exec_prefix"
6574 prefix="$acl_save_prefix"
6576 if test "X$x" = "X-L$additional_libdir"; then
6581 if test -z "$haveit"; then
6582 if test -d "$additional_libdir"; then
6583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6590 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6591 if test "$enable_rpath" != no; then
6593 for x in $rpathdirs; do
6594 if test "X$x" = "X$dir"; then
6599 if test -z "$haveit"; then
6600 rpathdirs="$rpathdirs $dir"
6603 for x in $ltrpathdirs; do
6604 if test "X$x" = "X$dir"; then
6609 if test -z "$haveit"; then
6610 ltrpathdirs="$ltrpathdirs $dir"
6615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6621 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6628 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6635 if test "X$rpathdirs" != "X"; then
6636 if test -n "$hardcode_libdir_separator"; then
6638 for found_dir in $rpathdirs; do
6639 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6641 acl_save_libdir="$libdir"
6643 eval flag=\"$hardcode_libdir_flag_spec\"
6644 libdir="$acl_save_libdir"
6645 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6647 for found_dir in $rpathdirs; do
6648 acl_save_libdir="$libdir"
6650 eval flag=\"$hardcode_libdir_flag_spec\"
6651 libdir="$acl_save_libdir"
6652 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6656 if test "X$ltrpathdirs" != "X"; then
6657 for found_dir in $ltrpathdirs; do
6658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6679 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6680 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6681 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 gt_save_CPPFLAGS="$CPPFLAGS"
6685 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6686 gt_save_LIBS="$LIBS"
6687 LIBS="$LIBS -framework CoreFoundation"
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <CFPreferences.h>
6698 CFPreferencesCopyAppValue(NULL, NULL)
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (ac_try="$ac_link"
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_link") 2>conftest.er1
6712 grep -v '^ *+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6718 { (case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_try") 2>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_try") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 gt_cv_func_CFPreferencesCopyAppValue=yes
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 gt_cv_func_CFPreferencesCopyAppValue=no
6745 rm -f core conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6747 CPPFLAGS="$gt_save_CPPFLAGS"
6748 LIBS="$gt_save_LIBS"
6750 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6751 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6752 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6759 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6760 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6761 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 gt_save_CPPFLAGS="$CPPFLAGS"
6765 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6766 gt_save_LIBS="$LIBS"
6767 LIBS="$LIBS -framework CoreFoundation"
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <CFLocale.h>
6778 CFLocaleCopyCurrent();
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790 (eval "$ac_link") 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_try") 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; } &&
6807 { ac_try='test -s conftest$ac_exeext'
6808 { (case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_try") 2>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 gt_cv_func_CFLocaleCopyCurrent=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 gt_cv_func_CFLocaleCopyCurrent=no
6825 rm -f core conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
6827 CPPFLAGS="$gt_save_CPPFLAGS"
6828 LIBS="$gt_save_LIBS"
6830 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6831 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6832 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_CFLOCALECOPYCURRENT 1
6840 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6841 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6847 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6848 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6849 # Check whether --enable-nls was given.
6850 if test "${enable_nls+set}" = set; then
6851 enableval=$enable_nls; USE_NLS=$enableval
6856 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6857 echo "${ECHO_T}$USE_NLS" >&6; }
6866 if test "$USE_NLS" = "yes"; then
6867 gt_use_preinstalled_gnugettext=no
6874 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6875 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6876 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <libintl.h>
6886 extern int _nl_msg_cat_cntr;
6887 extern int *_nl_domain_bindings;
6891 bindtextdomain ("", "");
6892 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6912 { (case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_try") 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_try") 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 gt_cv_func_gnugettext1_libc=yes
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 gt_cv_func_gnugettext1_libc=no
6939 rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6943 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6945 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6951 am_save_CPPFLAGS="$CPPFLAGS"
6953 for element in $INCICONV; do
6955 for x in $CPPFLAGS; do
6957 acl_save_prefix="$prefix"
6958 prefix="$acl_final_prefix"
6959 acl_save_exec_prefix="$exec_prefix"
6960 exec_prefix="$acl_final_exec_prefix"
6962 exec_prefix="$acl_save_exec_prefix"
6963 prefix="$acl_save_prefix"
6965 if test "X$x" = "X$element"; then
6970 if test -z "$haveit"; then
6971 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6976 { echo "$as_me:$LINENO: checking for iconv" >&5
6977 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6978 if test "${am_cv_func_iconv+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 am_cv_func_iconv="no, consider installing GNU libiconv"
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6995 iconv_t cd = iconv_open("","");
6996 iconv(cd,NULL,NULL,NULL,NULL);
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7017 { (case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_try") 2>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_try") 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 am_cv_func_iconv=yes
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7044 rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 if test "$am_cv_func_iconv" != yes; then
7047 am_save_LIBS="$LIBS"
7048 LIBS="$LIBS $LIBICONV"
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7060 iconv_t cd = iconv_open("","");
7061 iconv(cd,NULL,NULL,NULL,NULL);
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (ac_try="$ac_link"
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7082 { (case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_try") 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest$ac_exeext'
7092 { (case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_try") 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7102 am_cv_func_iconv=yes
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7110 rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 LIBS="$am_save_LIBS"
7116 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7117 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7118 if test "$am_cv_func_iconv" = yes; then
7120 cat >>confdefs.h <<\_ACEOF
7121 #define HAVE_ICONV 1
7125 if test "$am_cv_lib_iconv" = yes; then
7126 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7127 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7128 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7129 echo "${ECHO_T}$LIBICONV" >&6; }
7131 CPPFLAGS="$am_save_CPPFLAGS"
7143 acl_save_prefix="$prefix"
7144 prefix="$acl_final_prefix"
7145 acl_save_exec_prefix="$exec_prefix"
7146 exec_prefix="$acl_final_exec_prefix"
7148 eval additional_includedir=\"$includedir\"
7149 eval additional_libdir=\"$libdir\"
7151 exec_prefix="$acl_save_exec_prefix"
7152 prefix="$acl_save_prefix"
7155 # Check whether --with-libintl-prefix was given.
7156 if test "${with_libintl_prefix+set}" = set; then
7157 withval=$with_libintl_prefix;
7158 if test "X$withval" = "Xno"; then
7161 if test "X$withval" = "X"; then
7163 acl_save_prefix="$prefix"
7164 prefix="$acl_final_prefix"
7165 acl_save_exec_prefix="$exec_prefix"
7166 exec_prefix="$acl_final_exec_prefix"
7168 eval additional_includedir=\"$includedir\"
7169 eval additional_libdir=\"$libdir\"
7171 exec_prefix="$acl_save_exec_prefix"
7172 prefix="$acl_save_prefix"
7175 additional_includedir="$withval/include"
7176 additional_libdir="$withval/lib"
7187 names_already_handled=
7188 names_next_round='intl '
7189 while test -n "$names_next_round"; do
7190 names_this_round="$names_next_round"
7192 for name in $names_this_round; do
7194 for n in $names_already_handled; do
7195 if test "$n" = "$name"; then
7200 if test -z "$already_handled"; then
7201 names_already_handled="$names_already_handled $name"
7202 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7203 eval value=\"\$HAVE_LIB$uppername\"
7204 if test -n "$value"; then
7205 if test "$value" = yes; then
7206 eval value=\"\$LIB$uppername\"
7207 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7208 eval value=\"\$LTLIB$uppername\"
7209 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7218 if test $use_additional = yes; then
7219 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7220 found_dir="$additional_libdir"
7221 found_so="$additional_libdir/lib$name.$shlibext"
7222 if test -f "$additional_libdir/lib$name.la"; then
7223 found_la="$additional_libdir/lib$name.la"
7226 if test -f "$additional_libdir/lib$name.$libext"; then
7227 found_dir="$additional_libdir"
7228 found_a="$additional_libdir/lib$name.$libext"
7229 if test -f "$additional_libdir/lib$name.la"; then
7230 found_la="$additional_libdir/lib$name.la"
7235 if test "X$found_dir" = "X"; then
7236 for x in $LDFLAGS $LTLIBINTL; do
7238 acl_save_prefix="$prefix"
7239 prefix="$acl_final_prefix"
7240 acl_save_exec_prefix="$exec_prefix"
7241 exec_prefix="$acl_final_exec_prefix"
7243 exec_prefix="$acl_save_exec_prefix"
7244 prefix="$acl_save_prefix"
7248 dir=`echo "X$x" | sed -e 's/^X-L//'`
7249 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7251 found_so="$dir/lib$name.$shlibext"
7252 if test -f "$dir/lib$name.la"; then
7253 found_la="$dir/lib$name.la"
7256 if test -f "$dir/lib$name.$libext"; then
7258 found_a="$dir/lib$name.$libext"
7259 if test -f "$dir/lib$name.la"; then
7260 found_la="$dir/lib$name.la"
7266 if test "X$found_dir" != "X"; then
7271 if test "X$found_dir" != "X"; then
7272 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7273 if test "X$found_so" != "X"; then
7274 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7275 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7278 for x in $ltrpathdirs; do
7279 if test "X$x" = "X$found_dir"; then
7284 if test -z "$haveit"; then
7285 ltrpathdirs="$ltrpathdirs $found_dir"
7287 if test "$hardcode_direct" = yes; then
7288 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7290 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7293 for x in $rpathdirs; do
7294 if test "X$x" = "X$found_dir"; then
7299 if test -z "$haveit"; then
7300 rpathdirs="$rpathdirs $found_dir"
7304 for x in $LDFLAGS $LIBINTL; do
7306 acl_save_prefix="$prefix"
7307 prefix="$acl_final_prefix"
7308 acl_save_exec_prefix="$exec_prefix"
7309 exec_prefix="$acl_final_exec_prefix"
7311 exec_prefix="$acl_save_exec_prefix"
7312 prefix="$acl_save_prefix"
7314 if test "X$x" = "X-L$found_dir"; then
7319 if test -z "$haveit"; then
7320 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7322 if test "$hardcode_minus_L" != no; then
7323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7325 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7331 if test "X$found_a" != "X"; then
7332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7334 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7337 additional_includedir=
7338 case "$found_dir" in
7340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7341 additional_includedir="$basedir/include"
7344 if test "X$additional_includedir" != "X"; then
7345 if test "X$additional_includedir" != "X/usr/include"; then
7347 if test "X$additional_includedir" = "X/usr/local/include"; then
7348 if test -n "$GCC"; then
7350 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7354 if test -z "$haveit"; then
7355 for x in $CPPFLAGS $INCINTL; do
7357 acl_save_prefix="$prefix"
7358 prefix="$acl_final_prefix"
7359 acl_save_exec_prefix="$exec_prefix"
7360 exec_prefix="$acl_final_exec_prefix"
7362 exec_prefix="$acl_save_exec_prefix"
7363 prefix="$acl_save_prefix"
7365 if test "X$x" = "X-I$additional_includedir"; then
7370 if test -z "$haveit"; then
7371 if test -d "$additional_includedir"; then
7372 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7378 if test -n "$found_la"; then
7379 save_libdir="$libdir"
7381 */* | *\\*) . "$found_la" ;;
7382 *) . "./$found_la" ;;
7384 libdir="$save_libdir"
7385 for dep in $dependency_libs; do
7388 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7389 if test "X$additional_libdir" != "X/usr/lib"; then
7391 if test "X$additional_libdir" = "X/usr/local/lib"; then
7392 if test -n "$GCC"; then
7394 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7398 if test -z "$haveit"; then
7400 for x in $LDFLAGS $LIBINTL; do
7402 acl_save_prefix="$prefix"
7403 prefix="$acl_final_prefix"
7404 acl_save_exec_prefix="$exec_prefix"
7405 exec_prefix="$acl_final_exec_prefix"
7407 exec_prefix="$acl_save_exec_prefix"
7408 prefix="$acl_save_prefix"
7410 if test "X$x" = "X-L$additional_libdir"; then
7415 if test -z "$haveit"; then
7416 if test -d "$additional_libdir"; then
7417 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7421 for x in $LDFLAGS $LTLIBINTL; do
7423 acl_save_prefix="$prefix"
7424 prefix="$acl_final_prefix"
7425 acl_save_exec_prefix="$exec_prefix"
7426 exec_prefix="$acl_final_exec_prefix"
7428 exec_prefix="$acl_save_exec_prefix"
7429 prefix="$acl_save_prefix"
7431 if test "X$x" = "X-L$additional_libdir"; then
7436 if test -z "$haveit"; then
7437 if test -d "$additional_libdir"; then
7438 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7445 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7446 if test "$enable_rpath" != no; then
7448 for x in $rpathdirs; do
7449 if test "X$x" = "X$dir"; then
7454 if test -z "$haveit"; then
7455 rpathdirs="$rpathdirs $dir"
7458 for x in $ltrpathdirs; do
7459 if test "X$x" = "X$dir"; then
7464 if test -z "$haveit"; then
7465 ltrpathdirs="$ltrpathdirs $dir"
7470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7476 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7477 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7483 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7484 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7490 if test "X$rpathdirs" != "X"; then
7491 if test -n "$hardcode_libdir_separator"; then
7493 for found_dir in $rpathdirs; do
7494 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7496 acl_save_libdir="$libdir"
7498 eval flag=\"$hardcode_libdir_flag_spec\"
7499 libdir="$acl_save_libdir"
7500 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7502 for found_dir in $rpathdirs; do
7503 acl_save_libdir="$libdir"
7505 eval flag=\"$hardcode_libdir_flag_spec\"
7506 libdir="$acl_save_libdir"
7507 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7511 if test "X$ltrpathdirs" != "X"; then
7512 for found_dir in $ltrpathdirs; do
7513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7517 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7518 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7519 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 gt_save_CPPFLAGS="$CPPFLAGS"
7523 CPPFLAGS="$CPPFLAGS $INCINTL"
7524 gt_save_LIBS="$LIBS"
7525 LIBS="$LIBS $LIBINTL"
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 #include <libintl.h>
7533 extern int _nl_msg_cat_cntr;
7538 const char *_nl_expand_alias (const char *);
7542 bindtextdomain ("", "");
7543 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7563 { (case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_try") 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; } &&
7572 { ac_try='test -s conftest$ac_exeext'
7573 { (case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 gt_cv_func_gnugettext1_libintl=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 gt_cv_func_gnugettext1_libintl=no
7590 rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7593 LIBS="$LIBS $LIBICONV"
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <libintl.h>
7601 extern int _nl_msg_cat_cntr;
7606 const char *_nl_expand_alias (const char *);
7610 bindtextdomain ("", "");
7611 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (ac_try="$ac_link"
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_link") 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7631 { (case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_try") 2>&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_try") 2>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 LIBINTL="$LIBINTL $LIBICONV"
7651 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7652 gt_cv_func_gnugettext1_libintl=yes
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7661 rm -f core conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7664 CPPFLAGS="$gt_save_CPPFLAGS"
7665 LIBS="$gt_save_LIBS"
7667 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7668 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7671 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7672 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7673 && test "$PACKAGE" != gettext-runtime \
7674 && test "$PACKAGE" != gettext-tools; }; then
7675 gt_use_preinstalled_gnugettext=yes
7684 if test -n "$INTL_MACOSX_LIBS"; then
7685 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7686 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7687 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7688 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7692 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7693 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define ENABLE_NLS 1
7704 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7705 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7706 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7707 echo "${ECHO_T}$USE_NLS" >&6; }
7708 if test "$USE_NLS" = "yes"; then
7709 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7710 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7711 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7712 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7713 gt_source="external libintl"
7718 gt_source="included intl directory"
7720 { echo "$as_me:$LINENO: result: $gt_source" >&5
7721 echo "${ECHO_T}$gt_source" >&6; }
7724 if test "$USE_NLS" = "yes"; then
7726 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7727 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7728 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7729 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7730 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7731 echo "${ECHO_T}$LIBINTL" >&6; }
7733 for element in $INCINTL; do
7735 for x in $CPPFLAGS; do
7737 acl_save_prefix="$prefix"
7738 prefix="$acl_final_prefix"
7739 acl_save_exec_prefix="$exec_prefix"
7740 exec_prefix="$acl_final_exec_prefix"
7742 exec_prefix="$acl_save_exec_prefix"
7743 prefix="$acl_save_prefix"
7745 if test "X$x" = "X$element"; then
7750 if test -z "$haveit"; then
7751 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_GETTEXT 1
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_DCGETTEXT 1
7781 if test x${prefix} = xNONE ; then
7782 if test `eval echo ${datadir}` = NONE/share ; then
7787 # ------------------------------------------------------------------
7788 # If the user has not set --prefix, we set our default to nothing.
7789 # In this case, if the user has not set --sysconfdir, we set it
7790 # to the package default of /etc/bacula. If either --prefix or
7791 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7792 # ------------------------------------------------------------------
7793 if test x${prefix} = xNONE ; then
7794 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7795 sysconfdir=/etc/bacula
7799 sysconfdir=`eval echo ${sysconfdir}`
7800 datadir=`eval echo ${datadir}`
7801 localedir=`eval echo ${datadir}/locale`
7802 cat >>confdefs.h <<_ACEOF
7803 #define LOCALEDIR "$localedir"
7806 cat >>confdefs.h <<_ACEOF
7807 #define SYSCONFDIR "$sysconfdir"
7811 # -------------------------------------------------------------------------
7812 # If the user has not set --exec-prefix, we default to ${prefix}
7813 # -------------------------------------------------------------------------
7814 if test x${exec_prefix} = xNONE ; then
7815 exec_prefix=${prefix}
7818 # ------------------------------------------------------------------
7819 # If the user has not set --sbindir, we set our default as /sbin
7820 # ------------------------------------------------------------------
7821 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7822 sbindir=${exec_prefix}/sbin
7824 sbindir=`eval echo ${sbindir}`
7826 # -------------------------------------------------------------------------
7827 # If the user has not set --mandir, we default to /usr/share/man
7828 # -------------------------------------------------------------------------
7829 if test x$mandir = x'${prefix}/man' ; then
7830 mandir=/usr/share/man
7834 # ------------------------------------------------------------------
7835 # All list of languages for which a translation exist. Each
7836 # language is separated by a space.
7837 # ------------------------------------------------------------------
7840 for ac_prog in msgfmt
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_MSGFMT+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 MSGFMT=$ac_cv_path_MSGFMT
7873 if test -n "$MSGFMT"; then
7874 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7875 echo "${ECHO_T}$MSGFMT" >&6; }
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7882 test -n "$MSGFMT" && break
7884 test -n "$MSGFMT" || MSGFMT="no"
7886 if test "$MSGFMT" = "no"
7888 echo 'msgfmt program not found, disabling NLS !'
7890 USE_INCLUDED_LIBINTL=no
7893 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7894 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7895 if test "${ac_cv_gnu_library_2+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7905 #include <features.h>
7906 #ifdef __GNU_LIBRARY__
7907 #if (__GLIBC__ >= 2)
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7915 ac_cv_gnu_library_2=yes
7917 ac_cv_gnu_library_2=no
7924 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7925 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7927 GLIBC2="$ac_cv_gnu_library_2"
7931 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7932 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7933 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_check_lib_save_LIBS=$LIBS
7937 LIBS="-lcposix $LIBS"
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7945 /* Override any GCC internal prototype to avoid an error.
7946 Use char because int might match the return type of a GCC
7947 builtin and then its argument prototype would still apply. */
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (ac_try="$ac_link"
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_link") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_lib_cposix_strerror=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 ac_cv_lib_cposix_strerror=no
8002 rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 LIBS=$ac_check_lib_save_LIBS
8006 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8007 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8008 if test $ac_cv_lib_cposix_strerror = yes; then
8009 LIBS="$LIBS -lcposix"
8014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8016 if test "${ac_cv_header_stdc+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest.$ac_objext'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_cv_header_stdc=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 ac_cv_header_stdc=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 if test $ac_cv_header_stdc = yes; then
8083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094 $EGREP "memchr" >/dev/null 2>&1; then
8097 ac_cv_header_stdc=no
8103 if test $ac_cv_header_stdc = yes; then
8104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "free" >/dev/null 2>&1; then
8118 ac_cv_header_stdc=no
8124 if test $ac_cv_header_stdc = yes; then
8125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8126 if test "$cross_compiling" = yes; then
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 # define ISLOWER(c) \
8142 (('a' <= (c) && (c) <= 'i') \
8143 || ('j' <= (c) && (c) <= 'r') \
8144 || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 for (i = 0; i < 256; i++)
8154 if (XOR (islower (i), ISLOWER (i))
8155 || toupper (i) != TOUPPER (i))
8160 rm -f conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_link") 2>&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8182 echo "$as_me: program exited with status $ac_status" >&5
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_header_stdc=no
8189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8197 if test $ac_cv_header_stdc = yes; then
8199 cat >>confdefs.h <<\_ACEOF
8200 #define STDC_HEADERS 1
8205 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8207 if test "${ac_cv_c_const+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8220 /* FIXME: Include the comments suggested by Paul. */
8222 /* Ultrix mips cc rejects this. */
8223 typedef int charset[2];
8225 /* SunOS 4.1.1 cc rejects this. */
8226 char const *const *ccp;
8228 /* NEC SVR4.0.2 mips cc rejects this. */
8229 struct point {int x, y;};
8230 static struct point const zero = {0,0};
8231 /* AIX XL C 1.02.0.0 rejects this.
8232 It does not let you subtract one const X* pointer from another in
8233 an arm of an if-expression whose if-part is not a constant
8235 const char *g = "string";
8236 ccp = &g + (g ? g-g : 0);
8237 /* HPUX 7.0 cc rejects these. */
8240 ccp = (char const *const *) p;
8241 { /* SCO 3.2v4 cc rejects this. */
8243 char const *s = 0 ? (char *) 0 : (char const *) 0;
8248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8250 const int *foo = &x[0];
8253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254 typedef const int *iptr;
8258 { /* AIX XL C 1.02.0.0 rejects this saying
8259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260 struct s { int j; const int *ap[3]; };
8261 struct s *b; b->j = 5;
8263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8267 return !x[0] && !zero.x;
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8319 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8320 if test $ac_cv_c_const = no; then
8322 cat >>confdefs.h <<\_ACEOF
8329 { echo "$as_me:$LINENO: checking for signed" >&5
8330 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8331 if test "${bh_cv_c_signed+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8394 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8395 if test $bh_cv_c_signed = no; then
8397 cat >>confdefs.h <<\_ACEOF
8403 { echo "$as_me:$LINENO: checking for inline" >&5
8404 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8405 if test "${ac_cv_c_inline+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 for ac_kw in inline __inline__ __inline; do
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8418 static $ac_kw foo_t static_foo () {return 0; }
8419 $ac_kw foo_t foo () {return 0; }
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_c_inline=$ac_kw
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 test "$ac_cv_c_inline" != no && break
8470 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8471 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8474 case $ac_cv_c_inline in
8477 case $ac_cv_c_inline in
8479 *) ac_val=$ac_cv_c_inline;;
8481 cat >>confdefs.h <<_ACEOF
8483 #define inline $ac_val
8489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8499 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8500 inttypes.h stdint.h unistd.h
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8516 #include <$ac_header>
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533 { (case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_try") 2>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 eval "$as_ac_Header=yes"
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 eval "$as_ac_Header=no"
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563 { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8566 cat >>confdefs.h <<_ACEOF
8567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 { echo "$as_me:$LINENO: checking for off_t" >&5
8576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8577 if test "${ac_cv_type_off_t+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef off_t ac__type_new_;
8591 if ((ac__type_new_ *) 0)
8593 if (sizeof (ac__type_new_))
8599 rm -f conftest.$ac_objext
8600 if { (ac_try="$ac_compile"
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_compile") 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_try") 2>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_try") 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_type_off_t=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8644 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8645 if test $ac_cv_type_off_t = yes; then
8649 cat >>confdefs.h <<_ACEOF
8650 #define off_t long int
8655 { echo "$as_me:$LINENO: checking for size_t" >&5
8656 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8657 if test "${ac_cv_type_size_t+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 typedef size_t ac__type_new_;
8671 if ((ac__type_new_ *) 0)
8673 if (sizeof (ac__type_new_))
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_type_size_t=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_cv_type_size_t=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8724 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8725 if test $ac_cv_type_size_t = yes; then
8729 cat >>confdefs.h <<_ACEOF
8730 #define size_t unsigned int
8736 { echo "$as_me:$LINENO: checking for long long" >&5
8737 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8738 if test "${ac_cv_type_long_long+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 long long ll = 1LL; int i = 63;
8751 long long llmax = (long long) -1;
8752 return ll << i | ll >> i | llmax / ll | llmax % ll;
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_type_long_long=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_cv_type_long_long=no
8799 rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8802 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8803 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8804 if test $ac_cv_type_long_long = yes; then
8806 cat >>confdefs.h <<\_ACEOF
8807 #define HAVE_LONG_LONG 1
8813 { echo "$as_me:$LINENO: checking for long double" >&5
8814 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8815 if test "${gt_cv_c_long_double+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 if test "$GCC" = yes; then
8819 gt_cv_c_long_double=yes
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8829 long double foo = 0.0;
8830 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8831 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_try") 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 gt_cv_c_long_double=yes
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 gt_cv_c_long_double=no
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8887 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8888 if test $gt_cv_c_long_double = yes; then
8890 cat >>confdefs.h <<\_ACEOF
8891 #define HAVE_LONG_DOUBLE 1
8897 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8898 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8899 if test "${gt_cv_c_wchar_t+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 wchar_t foo = (wchar_t)'\0';
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_compile") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8963 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8964 if test $gt_cv_c_wchar_t = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define HAVE_WCHAR_T 1
8973 { echo "$as_me:$LINENO: checking for wint_t" >&5
8974 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8975 if test "${gt_cv_c_wint_t+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 wint_t foo = (wchar_t)'\0';
8994 rm -f conftest.$ac_objext
8995 if { (ac_try="$ac_compile"
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_compile") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9009 { (case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_try") 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_try") 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9039 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9040 if test $gt_cv_c_wint_t = yes; then
9042 cat >>confdefs.h <<\_ACEOF
9043 #define HAVE_WINT_T 1
9049 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9050 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9051 if test "${gl_cv_header_inttypes_h+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 #include <sys/types.h>
9061 #include <inttypes.h>
9065 uintmax_t i = (uintmax_t) -1;
9070 rm -f conftest.$ac_objext
9071 if { (ac_try="$ac_compile"
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_compile") 2>conftest.er1
9079 grep -v '^ *+' conftest.er1 >conftest.err
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9085 { (case "(($ac_try" in
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_try") 2>&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest.$ac_objext'
9095 { (case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_try") 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 gl_cv_header_inttypes_h=yes
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 gl_cv_header_inttypes_h=no
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9115 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9116 if test $gl_cv_header_inttypes_h = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9125 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9126 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9127 if test "${gl_cv_header_stdint_h+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 cat >conftest.$ac_ext <<_ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136 #include <sys/types.h>
9141 uintmax_t i = (uintmax_t) -1;
9146 rm -f conftest.$ac_objext
9147 if { (ac_try="$ac_compile"
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_compile") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 gl_cv_header_stdint_h=yes
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 gl_cv_header_stdint_h=no
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9191 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9192 if test $gl_cv_header_stdint_h = yes; then
9194 cat >>confdefs.h <<_ACEOF
9195 #define HAVE_STDINT_H_WITH_UINTMAX 1
9203 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9204 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9205 if test "${gt_cv_c_intmax_t+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 cat >conftest.$ac_ext <<_ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9217 #if HAVE_STDINT_H_WITH_UINTMAX
9220 #if HAVE_INTTYPES_H_WITH_UINTMAX
9221 #include <inttypes.h>
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9247 { (case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_try") 2>&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (case "(($ac_try" in
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_try") 2>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 gt_cv_c_intmax_t=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9277 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9278 if test $gt_cv_c_intmax_t = yes; then
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_INTMAX_T 1
9288 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9289 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9290 if test "${gt_cv_func_printf_posix+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 if test "$cross_compiling" = yes; then
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9309 $EGREP "notposix" >/dev/null 2>&1; then
9310 gt_cv_func_printf_posix="guessing no"
9312 gt_cv_func_printf_posix="guessing yes"
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9327 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9328 dollar expansion (possibly an autoconf bug). */
9329 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9330 static char buf[100];
9333 sprintf (buf, format, 33, 55);
9334 return (strcmp (buf, "55 33") != 0);
9337 rm -f conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 gt_cv_func_printf_posix=yes
9359 echo "$as_me: program exited with status $ac_status" >&5
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9364 gt_cv_func_printf_posix=no
9366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9373 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9374 case $gt_cv_func_printf_posix in
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_POSIX_PRINTF 1
9384 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9385 # for constant arguments. Useless!
9386 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9387 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9388 if test "${ac_cv_working_alloca_h+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9401 char *p = (char *) alloca (2 * sizeof (int));
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (ac_try="$ac_link"
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_link") 2>conftest.er1
9416 grep -v '^ *+' conftest.er1 >conftest.err
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9422 { (case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_try") 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; } &&
9431 { ac_try='test -s conftest$ac_exeext'
9432 { (case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_try") 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_working_alloca_h=yes
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_cv_working_alloca_h=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9452 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9453 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9454 if test $ac_cv_working_alloca_h = yes; then
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_ALLOCA_H 1
9462 { echo "$as_me:$LINENO: checking for alloca" >&5
9463 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9464 if test "${ac_cv_func_alloca_works+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 cat >conftest.$ac_ext <<_ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9474 # define alloca __builtin_alloca
9477 # include <malloc.h>
9478 # define alloca _alloca
9481 # include <alloca.h>
9486 # ifndef alloca /* predefined by HP cc +Olibcalls */
9497 char *p = (char *) alloca (1);
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9512 grep -v '^ *+' conftest.er1 >conftest.err
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9518 { (case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_try") 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_try") 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_func_alloca_works=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_func_alloca_works=no
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9548 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9549 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9551 if test $ac_cv_func_alloca_works = yes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_ALLOCA 1
9558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9559 # that cause trouble. Some versions do not even contain alloca or
9560 # contain a buggy version. If you still want to use their alloca,
9561 # use ar to extract alloca.o from them instead of compiling alloca.c.
9563 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9565 cat >>confdefs.h <<\_ACEOF
9570 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9571 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9572 if test "${ac_cv_os_cray+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #if defined CRAY && ! defined CRAY2
9588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9589 $EGREP "webecray" >/dev/null 2>&1; then
9597 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9598 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9599 if test $ac_cv_os_cray = yes; then
9600 for ac_func in _getb67 GETB67 getb67; do
9601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615 #define $ac_func innocuous_$ac_func
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char $ac_func (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9623 # include <limits.h>
9625 # include <assert.h>
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined __stub_$ac_func || defined __stub___$ac_func
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 eval "$as_ac_var=yes"
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 eval "$as_ac_var=no"
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9697 ac_res=`eval echo '${'$as_ac_var'}'`
9698 { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9700 if test `eval echo '${'$as_ac_var'}'` = yes; then
9702 cat >>confdefs.h <<_ACEOF
9703 #define CRAY_STACKSEG_END $ac_func
9712 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9713 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9714 if test "${ac_cv_c_stack_direction+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 if test "$cross_compiling" = yes; then
9718 ac_cv_c_stack_direction=0
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 $ac_includes_default
9728 find_stack_direction ()
9730 static char *addr = 0;
9735 return find_stack_direction ();
9738 return (&dummy > addr) ? 1 : -1;
9744 return find_stack_direction () < 0;
9747 rm -f conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_c_stack_direction=1
9769 echo "$as_me: program exited with status $ac_status" >&5
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_c_stack_direction=-1
9776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9782 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9784 cat >>confdefs.h <<_ACEOF
9785 #define STACK_DIRECTION $ac_cv_c_stack_direction
9793 for ac_header in stdlib.h unistd.h
9795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_res=`eval echo '${'$as_ac_Header'}'`
9803 { echo "$as_me:$LINENO: result: $ac_res" >&5
9804 echo "${ECHO_T}$ac_res" >&6; }
9806 # Is the header compilable?
9807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 #include <$ac_header>
9818 rm -f conftest.$ac_objext
9819 if { (ac_try="$ac_compile"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_compile") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_header_compiler=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6; }
9864 # Is the header present?
9865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <$ac_header>
9875 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null; then
9888 if test -s conftest.err; then
9889 ac_cpp_err=$ac_c_preproc_warn_flag
9890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9897 if test -z "$ac_cpp_err"; then
9898 ac_header_preproc=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_header_preproc=no
9906 rm -f conftest.err conftest.$ac_ext
9907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908 echo "${ECHO_T}$ac_header_preproc" >&6; }
9910 # So? What about this header?
9911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917 ac_header_preproc=yes
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 eval "$as_ac_Header=\$ac_header_preproc"
9942 ac_res=`eval echo '${'$as_ac_Header'}'`
9943 { echo "$as_me:$LINENO: result: $ac_res" >&5
9944 echo "${ECHO_T}$ac_res" >&6; }
9947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9948 cat >>confdefs.h <<_ACEOF
9949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9957 for ac_func in getpagesize
9959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9973 #define $ac_func innocuous_$ac_func
9975 /* System header to define __stub macros and hopefully few prototypes,
9976 which can conflict with char $ac_func (); below.
9977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9978 <limits.h> exists even on freestanding compilers. */
9981 # include <limits.h>
9983 # include <assert.h>
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined __stub_$ac_func || defined __stub___$ac_func
10005 return $ac_func ();
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_link") 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 eval "$as_ac_var=yes"
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 eval "$as_ac_var=no"
10052 rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10055 ac_res=`eval echo '${'$as_ac_var'}'`
10056 { echo "$as_me:$LINENO: result: $ac_res" >&5
10057 echo "${ECHO_T}$ac_res" >&6; }
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10066 { echo "$as_me:$LINENO: checking for working mmap" >&5
10067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 if test "$cross_compiling" = yes; then
10072 ac_cv_func_mmap_fixed_mapped=no
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 /* malloc might have been renamed as rpl_malloc. */
10084 /* Thanks to Mike Haertel and Jim Avera for this test.
10085 Here is a matrix of mmap possibilities:
10086 mmap private not fixed
10087 mmap private fixed at somewhere currently unmapped
10088 mmap private fixed at somewhere already mapped
10089 mmap shared not fixed
10090 mmap shared fixed at somewhere currently unmapped
10091 mmap shared fixed at somewhere already mapped
10092 For private mappings, we should verify that changes cannot be read()
10093 back from the file, nor mmap's back from the file at a different
10094 address. (There have been systems where private was not correctly
10095 implemented like the infamous i386 svr4.0, and systems where the
10096 VM page cache was not coherent with the file system buffer cache
10097 like early versions of FreeBSD and possibly contemporary NetBSD.)
10098 For shared mappings, we should conversely verify that changes get
10099 propagated back to all the places they're supposed to be.
10101 Grep wants private fixed already mapped.
10102 The main things grep needs to know about mmap are:
10103 * does it exist and is it safe to write into the mmap'd area
10104 * how to use it (BSD variants) */
10107 #include <sys/mman.h>
10109 #if !STDC_HEADERS && !HAVE_STDLIB_H
10113 /* This mess was copied from the GNU getpagesize.h. */
10114 #if !HAVE_GETPAGESIZE
10115 /* Assume that all systems that can run configure have sys/param.h. */
10116 # if !HAVE_SYS_PARAM_H
10117 # define HAVE_SYS_PARAM_H 1
10120 # ifdef _SC_PAGESIZE
10121 # define getpagesize() sysconf(_SC_PAGESIZE)
10122 # else /* no _SC_PAGESIZE */
10123 # if HAVE_SYS_PARAM_H
10124 # include <sys/param.h>
10125 # ifdef EXEC_PAGESIZE
10126 # define getpagesize() EXEC_PAGESIZE
10127 # else /* no EXEC_PAGESIZE */
10129 # define getpagesize() NBPG * CLSIZE
10132 # endif /* no CLSIZE */
10133 # else /* no NBPG */
10135 # define getpagesize() NBPC
10136 # else /* no NBPC */
10138 # define getpagesize() PAGESIZE
10139 # endif /* PAGESIZE */
10140 # endif /* no NBPC */
10141 # endif /* no NBPG */
10142 # endif /* no EXEC_PAGESIZE */
10143 # else /* no HAVE_SYS_PARAM_H */
10144 # define getpagesize() 8192 /* punt totally */
10145 # endif /* no HAVE_SYS_PARAM_H */
10146 # endif /* no _SC_PAGESIZE */
10148 #endif /* no HAVE_GETPAGESIZE */
10153 char *data, *data2, *data3;
10157 pagesize = getpagesize ();
10159 /* First, make a file with some known garbage in it. */
10160 data = (char *) malloc (pagesize);
10163 for (i = 0; i < pagesize; ++i)
10164 *(data + i) = rand ();
10166 fd = creat ("conftest.mmap", 0600);
10169 if (write (fd, data, pagesize) != pagesize)
10173 /* Next, try to mmap the file at a fixed address which already has
10174 something else allocated at it. If we can, also make sure that
10175 we see the same garbage. */
10176 fd = open ("conftest.mmap", O_RDWR);
10179 data2 = (char *) malloc (2 * pagesize);
10182 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10186 for (i = 0; i < pagesize; ++i)
10187 if (*(data + i) != *(data2 + i))
10190 /* Finally, make sure that changes to the mapped area do not
10191 percolate back to the file as seen by read(). (This is a bug on
10192 some variants of i386 svr4.0.) */
10193 for (i = 0; i < pagesize; ++i)
10194 *(data2 + i) = *(data2 + i) + 1;
10195 data3 = (char *) malloc (pagesize);
10198 if (read (fd, data3, pagesize) != pagesize)
10200 for (i = 0; i < pagesize; ++i)
10201 if (*(data + i) != *(data3 + i))
10207 rm -f conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_func_mmap_fixed_mapped=yes
10229 echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ( exit $ac_status )
10234 ac_cv_func_mmap_fixed_mapped=no
10236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10242 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10243 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_MMAP 1
10250 rm -f conftest.mmap
10253 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10254 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10255 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10265 #include <features.h>
10266 #ifdef __GNU_LIBRARY__
10267 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10274 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10275 ac_cv_gnu_library_2_1=yes
10277 ac_cv_gnu_library_2_1=no
10284 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10285 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10287 GLIBC21="$ac_cv_gnu_library_2_1"
10292 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10293 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10294 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test "$cross_compiling" = yes; then
10300 # Guess based on the CPU.
10301 case "$host_cpu" in
10302 alpha* | i3456786 | m68k | s390*)
10303 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10305 gt_cv_int_divbyzero_sigfpe="guessing no";;
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10316 #include <stdlib.h>
10317 #include <signal.h>
10321 sigfpe_handler (int sig)
10323 sigfpe_handler (sig) int sig;
10326 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10327 exit (sig != SIGFPE);
10337 signal (SIGFPE, sigfpe_handler);
10338 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10339 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10340 signal (SIGTRAP, sigfpe_handler);
10342 /* Linux/SPARC yields signal SIGILL. */
10343 #if defined (__sparc__) && defined (__linux__)
10344 signal (SIGILL, sigfpe_handler);
10353 rm -f conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 gt_cv_int_divbyzero_sigfpe=yes
10375 echo "$as_me: program exited with status $ac_status" >&5
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ( exit $ac_status )
10380 gt_cv_int_divbyzero_sigfpe=no
10382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10388 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10389 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10390 case "$gt_cv_int_divbyzero_sigfpe" in
10395 cat >>confdefs.h <<_ACEOF
10396 #define INTDIV0_RAISES_SIGFPE $value
10401 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10402 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10403 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 unsigned long long ull = 1ULL; int i = 63;
10416 unsigned long long ullmax = (unsigned long long) -1;
10417 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_link") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10437 { (case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_try") 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_try") 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_type_unsigned_long_long=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_cv_type_unsigned_long_long=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10467 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10468 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10469 if test $ac_cv_type_unsigned_long_long = yes; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_UNSIGNED_LONG_LONG 1
10480 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10482 test $ac_cv_type_unsigned_long_long = yes \
10483 && ac_type='unsigned long long' \
10484 || ac_type='unsigned long'
10486 cat >>confdefs.h <<_ACEOF
10487 #define uintmax_t $ac_type
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_UINTMAX_T 1
10499 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10500 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10501 if test "${gt_cv_header_inttypes_h+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 #include <sys/types.h>
10512 #include <inttypes.h>
10521 rm -f conftest.$ac_objext
10522 if { (ac_try="$ac_compile"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_compile") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 gt_cv_header_inttypes_h=yes
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10560 gt_cv_header_inttypes_h=no
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10567 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10568 if test $gt_cv_header_inttypes_h = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_INTTYPES_H 1
10578 if test $gt_cv_header_inttypes_h = yes; then
10579 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10580 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10581 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #include <inttypes.h>
10604 rm -f conftest.$ac_objext
10605 if { (ac_try="$ac_compile"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_compile") 2>conftest.er1
10613 grep -v '^ *+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619 { (case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_try") 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_try") 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 gt_cv_inttypes_pri_broken=no
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 gt_cv_inttypes_pri_broken=yes
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10650 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10652 if test "$gt_cv_inttypes_pri_broken" = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define PRI_MACROS_BROKEN 1
10662 for ac_header in stdint.h
10664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 ac_res=`eval echo '${'$as_ac_Header'}'`
10672 { echo "$as_me:$LINENO: result: $ac_res" >&5
10673 echo "${ECHO_T}$ac_res" >&6; }
10675 # Is the header compilable?
10676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 #include <$ac_header>
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_header_compiler=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_header_compiler=no
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731 echo "${ECHO_T}$ac_header_compiler" >&6; }
10733 # Is the header present?
10734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <$ac_header>
10744 if { (ac_try="$ac_cpp conftest.$ac_ext"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } >/dev/null; then
10757 if test -s conftest.err; then
10758 ac_cpp_err=$ac_c_preproc_warn_flag
10759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10766 if test -z "$ac_cpp_err"; then
10767 ac_header_preproc=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_header_preproc=no
10775 rm -f conftest.err conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6; }
10779 # So? What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786 ac_header_preproc=yes
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 eval "$as_ac_Header=\$ac_header_preproc"
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812 { echo "$as_me:$LINENO: result: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10825 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10826 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10835 #include <limits.h>
10837 #include <stdint.h>
10844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10845 $EGREP "Found it" >/dev/null 2>&1; then
10850 if test -z "$result"; then
10851 if test "$cross_compiling" = yes; then
10852 # Depending upon the size, compute the lo and hi bounds.
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <stddef.h>
10863 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10870 rm -f conftest.$ac_objext
10871 if { (ac_try="$ac_compile"
10872 case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_compile") 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <stddef.h>
10916 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10923 rm -f conftest.$ac_objext
10924 if { (ac_try="$ac_compile"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_compile") 2>conftest.er1
10932 grep -v '^ *+' conftest.er1 >conftest.err
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10938 { (case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_try") 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest.$ac_objext'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_hi=$ac_mid; break
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_lo=`expr $ac_mid + 1`
10963 if test $ac_lo -le $ac_mid; then
10967 ac_mid=`expr 2 '*' $ac_mid + 1`
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <stddef.h>
10986 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <stddef.h>
11039 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_lo=$ac_mid; break
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_hi=`expr '(' $ac_mid ')' - 1`
11086 if test $ac_mid -le $ac_hi; then
11090 ac_mid=`expr 2 '*' $ac_mid`
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 # Binary search between lo and hi bounds.
11107 while test "x$ac_lo" != "x$ac_hi"; do
11108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <stddef.h>
11119 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11126 rm -f conftest.$ac_objext
11127 if { (ac_try="$ac_compile"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_compile") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest.$ac_objext'
11151 { (case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_try") 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_lo=`expr '(' $ac_mid ')' + 1`
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 ?*) res_hi=$ac_lo;;
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 #include <stddef.h>
11182 static long int longval () { return ~(size_t)0 / 10; }
11183 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11185 #include <stdlib.h>
11190 FILE *f = fopen ("conftest.val", "w");
11193 if ((~(size_t)0 / 10) < 0)
11195 long int i = longval ();
11196 if (i != (~(size_t)0 / 10))
11198 fprintf (f, "%ld\n", i);
11202 unsigned long int i = ulongval ();
11203 if (i != (~(size_t)0 / 10))
11205 fprintf (f, "%lu\n", i);
11207 return ferror (f) || fclose (f) != 0;
11213 rm -f conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_link") 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11224 { (case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_try") 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 res_hi=`cat conftest.val`
11235 echo "$as_me: program exited with status $ac_status" >&5
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ( exit $ac_status )
11242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11245 if test "$cross_compiling" = yes; then
11246 # Depending upon the size, compute the lo and hi bounds.
11247 cat >conftest.$ac_ext <<_ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 #include <stddef.h>
11257 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11264 rm -f conftest.$ac_objext
11265 if { (ac_try="$ac_compile"
11266 case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_compile") 2>conftest.er1
11273 grep -v '^ *+' conftest.er1 >conftest.err
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_try") 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <stddef.h>
11310 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_hi=$ac_mid; break
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_lo=`expr $ac_mid + 1`
11357 if test $ac_lo -le $ac_mid; then
11361 ac_mid=`expr 2 '*' $ac_mid + 1`
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <stddef.h>
11380 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11387 rm -f conftest.$ac_objext
11388 if { (ac_try="$ac_compile"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_compile") 2>conftest.er1
11396 grep -v '^ *+' conftest.er1 >conftest.err
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402 { (case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_try") 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_try") 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <stddef.h>
11433 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11455 { (case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_try") 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest.$ac_objext'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; }; then
11474 ac_lo=$ac_mid; break
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_hi=`expr '(' $ac_mid ')' - 1`
11480 if test $ac_mid -le $ac_hi; then
11484 ac_mid=`expr 2 '*' $ac_mid`
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 # Binary search between lo and hi bounds.
11501 while test "x$ac_lo" != "x$ac_hi"; do
11502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503 cat >conftest.$ac_ext <<_ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include <stddef.h>
11513 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_compile") 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_lo=`expr '(' $ac_mid ')' + 1`
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 ?*) res_lo=$ac_lo;;
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <stddef.h>
11576 static long int longval () { return ~(size_t)0 % 10; }
11577 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11579 #include <stdlib.h>
11584 FILE *f = fopen ("conftest.val", "w");
11587 if ((~(size_t)0 % 10) < 0)
11589 long int i = longval ();
11590 if (i != (~(size_t)0 % 10))
11592 fprintf (f, "%ld\n", i);
11596 unsigned long int i = ulongval ();
11597 if (i != (~(size_t)0 % 10))
11599 fprintf (f, "%lu\n", i);
11601 return ferror (f) || fclose (f) != 0;
11607 rm -f conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_link") 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 res_lo=`cat conftest.val`
11629 echo "$as_me: program exited with status $ac_status" >&5
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ( exit $ac_status )
11636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11639 if test "$cross_compiling" = yes; then
11640 # Depending upon the size, compute the lo and hi bounds.
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <stddef.h>
11651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11658 rm -f conftest.$ac_objext
11659 if { (ac_try="$ac_compile"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_compile") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 #include <stddef.h>
11704 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11726 { (case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_try") 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_hi=$ac_mid; break
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_lo=`expr $ac_mid + 1`
11751 if test $ac_lo -le $ac_mid; then
11755 ac_mid=`expr 2 '*' $ac_mid + 1`
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <stddef.h>
11774 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11781 rm -f conftest.$ac_objext
11782 if { (ac_try="$ac_compile"
11783 case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_compile") 2>conftest.er1
11790 grep -v '^ *+' conftest.er1 >conftest.err
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 #include <stddef.h>
11827 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11849 { (case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_try") 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_try") 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_lo=$ac_mid; break
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_hi=`expr '(' $ac_mid ')' - 1`
11874 if test $ac_mid -le $ac_hi; then
11878 ac_mid=`expr 2 '*' $ac_mid`
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 # Binary search between lo and hi bounds.
11895 while test "x$ac_lo" != "x$ac_hi"; do
11896 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <stddef.h>
11907 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; } &&
11938 { ac_try='test -s conftest.$ac_objext'
11939 { (case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_try") 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_lo=`expr '(' $ac_mid ')' + 1`
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 ?*) fits_in_uint=$ac_lo;;
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <stddef.h>
11970 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11971 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11973 #include <stdlib.h>
11978 FILE *f = fopen ("conftest.val", "w");
11981 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11983 long int i = longval ();
11984 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11986 fprintf (f, "%ld\n", i);
11990 unsigned long int i = ulongval ();
11991 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11993 fprintf (f, "%lu\n", i);
11995 return ferror (f) || fclose (f) != 0;
12001 rm -f conftest$ac_exeext
12002 if { (ac_try="$ac_link"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_link") 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 fits_in_uint=`cat conftest.val`
12023 echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ( exit $ac_status )
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12033 if test "$fits_in_uint" = 1; then
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <stddef.h>
12042 extern unsigned long foo;
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 if test -z "$result"; then
12097 if test "$fits_in_uint" = 1; then
12098 result="$res_hi$res_lo"U
12100 result="$res_hi$res_lo"UL
12103 result='~(size_t)0'
12106 { echo "$as_me:$LINENO: result: $result" >&5
12107 echo "${ECHO_T}$result" >&6; }
12108 if test "$result" != yes; then
12110 cat >>confdefs.h <<_ACEOF
12111 #define SIZE_MAX $result
12120 for ac_header in stdint.h
12122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 ac_res=`eval echo '${'$as_ac_Header'}'`
12130 { echo "$as_me:$LINENO: result: $ac_res" >&5
12131 echo "${ECHO_T}$ac_res" >&6; }
12133 # Is the header compilable?
12134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12136 cat >conftest.$ac_ext <<_ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <$ac_header>
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_compile") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12160 { (case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_try") 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_try") 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_header_compiler=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_header_compiler=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12189 echo "${ECHO_T}$ac_header_compiler" >&6; }
12191 # Is the header present?
12192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 #include <$ac_header>
12202 if { (ac_try="$ac_cpp conftest.$ac_ext"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } >/dev/null; then
12215 if test -s conftest.err; then
12216 ac_cpp_err=$ac_c_preproc_warn_flag
12217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224 if test -z "$ac_cpp_err"; then
12225 ac_header_preproc=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_header_preproc=no
12233 rm -f conftest.err conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12235 echo "${ECHO_T}$ac_header_preproc" >&6; }
12237 # So? What about this header?
12238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12244 ac_header_preproc=yes
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 eval "$as_ac_Header=\$ac_header_preproc"
12269 ac_res=`eval echo '${'$as_ac_Header'}'`
12270 { echo "$as_me:$LINENO: result: $ac_res" >&5
12271 echo "${ECHO_T}$ac_res" >&6; }
12274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12290 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12291 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12292 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 $ac_includes_default
12302 typedef ptrdiff_t ac__type_new_;
12306 if ((ac__type_new_ *) 0)
12308 if (sizeof (ac__type_new_))
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest.$ac_objext'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_type_ptrdiff_t=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_type_ptrdiff_t=no
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12359 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12360 if test $ac_cv_type_ptrdiff_t = yes; then
12364 cat >>confdefs.h <<\_ACEOF
12365 #define ptrdiff_t long
12381 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12382 stdlib.h string.h unistd.h sys/param.h
12384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_res=`eval echo '${'$as_ac_Header'}'`
12392 { echo "$as_me:$LINENO: result: $ac_res" >&5
12393 echo "${ECHO_T}$ac_res" >&6; }
12395 # Is the header compilable?
12396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12404 $ac_includes_default
12405 #include <$ac_header>
12407 rm -f conftest.$ac_objext
12408 if { (ac_try="$ac_compile"
12409 case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_compile") 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_header_compiler=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_header_compiler=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12451 echo "${ECHO_T}$ac_header_compiler" >&6; }
12453 # Is the header present?
12454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 #include <$ac_header>
12464 if { (ac_try="$ac_cpp conftest.$ac_ext"
12465 case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } >/dev/null; then
12477 if test -s conftest.err; then
12478 ac_cpp_err=$ac_c_preproc_warn_flag
12479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12486 if test -z "$ac_cpp_err"; then
12487 ac_header_preproc=yes
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_header_preproc=no
12495 rm -f conftest.err conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12497 echo "${ECHO_T}$ac_header_preproc" >&6; }
12499 # So? What about this header?
12500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12506 ac_header_preproc=yes
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 eval "$as_ac_Header=\$ac_header_preproc"
12531 ac_res=`eval echo '${'$as_ac_Header'}'`
12532 { echo "$as_me:$LINENO: result: $ac_res" >&5
12533 echo "${ECHO_T}$ac_res" >&6; }
12536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12537 cat >>confdefs.h <<_ACEOF
12538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12569 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12570 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12587 #define $ac_func innocuous_$ac_func
12589 /* System header to define __stub macros and hopefully few prototypes,
12590 which can conflict with char $ac_func (); below.
12591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12592 <limits.h> exists even on freestanding compilers. */
12595 # include <limits.h>
12597 # include <assert.h>
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined __stub_$ac_func || defined __stub___$ac_func
12619 return $ac_func ();
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 eval "$as_ac_var=yes"
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 eval "$as_ac_var=no"
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12669 ac_res=`eval echo '${'$as_ac_var'}'`
12670 { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12683 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12684 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12699 char *p = (char *) _snprintf;
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_have_decl__snprintf=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_have_decl__snprintf=no
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12751 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12752 if test $ac_cv_have_decl__snprintf = yes; then
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_DECL__SNPRINTF $gt_value
12764 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12765 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12766 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 cat >conftest.$ac_ext <<_ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12781 char *p = (char *) _snwprintf;
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_have_decl__snwprintf=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_cv_have_decl__snwprintf=no
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12833 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12834 if test $ac_cv_have_decl__snwprintf = yes; then
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_DECL__SNWPRINTF $gt_value
12847 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12848 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12849 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12863 #ifndef feof_unlocked
12864 char *p = (char *) feof_unlocked;
12871 rm -f conftest.$ac_objext
12872 if { (ac_try="$ac_compile"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_compile") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest.$ac_objext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_cv_have_decl_feof_unlocked=yes
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_cv_have_decl_feof_unlocked=no
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12916 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12917 if test $ac_cv_have_decl_feof_unlocked = yes; then
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12929 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12930 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12931 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12945 #ifndef fgets_unlocked
12946 char *p = (char *) fgets_unlocked;
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_compile") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_have_decl_fgets_unlocked=yes
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_cv_have_decl_fgets_unlocked=no
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12998 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12999 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13011 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13012 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13013 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13027 #ifndef getc_unlocked
13028 char *p = (char *) getc_unlocked;
13035 rm -f conftest.$ac_objext
13036 if { (ac_try="$ac_compile"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_compile") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest.$ac_objext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_have_decl_getc_unlocked=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_have_decl_getc_unlocked=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13080 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13081 if test $ac_cv_have_decl_getc_unlocked = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13093 case $gt_cv_func_printf_posix in
13094 *yes) HAVE_POSIX_PRINTF=1 ;;
13095 *) HAVE_POSIX_PRINTF=0 ;;
13098 if test "$ac_cv_func_asprintf" = yes; then
13104 if test "$ac_cv_func_snprintf" = yes; then
13110 if test "$ac_cv_func_wprintf" = yes; then
13122 am_save_CPPFLAGS="$CPPFLAGS"
13124 for element in $INCICONV; do
13126 for x in $CPPFLAGS; do
13128 acl_save_prefix="$prefix"
13129 prefix="$acl_final_prefix"
13130 acl_save_exec_prefix="$exec_prefix"
13131 exec_prefix="$acl_final_exec_prefix"
13133 exec_prefix="$acl_save_exec_prefix"
13134 prefix="$acl_save_prefix"
13136 if test "X$x" = "X$element"; then
13141 if test -z "$haveit"; then
13142 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13147 { echo "$as_me:$LINENO: checking for iconv" >&5
13148 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13149 if test "${am_cv_func_iconv+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 am_cv_func_iconv="no, consider installing GNU libiconv"
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #include <stdlib.h>
13166 iconv_t cd = iconv_open("","");
13167 iconv(cd,NULL,NULL,NULL,NULL);
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 am_cv_func_iconv=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 if test "$am_cv_func_iconv" != yes; then
13218 am_save_LIBS="$LIBS"
13219 LIBS="$LIBS $LIBICONV"
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 #include <stdlib.h>
13231 iconv_t cd = iconv_open("","");
13232 iconv(cd,NULL,NULL,NULL,NULL);
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_try") 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 am_cv_lib_iconv=yes
13273 am_cv_func_iconv=yes
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 LIBS="$am_save_LIBS"
13287 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13288 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13289 if test "$am_cv_func_iconv" = yes; then
13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_ICONV 1
13296 if test "$am_cv_lib_iconv" = yes; then
13297 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13298 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13299 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13300 echo "${ECHO_T}$LIBICONV" >&6; }
13302 CPPFLAGS="$am_save_CPPFLAGS"
13309 if test "$am_cv_func_iconv" = yes; then
13310 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13311 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13312 if test "${am_cv_proto_iconv+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 #include <stdlib.h>
13329 #if defined(__STDC__) || defined(__cplusplus)
13330 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compile") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 am_cv_proto_iconv_arg1=""
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 am_cv_proto_iconv_arg1="const"
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 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);"
13389 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13390 { echo "$as_me:$LINENO: result: ${ac_t:-
13391 }$am_cv_proto_iconv" >&5
13392 echo "${ECHO_T}${ac_t:-
13393 }$am_cv_proto_iconv" >&6; }
13395 cat >>confdefs.h <<_ACEOF
13396 #define ICONV_CONST $am_cv_proto_iconv_arg1
13402 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13403 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13404 if test "${am_cv_langinfo_codeset+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 #include <langinfo.h>
13417 char* cs = nl_langinfo(CODESET);
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 am_cv_langinfo_codeset=yes
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 am_cv_langinfo_codeset=no
13464 rm -f core conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13469 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13470 if test $am_cv_langinfo_codeset = yes; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_LANGINFO_CODESET 1
13478 if test $ac_cv_header_locale_h = yes; then
13480 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13481 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13482 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <locale.h>
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_link") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13515 { (case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_try") 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (case "(($ac_try" in
13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527 *) ac_try_echo=$ac_try;;
13529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13530 (eval "$ac_try") 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 gt_cv_val_LC_MESSAGES=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 gt_cv_val_LC_MESSAGES=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13546 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13547 if test $gt_cv_val_LC_MESSAGES = yes; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_LC_MESSAGES 1
13557 if test -n "$INTL_MACOSX_LIBS"; then
13558 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13561 for ac_prog in bison
13563 # Extract the first word of "$ac_prog", so it can be a program name with args.
13564 set dummy $ac_prog; ac_word=$2
13565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13567 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 if test -n "$INTLBISON"; then
13571 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13580 ac_cv_prog_INTLBISON="$ac_prog"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 INTLBISON=$ac_cv_prog_INTLBISON
13591 if test -n "$INTLBISON"; then
13592 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13593 echo "${ECHO_T}$INTLBISON" >&6; }
13595 { echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6; }
13600 test -n "$INTLBISON" && break
13603 if test -z "$INTLBISON"; then
13606 { echo "$as_me:$LINENO: checking version of bison" >&5
13607 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13608 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13609 case $ac_prog_version in
13610 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13611 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13612 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13613 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13615 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13616 echo "${ECHO_T}$ac_prog_version" >&6; }
13618 if test $ac_verc_fail = yes; then
13637 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13638 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13639 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 gt_save_CPPFLAGS="$CPPFLAGS"
13643 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13644 gt_save_LIBS="$LIBS"
13645 LIBS="$LIBS -framework CoreFoundation"
13646 cat >conftest.$ac_ext <<_ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 #include <CFPreferences.h>
13656 CFPreferencesCopyAppValue(NULL, NULL)
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_try") 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 gt_cv_func_CFPreferencesCopyAppValue=yes
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 gt_cv_func_CFPreferencesCopyAppValue=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 CPPFLAGS="$gt_save_CPPFLAGS"
13706 LIBS="$gt_save_LIBS"
13708 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13709 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13710 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13712 cat >>confdefs.h <<\_ACEOF
13713 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13717 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13718 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13719 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 gt_save_CPPFLAGS="$CPPFLAGS"
13723 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13724 gt_save_LIBS="$LIBS"
13725 LIBS="$LIBS -framework CoreFoundation"
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <CFLocale.h>
13736 CFLocaleCopyCurrent();
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_link") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest$ac_exeext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 gt_cv_func_CFLocaleCopyCurrent=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 gt_cv_func_CFLocaleCopyCurrent=no
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 CPPFLAGS="$gt_save_CPPFLAGS"
13786 LIBS="$gt_save_LIBS"
13788 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13789 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13790 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_CFLOCALECOPYCURRENT 1
13798 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13799 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13805 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13806 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13807 # Check whether --enable-nls was given.
13808 if test "${enable_nls+set}" = set; then
13809 enableval=$enable_nls; USE_NLS=$enableval
13814 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13815 echo "${ECHO_T}$USE_NLS" >&6; }
13820 BUILD_INCLUDED_LIBINTL=no
13821 USE_INCLUDED_LIBINTL=no
13827 if test "$USE_NLS" = "yes"; then
13828 gt_use_preinstalled_gnugettext=no
13830 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13831 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13833 # Check whether --with-included-gettext was given.
13834 if test "${with_included_gettext+set}" = set; then
13835 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13837 nls_cv_force_use_gnu_gettext=no
13840 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13841 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13843 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13844 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13851 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13852 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13853 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <libintl.h>
13863 extern int _nl_msg_cat_cntr;
13864 extern int *_nl_domain_bindings;
13868 bindtextdomain ("", "");
13869 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (ac_try="$ac_link"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_link") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest$ac_exeext'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 gt_cv_func_gnugettext1_libc=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 gt_cv_func_gnugettext1_libc=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13919 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13920 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13922 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13928 acl_save_prefix="$prefix"
13929 prefix="$acl_final_prefix"
13930 acl_save_exec_prefix="$exec_prefix"
13931 exec_prefix="$acl_final_exec_prefix"
13933 eval additional_includedir=\"$includedir\"
13934 eval additional_libdir=\"$libdir\"
13936 exec_prefix="$acl_save_exec_prefix"
13937 prefix="$acl_save_prefix"
13940 # Check whether --with-libintl-prefix was given.
13941 if test "${with_libintl_prefix+set}" = set; then
13942 withval=$with_libintl_prefix;
13943 if test "X$withval" = "Xno"; then
13946 if test "X$withval" = "X"; then
13948 acl_save_prefix="$prefix"
13949 prefix="$acl_final_prefix"
13950 acl_save_exec_prefix="$exec_prefix"
13951 exec_prefix="$acl_final_exec_prefix"
13953 eval additional_includedir=\"$includedir\"
13954 eval additional_libdir=\"$libdir\"
13956 exec_prefix="$acl_save_exec_prefix"
13957 prefix="$acl_save_prefix"
13960 additional_includedir="$withval/include"
13961 additional_libdir="$withval/lib"
13972 names_already_handled=
13973 names_next_round='intl '
13974 while test -n "$names_next_round"; do
13975 names_this_round="$names_next_round"
13977 for name in $names_this_round; do
13979 for n in $names_already_handled; do
13980 if test "$n" = "$name"; then
13981 already_handled=yes
13985 if test -z "$already_handled"; then
13986 names_already_handled="$names_already_handled $name"
13987 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13988 eval value=\"\$HAVE_LIB$uppername\"
13989 if test -n "$value"; then
13990 if test "$value" = yes; then
13991 eval value=\"\$LIB$uppername\"
13992 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13993 eval value=\"\$LTLIB$uppername\"
13994 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14003 if test $use_additional = yes; then
14004 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14005 found_dir="$additional_libdir"
14006 found_so="$additional_libdir/lib$name.$shlibext"
14007 if test -f "$additional_libdir/lib$name.la"; then
14008 found_la="$additional_libdir/lib$name.la"
14011 if test -f "$additional_libdir/lib$name.$libext"; then
14012 found_dir="$additional_libdir"
14013 found_a="$additional_libdir/lib$name.$libext"
14014 if test -f "$additional_libdir/lib$name.la"; then
14015 found_la="$additional_libdir/lib$name.la"
14020 if test "X$found_dir" = "X"; then
14021 for x in $LDFLAGS $LTLIBINTL; do
14023 acl_save_prefix="$prefix"
14024 prefix="$acl_final_prefix"
14025 acl_save_exec_prefix="$exec_prefix"
14026 exec_prefix="$acl_final_exec_prefix"
14028 exec_prefix="$acl_save_exec_prefix"
14029 prefix="$acl_save_prefix"
14033 dir=`echo "X$x" | sed -e 's/^X-L//'`
14034 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14036 found_so="$dir/lib$name.$shlibext"
14037 if test -f "$dir/lib$name.la"; then
14038 found_la="$dir/lib$name.la"
14041 if test -f "$dir/lib$name.$libext"; then
14043 found_a="$dir/lib$name.$libext"
14044 if test -f "$dir/lib$name.la"; then
14045 found_la="$dir/lib$name.la"
14051 if test "X$found_dir" != "X"; then
14056 if test "X$found_dir" != "X"; then
14057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14058 if test "X$found_so" != "X"; then
14059 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14063 for x in $ltrpathdirs; do
14064 if test "X$x" = "X$found_dir"; then
14069 if test -z "$haveit"; then
14070 ltrpathdirs="$ltrpathdirs $found_dir"
14072 if test "$hardcode_direct" = yes; then
14073 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14075 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14078 for x in $rpathdirs; do
14079 if test "X$x" = "X$found_dir"; then
14084 if test -z "$haveit"; then
14085 rpathdirs="$rpathdirs $found_dir"
14089 for x in $LDFLAGS $LIBINTL; do
14091 acl_save_prefix="$prefix"
14092 prefix="$acl_final_prefix"
14093 acl_save_exec_prefix="$exec_prefix"
14094 exec_prefix="$acl_final_exec_prefix"
14096 exec_prefix="$acl_save_exec_prefix"
14097 prefix="$acl_save_prefix"
14099 if test "X$x" = "X-L$found_dir"; then
14104 if test -z "$haveit"; then
14105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14107 if test "$hardcode_minus_L" != no; then
14108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14110 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14116 if test "X$found_a" != "X"; then
14117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14122 additional_includedir=
14123 case "$found_dir" in
14125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14126 additional_includedir="$basedir/include"
14129 if test "X$additional_includedir" != "X"; then
14130 if test "X$additional_includedir" != "X/usr/include"; then
14132 if test "X$additional_includedir" = "X/usr/local/include"; then
14133 if test -n "$GCC"; then
14135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14139 if test -z "$haveit"; then
14140 for x in $CPPFLAGS $INCINTL; do
14142 acl_save_prefix="$prefix"
14143 prefix="$acl_final_prefix"
14144 acl_save_exec_prefix="$exec_prefix"
14145 exec_prefix="$acl_final_exec_prefix"
14147 exec_prefix="$acl_save_exec_prefix"
14148 prefix="$acl_save_prefix"
14150 if test "X$x" = "X-I$additional_includedir"; then
14155 if test -z "$haveit"; then
14156 if test -d "$additional_includedir"; then
14157 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14163 if test -n "$found_la"; then
14164 save_libdir="$libdir"
14165 case "$found_la" in
14166 */* | *\\*) . "$found_la" ;;
14167 *) . "./$found_la" ;;
14169 libdir="$save_libdir"
14170 for dep in $dependency_libs; do
14173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14174 if test "X$additional_libdir" != "X/usr/lib"; then
14176 if test "X$additional_libdir" = "X/usr/local/lib"; then
14177 if test -n "$GCC"; then
14179 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14183 if test -z "$haveit"; then
14185 for x in $LDFLAGS $LIBINTL; do
14187 acl_save_prefix="$prefix"
14188 prefix="$acl_final_prefix"
14189 acl_save_exec_prefix="$exec_prefix"
14190 exec_prefix="$acl_final_exec_prefix"
14192 exec_prefix="$acl_save_exec_prefix"
14193 prefix="$acl_save_prefix"
14195 if test "X$x" = "X-L$additional_libdir"; then
14200 if test -z "$haveit"; then
14201 if test -d "$additional_libdir"; then
14202 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14206 for x in $LDFLAGS $LTLIBINTL; do
14208 acl_save_prefix="$prefix"
14209 prefix="$acl_final_prefix"
14210 acl_save_exec_prefix="$exec_prefix"
14211 exec_prefix="$acl_final_exec_prefix"
14213 exec_prefix="$acl_save_exec_prefix"
14214 prefix="$acl_save_prefix"
14216 if test "X$x" = "X-L$additional_libdir"; then
14221 if test -z "$haveit"; then
14222 if test -d "$additional_libdir"; then
14223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14230 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14231 if test "$enable_rpath" != no; then
14233 for x in $rpathdirs; do
14234 if test "X$x" = "X$dir"; then
14239 if test -z "$haveit"; then
14240 rpathdirs="$rpathdirs $dir"
14243 for x in $ltrpathdirs; do
14244 if test "X$x" = "X$dir"; then
14249 if test -z "$haveit"; then
14250 ltrpathdirs="$ltrpathdirs $dir"
14255 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14258 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14261 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14268 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14275 if test "X$rpathdirs" != "X"; then
14276 if test -n "$hardcode_libdir_separator"; then
14278 for found_dir in $rpathdirs; do
14279 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14281 acl_save_libdir="$libdir"
14283 eval flag=\"$hardcode_libdir_flag_spec\"
14284 libdir="$acl_save_libdir"
14285 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14287 for found_dir in $rpathdirs; do
14288 acl_save_libdir="$libdir"
14289 libdir="$found_dir"
14290 eval flag=\"$hardcode_libdir_flag_spec\"
14291 libdir="$acl_save_libdir"
14292 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14296 if test "X$ltrpathdirs" != "X"; then
14297 for found_dir in $ltrpathdirs; do
14298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14302 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14303 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14304 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 gt_save_CPPFLAGS="$CPPFLAGS"
14308 CPPFLAGS="$CPPFLAGS $INCINTL"
14309 gt_save_LIBS="$LIBS"
14310 LIBS="$LIBS $LIBINTL"
14311 cat >conftest.$ac_ext <<_ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 #include <libintl.h>
14318 extern int _nl_msg_cat_cntr;
14323 const char *_nl_expand_alias (const char *);
14327 bindtextdomain ("", "");
14328 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (ac_try="$ac_link"
14335 case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_link") 2>conftest.er1
14342 grep -v '^ *+' conftest.er1 >conftest.err
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14348 { (case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_try") 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest$ac_exeext'
14358 { (case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_try") 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 gt_cv_func_gnugettext1_libintl=yes
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 gt_cv_func_gnugettext1_libintl=no
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14378 LIBS="$LIBS $LIBICONV"
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 #include <libintl.h>
14386 extern int _nl_msg_cat_cntr;
14391 const char *_nl_expand_alias (const char *);
14395 bindtextdomain ("", "");
14396 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_link") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416 { (case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_try") 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_try") 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 LIBINTL="$LIBINTL $LIBICONV"
14436 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14437 gt_cv_func_gnugettext1_libintl=yes
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14446 rm -f core conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
14449 CPPFLAGS="$gt_save_CPPFLAGS"
14450 LIBS="$gt_save_LIBS"
14452 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14453 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14456 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14457 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14458 && test "$PACKAGE" != gettext-runtime \
14459 && test "$PACKAGE" != gettext-tools; }; then
14460 gt_use_preinstalled_gnugettext=yes
14468 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14469 nls_cv_use_gnu_gettext=yes
14473 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14474 BUILD_INCLUDED_LIBINTL=yes
14475 USE_INCLUDED_LIBINTL=yes
14476 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14477 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14478 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14482 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14483 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14488 if test -n "$INTL_MACOSX_LIBS"; then
14489 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14490 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14491 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14492 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14496 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14497 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14499 cat >>confdefs.h <<\_ACEOF
14500 #define ENABLE_NLS 1
14508 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14509 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14510 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14511 echo "${ECHO_T}$USE_NLS" >&6; }
14512 if test "$USE_NLS" = "yes"; then
14513 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14514 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14515 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14516 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14517 gt_source="external libintl"
14522 gt_source="included intl directory"
14524 { echo "$as_me:$LINENO: result: $gt_source" >&5
14525 echo "${ECHO_T}$gt_source" >&6; }
14528 if test "$USE_NLS" = "yes"; then
14530 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14531 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14532 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14533 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14534 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14535 echo "${ECHO_T}$LIBINTL" >&6; }
14537 for element in $INCINTL; do
14539 for x in $CPPFLAGS; do
14541 acl_save_prefix="$prefix"
14542 prefix="$acl_final_prefix"
14543 acl_save_exec_prefix="$exec_prefix"
14544 exec_prefix="$acl_final_exec_prefix"
14546 exec_prefix="$acl_save_exec_prefix"
14547 prefix="$acl_save_prefix"
14549 if test "X$x" = "X$element"; then
14554 if test -z "$haveit"; then
14555 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14562 cat >>confdefs.h <<\_ACEOF
14563 #define HAVE_GETTEXT 1
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_DCGETTEXT 1
14577 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14578 BUILD_INCLUDED_LIBINTL=yes
14585 nls_cv_header_intl=
14586 nls_cv_header_libgt=
14598 if test "$USE_INCLUDED_LIBINTL" = yes; then
14599 INTLOBJS="\$(GETTOBJS)"
14603 INTL_LIBTOOL_SUFFIX_PREFIX=
14607 INTLLIBS="$LIBINTL"
14620 support_postgresql=no
14621 support_smartalloc=yes
14622 support_readline=yes
14626 support_wx_console=no
14631 support_static_tools=no
14632 support_static_fd=no
14633 support_static_sd=no
14634 support_static_dir=no
14635 support_static_cons=no
14637 build_client_only=no
14645 # -------------------------------------------
14646 # gnome (default off)
14647 # -------------------------------------------
14648 # Check whether --enable-gnome was given.
14649 if test "${enable_gnome+set}" = set; then
14650 enableval=$enable_gnome; if test x$enableval = xyes; then
14657 if test x$support_gnome = xyes; then
14658 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14660 if test $pkg = 0; then
14661 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14662 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14663 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14664 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14669 GNOME_DIR=src/gnome2-console
14670 gnome_version="Version 2.x"
14672 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14673 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14674 { (exit 1); exit 1; }; }
14679 # -------------------------------------------
14680 # bat (default off)
14681 # -------------------------------------------
14682 # Check whether --enable-bat was given.
14683 if test "${enable_bat+set}" = set; then
14684 enableval=$enable_bat; if test x$enableval = xyes; then
14686 cat >>confdefs.h <<\_ACEOF
14696 if test x$support_bat = xyes; then
14697 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14699 if test $pkg = 0; then
14700 BAT_DIR=src/qt-console
14702 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14703 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14704 { (exit 1); exit 1; }; }
14710 # -------------------------------------------
14711 # bwx-console (default off)
14712 # -------------------------------------------
14713 # Check whether --enable-bwx-console was given.
14714 if test "${enable_bwx_console+set}" = set; then
14715 enableval=$enable_bwx_console; if test x$enableval = xyes; then
14716 support_wx_console=yes
14722 if test x$support_wx_console = xyes; then
14723 abc=`$WXCONFIG $WXFLAGS --cppflags`
14725 if test $pkg = 0; then
14726 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14727 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14728 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14732 WX_DIR=src/wx-console
14735 echo "wx-config program not found. bwx-console disabled."
14737 support_wx_console=no
14743 # -------------------------------------------
14744 # tray-monitor (default off)
14745 # -------------------------------------------
14746 # Check whether --enable-tray-monitor was given.
14747 if test "${enable_tray_monitor+set}" = set; then
14748 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14749 support_tray_monitor=yes
14755 if test x$support_tray_monitor = xyes; then
14756 abc=`$PKGCONFIG --exists gtk+-2.0`
14758 if test $pkg = 0; then
14759 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14760 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14763 TRAY_MONITOR_DIR=src/tray-monitor
14764 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14766 if test $pkg = 0; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_GTK_2_4 1
14776 # -------------------------------------------
14777 # smartalloc (default off)
14778 # -------------------------------------------
14779 # Check whether --enable-smartalloc was given.
14780 if test "${enable_smartalloc+set}" = set; then
14781 enableval=$enable_smartalloc; if test x$enableval = xno; then
14782 support_smartalloc=no
14787 if test x$support_smartalloc = xyes; then
14788 cat >>confdefs.h <<\_ACEOF
14789 #define SMARTALLOC 1
14794 # -------------------------------------------
14795 # static-tools (default off)
14796 # -------------------------------------------
14797 # Check whether --enable-static-tools was given.
14798 if test "${enable_static_tools+set}" = set; then
14799 enableval=$enable_static_tools; if test x$enableval = xyes; then
14800 support_static_tools=yes
14806 if test x$support_static_tools = xyes; then
14807 TTOOL_LDFLAGS="-static"
14811 # -------------------------------------------
14812 # static-fd (default off)
14813 # -------------------------------------------
14814 # Check whether --enable-static-fd was given.
14815 if test "${enable_static_fd+set}" = set; then
14816 enableval=$enable_static_fd; if test x$enableval = xyes; then
14817 support_static_fd=yes
14823 if test x$support_static_fd = xyes; then
14824 STATIC_FD="static-bacula-fd"
14828 # -------------------------------------------
14829 # static-sd (default off)
14830 # -------------------------------------------
14831 # Check whether --enable-static-sd was given.
14832 if test "${enable_static_sd+set}" = set; then
14833 enableval=$enable_static_sd; if test x$enableval = xyes; then
14834 support_static_sd=yes
14840 if test x$support_static_sd = xyes; then
14841 STATIC_SD="static-bacula-sd"
14845 # -------------------------------------------
14846 # static-dir (default off)
14847 # -------------------------------------------
14848 # Check whether --enable-static-dir was given.
14849 if test "${enable_static_dir+set}" = set; then
14850 enableval=$enable_static_dir; if test x$enableval = xyes; then
14851 support_static_dir=yes
14857 if test x$support_static_dir = xyes; then
14858 STATIC_DIR="static-bacula-dir"
14862 # -------------------------------------------
14863 # static-cons (default off)
14864 # -------------------------------------------
14865 # Check whether --enable-static-cons was given.
14866 if test "${enable_static_cons+set}" = set; then
14867 enableval=$enable_static_cons; if test x$enableval = xyes; then
14868 support_static_cons=yes
14876 if test x$support_static_cons = xyes; then
14877 STATIC_CONS="static-bconsole"
14878 STATIC_GNOME_CONS="static-bgnome-console"
14879 STATIC_WX_CONS="static-bwx-console"
14885 # -------------------------------------------
14886 # client_only (default off)
14887 # -------------------------------------------
14888 # Check whether --enable-client-only was given.
14889 if test "${enable_client_only+set}" = set; then
14890 enableval=$enable_client_only; if test x$enableval = xyes; then
14891 build_client_only=yes
14897 if test x$build_client_only = xno; then
14904 # -------------------------------------------
14905 # director (default on)
14906 # -------------------------------------------
14907 # Check whether --enable-build-dird was given.
14908 if test "${enable_build_dird+set}" = set; then
14909 enableval=$enable_build_dird; if test x$enableval = xno; then
14914 if test x$build_dird = xyes; then
14915 DIRD_DIR="src/dird"
14916 DIR_TOOLS="DIRTOOLS"
14919 DIR_TOOLS="NODIRTOOLS"
14924 # -------------------------------------------
14925 # stored (default on)
14926 # -------------------------------------------
14927 # Check whether --enable-build-stored was given.
14928 if test "${enable_build_stored+set}" = set; then
14929 enableval=$enable_build_stored; if test x$enableval = xno; then
14934 if test x$build_stored = xyes; then
14935 STORED_DIR="src/stored"
14941 # ---------------------------------------------------
14942 # Check for conio (Bacula readline substitute)(
14943 # ---------------------------------------------------
14944 # this allows you to turn it completely off
14945 # Check whether --enable-conio was given.
14946 if test "${enable_conio+set}" = set; then
14947 enableval=$enable_conio; if test x$enableval = xno; then
14955 # ---------------------------------------------------
14956 # Check for IPv6 support
14957 # ---------------------------------------------------
14958 # this allows you to turn it completely off
14960 # Check whether --enable-ipv6 was given.
14961 if test "${enable_ipv6+set}" = set; then
14962 enableval=$enable_ipv6; if test x$enableval = xno; then
14969 if test x$support_ipv6 = xyes; then
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 #include <sys/types.h>
14977 #include <sys/socket.h>
14978 #include <netinet/in.h>
14982 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15033 if test x$support_ipv6 = xyes; then
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_IPV6 1
15044 if test x$support_conio = xyes; then
15045 if test "${ac_cv_header_termcap_h+set}" = set; then
15046 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15047 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15048 if test "${ac_cv_header_termcap_h+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15052 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15054 # Is the header compilable?
15055 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15056 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15064 #include <termcap.h>
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110 echo "${ECHO_T}$ac_header_compiler" >&6; }
15112 # Is the header present?
15113 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15114 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <termcap.h>
15123 if { (ac_try="$ac_cpp conftest.$ac_ext"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } >/dev/null; then
15136 if test -s conftest.err; then
15137 ac_cpp_err=$ac_c_preproc_warn_flag
15138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15145 if test -z "$ac_cpp_err"; then
15146 ac_header_preproc=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_header_preproc=no
15154 rm -f conftest.err conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156 echo "${ECHO_T}$ac_header_preproc" >&6; }
15158 # So? What about this header?
15159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15161 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15162 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15164 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15165 ac_header_preproc=yes
15168 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15173 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15175 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15179 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15183 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15184 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15185 if test "${ac_cv_header_termcap_h+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_cv_header_termcap_h=$ac_header_preproc
15190 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15194 if test $ac_cv_header_termcap_h = yes; then
15195 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15196 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15197 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-ltermcap $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply. */
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_link") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_try") 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest$ac_exeext'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_lib_termcap_tgetent=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_lib_termcap_tgetent=no
15266 rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15272 if test $ac_cv_lib_termcap_tgetent = yes; then
15273 CONS_LIBS="-ltermcap"
15277 support_readline=no
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_CONIO 1
15285 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15286 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15287 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-lncurses $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 /* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (ac_try="$ac_link"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_link") 2>conftest.er1
15323 grep -v '^ *+' conftest.er1 >conftest.err
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_lib_ncurses_tgetent=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_cv_lib_ncurses_tgetent=no
15356 rm -f core conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15358 LIBS=$ac_check_lib_save_LIBS
15360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15361 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15362 if test $ac_cv_lib_ncurses_tgetent = yes; then
15363 CONS_LIBS="-lncurses"
15367 support_readline=no
15369 cat >>confdefs.h <<\_ACEOF
15370 #define HAVE_CONIO 1
15383 for ac_header in curses.h
15385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 ac_res=`eval echo '${'$as_ac_Header'}'`
15393 { echo "$as_me:$LINENO: result: $ac_res" >&5
15394 echo "${ECHO_T}$ac_res" >&6; }
15396 # Is the header compilable?
15397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 #include <$ac_header>
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_header_compiler=yes
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_header_compiler=no
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15452 echo "${ECHO_T}$ac_header_compiler" >&6; }
15454 # Is the header present?
15455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 #include <$ac_header>
15465 if { (ac_try="$ac_cpp conftest.$ac_ext"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473 grep -v '^ *+' conftest.er1 >conftest.err
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } >/dev/null; then
15478 if test -s conftest.err; then
15479 ac_cpp_err=$ac_c_preproc_warn_flag
15480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487 if test -z "$ac_cpp_err"; then
15488 ac_header_preproc=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_preproc=no
15496 rm -f conftest.err conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15498 echo "${ECHO_T}$ac_header_preproc" >&6; }
15500 # So? What about this header?
15501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15507 ac_header_preproc=yes
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 eval "$as_ac_Header=\$ac_header_preproc"
15532 ac_res=`eval echo '${'$as_ac_Header'}'`
15533 { echo "$as_me:$LINENO: result: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546 { echo "$as_me:$LINENO: checking for term.h" >&5
15547 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15548 if test "${ac_cv_header_term_h+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15558 #include <curses.h>
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579 { (case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_try") 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_header_term_h=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_header_term_h=no
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15609 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15610 if test $ac_cv_header_term_h = yes; then
15611 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15612 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15613 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-lcurses $LIBS"
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15625 /* Override any GCC internal prototype to avoid an error.
15626 Use char because int might match the return type of a GCC
15627 builtin and then its argument prototype would still apply. */
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_link") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_lib_curses_tgetent=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_cv_lib_curses_tgetent=no
15682 rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15687 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15688 if test $ac_cv_lib_curses_tgetent = yes; then
15689 CONS_LIBS="-lcurses"
15693 support_readline=no
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_CONIO 1
15704 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15715 # ---------------------------------------------------
15716 # Check for readline support/directory (default off)
15717 # ---------------------------------------------------
15718 # this allows you to turn it completely off
15719 # Check whether --enable-readline was given.
15720 if test "${enable_readline+set}" = set; then
15721 enableval=$enable_readline; if test x$enableval = xno; then
15722 support_readline=no
15729 if test x$support_readline = xyes; then
15731 # Check whether --with-readline was given.
15732 if test "${with_readline+set}" = set; then
15733 withval=$with_readline;
15734 case "$with_readline" in
15737 if test -f ${with_readline}/readline.h; then
15738 CONS_INC="-I${with_readline}"
15739 CONS_LDFLAGS="-L$with_readline"
15740 elif test -f ${with_readline}/include/readline/readline.h; then
15741 CONS_INC="-I${with_readline}/include/readline"
15742 CONS_LDFLAGS="-L${with_readline}/lib"
15743 with_readline="${with_readline}/include/readline"
15745 with_readline="/usr/include/readline"
15747 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15750 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 ac_res=`eval echo '${'$as_ac_Header'}'`
15755 { echo "$as_me:$LINENO: result: $ac_res" >&5
15756 echo "${ECHO_T}$ac_res" >&6; }
15758 # Is the header compilable?
15759 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15760 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 #include <${with_readline}/readline.h>
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_compile") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15785 { (case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_try") 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15818 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <${with_readline}/readline.h>
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null; then
15840 if test -s conftest.err; then
15841 ac_cpp_err=$ac_c_preproc_warn_flag
15842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15849 if test -z "$ac_cpp_err"; then
15850 ac_header_preproc=yes
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_preproc=no
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
15872 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15887 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15888 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 eval "$as_ac_Header=\$ac_header_preproc"
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900 cat >>confdefs.h <<\_ACEOF
15901 #define HAVE_READLINE 1
15904 CONS_LIBS="-lreadline -lhistory -ltermcap"
15909 echo "readline.h not found. readline turned off ..."
15921 # check for standard readline library
15922 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15923 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15924 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15925 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15929 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15931 # Is the header compilable?
15932 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15933 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 $ac_includes_default
15941 #include </usr/include/readline/readline.h>
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15958 { (case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_try") 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_try") 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 ac_header_compiler=yes
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ac_header_compiler=no
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15987 echo "${ECHO_T}$ac_header_compiler" >&6; }
15989 # Is the header present?
15990 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15991 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include </usr/include/readline/readline.h>
16000 if { (ac_try="$ac_cpp conftest.$ac_ext"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } >/dev/null; then
16013 if test -s conftest.err; then
16014 ac_cpp_err=$ac_c_preproc_warn_flag
16015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16022 if test -z "$ac_cpp_err"; then
16023 ac_header_preproc=yes
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_header_preproc=no
16031 rm -f conftest.err conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16033 echo "${ECHO_T}$ac_header_preproc" >&6; }
16035 # So? What about this header?
16036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16038 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16039 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16041 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16042 ac_header_preproc=yes
16045 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16046 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16048 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16050 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16052 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16054 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16056 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16060 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16061 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16062 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16067 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16068 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16071 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16072 cat >>confdefs.h <<\_ACEOF
16073 #define HAVE_READLINE 1
16077 CONS_INC="-I/usr/include/readline"
16078 CONS_LIBS="-lreadline -ltermcap"
16082 # Did not find standard library, so try Bacula's default
16083 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16085 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16086 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 ac_res=`eval echo '${'$as_ac_Header'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092 echo "${ECHO_T}$ac_res" >&6; }
16094 # Is the header compilable?
16095 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16096 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <${TOP_DIR}/depkgs/readline/readline.h>
16106 rm -f conftest.$ac_objext
16107 if { (ac_try="$ac_compile"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_compile") 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_header_compiler=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_compiler=no
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152 # Is the header present?
16153 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16154 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <${TOP_DIR}/depkgs/readline/readline.h>
16163 if { (ac_try="$ac_cpp conftest.$ac_ext"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } >/dev/null; then
16176 if test -s conftest.err; then
16177 ac_cpp_err=$ac_c_preproc_warn_flag
16178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16185 if test -z "$ac_cpp_err"; then
16186 ac_header_preproc=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_preproc=no
16194 rm -f conftest.err conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16196 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198 # So? What about this header?
16199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16202 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16204 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16205 ac_header_preproc=yes
16208 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16209 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16211 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16213 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16215 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16217 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16219 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16223 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16224 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 eval "$as_ac_Header=\$ac_header_preproc"
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236 cat >>confdefs.h <<\_ACEOF
16237 #define HAVE_READLINE 1
16241 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16242 CONS_LIBS="-lreadline -lhistory -ltermcap"
16243 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16244 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16248 echo "readline.h not found. readline turned off ..."
16275 # Minimal stuff for readline Makefile configuration
16278 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16279 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16280 if test "${ac_cv_header_stat_broken+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 cat >conftest.$ac_ext <<_ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 #include <sys/types.h>
16290 #include <sys/stat.h>
16292 #if defined S_ISBLK && defined S_IFDIR
16293 # if S_ISBLK (S_IFDIR)
16298 #if defined S_ISBLK && defined S_IFCHR
16299 # if S_ISBLK (S_IFCHR)
16304 #if defined S_ISLNK && defined S_IFREG
16305 # if S_ISLNK (S_IFREG)
16310 #if defined S_ISSOCK && defined S_IFREG
16311 # if S_ISSOCK (S_IFREG)
16317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16318 $EGREP "You lose" >/dev/null 2>&1; then
16319 ac_cv_header_stat_broken=yes
16321 ac_cv_header_stat_broken=no
16326 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16327 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16328 if test $ac_cv_header_stat_broken = yes; then
16330 cat >>confdefs.h <<\_ACEOF
16331 #define STAT_MACROS_BROKEN 1
16341 ac_header_dirent=no
16342 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16343 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16344 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <sys/types.h>
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_compile") 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } &&
16381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16382 { (case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
16392 { (case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_try") 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 eval "$as_ac_Header=yes"
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 eval "$as_ac_Header=no"
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 ac_res=`eval echo '${'$as_ac_Header'}'`
16412 { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16415 cat >>confdefs.h <<_ACEOF
16416 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16419 ac_header_dirent=$ac_hdr; break
16423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16424 if test $ac_header_dirent = dirent.h; then
16425 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16427 if test "${ac_cv_search_opendir+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 ac_func_search_save_LIBS=$LIBS
16431 cat >conftest.$ac_ext <<_ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16438 /* Override any GCC internal prototype to avoid an error.
16439 Use char because int might match the return type of a GCC
16440 builtin and then its argument prototype would still apply. */
16453 for ac_lib in '' dir; do
16454 if test -z "$ac_lib"; then
16455 ac_res="none required"
16458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16460 rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (ac_try="$ac_link"
16462 case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_link") 2>conftest.er1
16469 grep -v '^ *+' conftest.er1 >conftest.err
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475 { (case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_try") 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; } &&
16484 { ac_try='test -s conftest$ac_exeext'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_search_opendir=$ac_res
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16502 rm -f core conftest.err conftest.$ac_objext \
16504 if test "${ac_cv_search_opendir+set}" = set; then
16508 if test "${ac_cv_search_opendir+set}" = set; then
16511 ac_cv_search_opendir=no
16513 rm conftest.$ac_ext
16514 LIBS=$ac_func_search_save_LIBS
16516 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16517 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16518 ac_res=$ac_cv_search_opendir
16519 if test "$ac_res" != no; then
16520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16525 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16526 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16527 if test "${ac_cv_search_opendir+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 ac_func_search_save_LIBS=$LIBS
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16538 /* Override any GCC internal prototype to avoid an error.
16539 Use char because int might match the return type of a GCC
16540 builtin and then its argument prototype would still apply. */
16553 for ac_lib in '' x; do
16554 if test -z "$ac_lib"; then
16555 ac_res="none required"
16558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_try") 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_search_opendir=$ac_res
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16602 rm -f core conftest.err conftest.$ac_objext \
16604 if test "${ac_cv_search_opendir+set}" = set; then
16608 if test "${ac_cv_search_opendir+set}" = set; then
16611 ac_cv_search_opendir=no
16613 rm conftest.$ac_ext
16614 LIBS=$ac_func_search_save_LIBS
16616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16618 ac_res=$ac_cv_search_opendir
16619 if test "$ac_res" != no; then
16620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16633 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649 #define $ac_func innocuous_$ac_func
16651 /* System header to define __stub macros and hopefully few prototypes,
16652 which can conflict with char $ac_func (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
16657 # include <limits.h>
16659 # include <assert.h>
16664 /* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16671 /* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16681 return $ac_func ();
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>conftest.er1
16695 grep -v '^ *+' conftest.er1 >conftest.err
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701 { (case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_try") 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest$ac_exeext'
16711 { (case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_try") 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 eval "$as_ac_var=yes"
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 eval "$as_ac_var=no"
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16731 ac_res=`eval echo '${'$as_ac_var'}'`
16732 { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16744 for ac_func in nanosleep nl_langinfo
16746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define $ac_func innocuous_$ac_func
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char $ac_func (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16768 # include <limits.h>
16770 # include <assert.h>
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16792 return $ac_func ();
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest$ac_exeext'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 eval "$as_ac_var=yes"
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 eval "$as_ac_var=no"
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16842 ac_res=`eval echo '${'$as_ac_var'}'`
16843 { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16845 if test `eval echo '${'$as_ac_var'}'` = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854 for ac_header in varargs.h
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16877 #include <$ac_header>
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_header_compiler=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <$ac_header>
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 eval "$as_ac_Header=\$ac_header_preproc"
17003 ac_res=`eval echo '${'$as_ac_Header'}'`
17004 { echo "$as_me:$LINENO: result: $ac_res" >&5
17005 echo "${ECHO_T}$ac_res" >&6; }
17008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17009 cat >>confdefs.h <<_ACEOF
17010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17018 # End of readline/conio stuff
17019 # -----------------------------------------------------------------------
17021 # -----------------------------------------------------------------------
17022 # Check for Python support
17024 { echo "$as_me:$LINENO: checking for Python support" >&5
17025 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17027 # Check whether --with-python was given.
17028 if test "${with_python+set}" = set; then
17029 withval=$with_python;
17032 if test "$withval" != "no"; then
17033 if test "$withval" = "yes"; then
17034 for python_root in /usr /usr/local /usr/sfw; do
17035 for ver in python2.2 python2.3 python2.4 python2.5; do
17036 if test -f $python_root/include/${ver}/Python.h; then
17037 PYTHON_INCDIR=-I$python_root/include/${ver}
17038 if test -d $python_root/lib64/${ver}/config; then
17039 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17041 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17047 if test x$PYTHON_INCDIR = x; then
17048 if test -f $prefix/include/Python.h; then
17049 PYTHON_INCDIR=-I$prefix/include
17050 if test -d $prefix/lib64/config; then
17051 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17053 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17056 { echo "$as_me:$LINENO: result: no" >&5
17057 echo "${ECHO_T}no" >&6; }
17058 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17059 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17060 { (exit 1); exit 1; }; }
17064 if test -f $withval/Python.h; then
17065 PYTHON_INCDIR=-I$withval
17066 PYTHON_LIBS="-L$withval/config -lpython"
17067 elif test -f $withval/include/Python.h; then
17068 PYTHON_INCDIR=-I$withval/include
17069 if test -d $withval/lib64/config; then
17070 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17072 PYTHON_LIBS="-L$withval/lib/config -lpython"
17074 elif test -f $withval/include/python/Python.h; then
17075 PYTHON_INCDIR=-I$withval/include/python
17076 if test -d $withval/lib64/python/config; then
17077 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17079 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17085 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17086 { (exit 1); exit 1; }; }
17089 cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_PYTHON 1
17093 { echo "$as_me:$LINENO: result: yes" >&5
17094 echo "${ECHO_T}yes" >&6; }
17096 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17097 echo "$as_me: checking for more Python libs" >&6;}
17098 saved_LIBS="$LIBS"; LIBS=
17099 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17100 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17101 if test "${ac_cv_search_shm_open+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 ac_func_search_save_LIBS=$LIBS
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17122 return shm_open ();
17127 for ac_lib in '' rt; do
17128 if test -z "$ac_lib"; then
17129 ac_res="none required"
17132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_search_shm_open=$ac_res
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17176 rm -f core conftest.err conftest.$ac_objext \
17178 if test "${ac_cv_search_shm_open+set}" = set; then
17182 if test "${ac_cv_search_shm_open+set}" = set; then
17185 ac_cv_search_shm_open=no
17187 rm conftest.$ac_ext
17188 LIBS=$ac_func_search_save_LIBS
17190 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17191 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17192 ac_res=$ac_cv_search_shm_open
17193 if test "$ac_res" != no; then
17194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17199 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17200 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17201 if test "${ac_cv_lib_util_openpty+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17204 ac_check_lib_save_LIBS=$LIBS
17205 LIBS="-lutil $LIBS"
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17213 /* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (ac_try="$ac_link"
17230 case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_link") 2>conftest.er1
17237 grep -v '^ *+' conftest.er1 >conftest.err
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest$ac_exeext'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_cv_lib_util_openpty=yes
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_lib_util_openpty=no
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17275 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17276 if test $ac_cv_lib_util_openpty = yes; then
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_LIBUTIL 1
17281 LIBS="-lutil $LIBS"
17285 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17288 { echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6; }
17294 { echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6; }
17303 # Find where sockets are (especially for Solaris)
17304 # Do this before the TCP Wrappers test since tcp wrappers
17305 # uses the socket library and some linkers are stupid.
17307 { echo "$as_me:$LINENO: checking for socket" >&5
17308 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17309 if test "${ac_cv_func_socket+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320 #define socket innocuous_socket
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char socket (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17328 # include <limits.h>
17330 # include <assert.h>
17335 /* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17342 /* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345 #if defined __stub_socket || defined __stub___socket
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_link") 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest$ac_exeext'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_cv_func_socket=yes
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_cv_func_socket=no
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17402 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17403 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17404 if test $ac_cv_func_socket = yes; then
17405 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17406 echo "${ECHO_T}using libc's socket" >&6; }
17409 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17410 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17411 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 ac_check_lib_save_LIBS=$LIBS
17415 LIBS="-lxnet $LIBS"
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17423 /* Override any GCC internal prototype to avoid an error.
17424 Use char because int might match the return type of a GCC
17425 builtin and then its argument prototype would still apply. */
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453 { (case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_try") 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest$ac_exeext'
17463 { (case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_try") 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_lib_xnet_socket=yes
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 ac_cv_lib_xnet_socket=no
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17484 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17485 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17486 if test $ac_cv_lib_xnet_socket = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define HAVE_LIBXNET 1
17491 LIBS="-lxnet $LIBS"
17496 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17497 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17498 if test "${ac_cv_lib_socket_socket+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-lsocket $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 /* Override any GCC internal prototype to avoid an error.
17511 Use char because int might match the return type of a GCC
17512 builtin and then its argument prototype would still apply. */
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_link") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_lib_socket_socket=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ac_cv_lib_socket_socket=no
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569 LIBS=$ac_check_lib_save_LIBS
17571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17573 if test $ac_cv_lib_socket_socket = yes; then
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_LIBSOCKET 1
17578 LIBS="-lsocket $LIBS"
17583 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17584 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17585 if test "${ac_cv_lib_inet_socket+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 ac_check_lib_save_LIBS=$LIBS
17589 LIBS="-linet $LIBS"
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17597 /* Override any GCC internal prototype to avoid an error.
17598 Use char because int might match the return type of a GCC
17599 builtin and then its argument prototype would still apply. */
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_link") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest$ac_exeext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_lib_inet_socket=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_lib_inet_socket=no
17654 rm -f core conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17658 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17659 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17660 if test $ac_cv_lib_inet_socket = yes; then
17661 cat >>confdefs.h <<_ACEOF
17662 #define HAVE_LIBINET 1
17665 LIBS="-linet $LIBS"
17673 # -----------------------------------------------------------
17674 # Check whether user wants TCP wrappers support (default off)
17675 # -----------------------------------------------------------
17679 # Check whether --with-tcp-wrappers was given.
17680 if test "${with_tcp_wrappers+set}" = set; then
17681 withval=$with_tcp_wrappers;
17682 if test "x$withval" != "xno" ; then
17684 LIBS="$saved_LIBS -lwrap"
17685 { echo "$as_me:$LINENO: checking for libwrap" >&5
17686 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17687 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17688 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17689 if test "${ac_cv_search_nanosleep+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 ac_func_search_save_LIBS=$LIBS
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17710 return nanosleep ();
17715 for ac_lib in '' rt; do
17716 if test -z "$ac_lib"; then
17717 ac_res="none required"
17720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17722 rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (ac_try="$ac_link"
17724 case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_link") 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17737 { (case "(($ac_try" in
17738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739 *) ac_try_echo=$ac_try;;
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_try") 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_try") 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_search_nanosleep=$ac_res
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17764 rm -f core conftest.err conftest.$ac_objext \
17766 if test "${ac_cv_search_nanosleep+set}" = set; then
17770 if test "${ac_cv_search_nanosleep+set}" = set; then
17773 ac_cv_search_nanosleep=no
17775 rm conftest.$ac_ext
17776 LIBS=$ac_func_search_save_LIBS
17778 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17779 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17780 ac_res=$ac_cv_search_nanosleep
17781 if test "$ac_res" != no; then
17782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 #include <sys/types.h>
17794 int deny_severity = 0;
17795 int allow_severity = 0;
17796 struct request_info *req;
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_link") 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820 { (case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_try") 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17840 { echo "$as_me:$LINENO: result: yes" >&5
17841 echo "${ECHO_T}yes" >&6; }
17842 cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_LIBWRAP 1
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17855 LIBS="$saved_LIBS -lwrap -lnsl"
17856 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 #include <sys/types.h>
17865 int deny_severity = 0;
17866 int allow_severity = 0;
17867 struct request_info *req;
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17911 { echo "$as_me:$LINENO: result: yes" >&5
17912 echo "${ECHO_T}yes" >&6; }
17913 cat >>confdefs.h <<\_ACEOF
17914 #define HAVE_LIBWRAP 1
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17926 echo "$as_me: error: *** libwrap missing" >&2;}
17927 { (exit 1); exit 1; }; }
17931 rm -f core conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17944 # -----------------------------------------------------------
17945 # Check whether OpenSSL is available
17946 # -----------------------------------------------------------
17947 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17948 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17950 # Check whether --with-openssl was given.
17951 if test "${with_openssl+set}" = set; then
17952 withval=$with_openssl; with_openssl_directory=${withval}
17956 if test "x$with_openssl_directory" != "x"; then
17957 OPENSSL_LIBS="-lssl -lcrypto"
17960 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17961 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17962 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17965 saved_LIBS="${LIBS}"
17966 saved_CFLAGS="${CFLAGS}"
17967 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17968 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17970 cat >conftest.$ac_ext <<_ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 #include <openssl/ssl.h>
17980 CRYPTO_set_id_callback(NULL);
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (ac_try="$ac_link"
17987 case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_link") 2>conftest.er1
17994 grep -v '^ *+' conftest.er1 >conftest.err
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18021 support_crypto="yes"
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <openssl/evp.h>
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064 { (case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_try") 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest$ac_exeext'
18074 { (case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_try") 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_cv_openssl_sha2="yes"
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 ac_cv_openssl_sha2="no"
18092 rm -f core conftest.err conftest.$ac_objext \
18093 conftest$ac_exeext conftest.$ac_ext
18095 LIBS="${saved_LIBS}"
18096 CFLAGS="${saved_CFLAGS}"
18098 if test "$support_tls" = "yes"; then
18100 cat >>confdefs.h <<\_ACEOF
18101 #define HAVE_OPENSSL 1
18105 cat >>confdefs.h <<\_ACEOF
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_CRYPTO 1
18116 if test "$ac_cv_openssl_sha2" = "yes"; then
18118 cat >>confdefs.h <<\_ACEOF
18119 #define HAVE_SHA2 1
18125 support_crypto="no"
18130 { echo "$as_me:$LINENO: result: $support_tls" >&5
18131 echo "${ECHO_T}$support_tls" >&6; }
18136 # -----------------------------------------------------------
18137 # Python and OpenSSL are using dlopen
18138 # -----------------------------------------------------------
18140 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18141 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18142 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18143 if test "${ac_cv_search_dlopen+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 ac_func_search_save_LIBS=$LIBS
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18169 for ac_lib in '' dl; do
18170 if test -z "$ac_lib"; then
18171 ac_res="none required"
18174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_search_dlopen=$ac_res
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18218 rm -f core conftest.err conftest.$ac_objext \
18220 if test "${ac_cv_search_dlopen+set}" = set; then
18224 if test "${ac_cv_search_dlopen+set}" = set; then
18227 ac_cv_search_dlopen=no
18229 rm conftest.$ac_ext
18230 LIBS=$ac_func_search_save_LIBS
18232 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18233 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18234 ac_res=$ac_cv_search_dlopen
18235 if test "$ac_res" != no; then
18236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18242 # ------------------------------------------
18243 # Where to place working dir
18244 # ------------------------------------------
18245 working_dir=`eval echo ${prefix}/var/bacula/working`
18247 # Check whether --with-working-dir was given.
18248 if test "${with_working_dir+set}" = set; then
18249 withval=$with_working_dir;
18250 if test "x$withval" != "xno" ; then
18251 working_dir=$withval
18261 # ------------------------------------------
18262 # Where to place scriptdir (script files)
18263 # ------------------------------------------
18264 scriptdir=`eval echo ${sysconfdir}`
18266 # Check whether --with-scriptdir was given.
18267 if test "${with_scriptdir+set}" = set; then
18268 withval=$with_scriptdir;
18269 if test "x$withval" != "xno" ; then
18280 # ------------------------------------------
18281 # Where to send dump email
18282 # ------------------------------------------
18283 dump_email=root@localhost
18285 # Check whether --with-dump-email was given.
18286 if test "${with_dump_email+set}" = set; then
18287 withval=$with_dump_email;
18288 if test "x$withval" != "xno" ; then
18289 dump_email=$withval
18298 # ------------------------------------------
18299 # Where to send job email
18300 # ------------------------------------------
18301 job_email=root@localhost
18303 # Check whether --with-job-email was given.
18304 if test "${with_job_email+set}" = set; then
18305 withval=$with_job_email;
18306 if test "x$withval" != "xno" ; then
18316 # ------------------------------------------
18317 # Where to find smtp host
18318 # ------------------------------------------
18319 smtp_host=localhost
18321 # Check whether --with-smtp_host was given.
18322 if test "${with_smtp_host+set}" = set; then
18323 withval=$with_smtp_host;
18324 if test "x$withval" != "xno" ; then
18335 # ------------------------------------
18336 # Where to place pid files
18337 # ------------------------------------
18340 # Check whether --with-pid-dir was given.
18341 if test "${with_pid_dir+set}" = set; then
18342 withval=$with_pid_dir;
18343 if test "x$withval" != "xno" ; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define _PATH_BACULA_PIDDIR "$piddir"
18358 # ------------------------------------
18359 # Where to place subsys "lock file"
18360 # ------------------------------------
18361 ubsysdir=/var/run/subsys
18362 if test -d /var/run/subsys; then
18363 subsysdir=/var/run/subsys
18364 elif test -d /var/lock/subsys; then
18365 subsysdir=/var/lock/subsys
18367 subsysdir=/var/run/subsys
18370 # Check whether --with-subsys-dir was given.
18371 if test "${with_subsys_dir+set}" = set; then
18372 withval=$with_subsys_dir;
18373 if test "x$withval" != "xno" ; then
18385 # ------------------------------------
18386 # Where to start assigning ports
18387 # ------------------------------------
18390 # Check whether --with-baseport was given.
18391 if test "${with_baseport+set}" = set; then
18392 withval=$with_baseport;
18393 if test "x$withval" != "xno" ; then
18402 dir_port=`expr $baseport`
18403 fd_port=`expr $baseport + 1`
18404 sd_port=`expr $fd_port + 1`
18411 # ------------------------------------------
18412 # Generate passwords
18413 # ------------------------------------------
18416 # Check whether --with-dir-password was given.
18417 if test "${with_dir_password+set}" = set; then
18418 withval=$with_dir_password;
18419 if test "x$withval" != "xno" ; then
18420 dir_password=$withval
18427 if test "x$dir_password" = "x" ; then
18428 if test "x$OPENSSL" = "xnone" ; then
18429 key=`autoconf/randpass 33`
18431 key=`openssl rand -base64 33`
18438 # Check whether --with-fd-password was given.
18439 if test "${with_fd_password+set}" = set; then
18440 withval=$with_fd_password;
18441 if test "x$withval" != "xno" ; then
18442 fd_password=$withval
18449 if test "x$fd_password" = "x" ; then
18450 if test "x$OPENSSL" = "xnone" ; then
18451 key=`autoconf/randpass 37`
18453 key=`openssl rand -base64 33`
18460 # Check whether --with-sd-password was given.
18461 if test "${with_sd_password+set}" = set; then
18462 withval=$with_sd_password;
18463 if test "x$withval" != "xno" ; then
18464 sd_password=$withval
18471 if test "x$sd_password" = "x" ; then
18472 if test "x$OPENSSL" = "xnone" ; then
18473 key=`autoconf/randpass 41`
18475 key=`openssl rand -base64 33`
18482 # Check whether --with-mon-dir-password was given.
18483 if test "${with_mon_dir_password+set}" = set; then
18484 withval=$with_mon_dir_password;
18485 if test "x$withval" != "xno" ; then
18486 mon_dir_password=$withval
18493 if test "x$mon_dir_password" = "x" ; then
18494 if test "x$OPENSSL" = "xnone" ; then
18495 key=`autoconf/randpass 33`
18497 key=`openssl rand -base64 33`
18499 mon_dir_password=$key
18504 # Check whether --with-mon-fd-password was given.
18505 if test "${with_mon_fd_password+set}" = set; then
18506 withval=$with_mon_fd_password;
18507 if test "x$withval" != "xno" ; then
18508 mon_fd_password=$withval
18515 if test "x$mon_fd_password" = "x" ; then
18516 if test "x$OPENSSL" = "xnone" ; then
18517 key=`autoconf/randpass 37`
18519 key=`openssl rand -base64 33`
18521 mon_fd_password=$key
18526 # Check whether --with-mon-sd-password was given.
18527 if test "${with_mon_sd_password+set}" = set; then
18528 withval=$with_mon_sd_password;
18529 if test "x$withval" != "xno" ; then
18530 mon_sd_password=$withval
18537 if test "x$mon_sd_password" = "x" ; then
18538 if test "x$OPENSSL" = "xnone" ; then
18539 key=`autoconf/randpass 41`
18541 key=`openssl rand -base64 33`
18543 mon_sd_password=$key
18554 # Pickup any database name
18558 # Check whether --with-db_name was given.
18559 if test "${with_db_name+set}" = set; then
18560 withval=$with_db_name;
18561 if test "x$withval" != "x" ; then
18572 # Check whether --with-db_user was given.
18573 if test "${with_db_user+set}" = set; then
18574 withval=$with_db_user;
18575 if test "x$withval" != "x" ; then
18586 # Handle users and groups for each daemon
18590 # Check whether --with-dir_user was given.
18591 if test "${with_dir_user+set}" = set; then
18592 withval=$with_dir_user;
18593 if test "x$withval" != "x" ; then
18603 # Check whether --with-dir_group was given.
18604 if test "${with_dir_group+set}" = set; then
18605 withval=$with_dir_group;
18606 if test "x$withval" != "x" ; then
18616 # Check whether --with-sd_user was given.
18617 if test "${with_sd_user+set}" = set; then
18618 withval=$with_sd_user;
18619 if test "x$withval" != "x" ; then
18629 # Check whether --with-sd_group was given.
18630 if test "${with_sd_group+set}" = set; then
18631 withval=$with_sd_group;
18632 if test "x$withval" != "x" ; then
18642 # Check whether --with-fd_user was given.
18643 if test "${with_fd_user+set}" = set; then
18644 withval=$with_fd_user;
18645 if test "x$withval" != "x" ; then
18655 # Check whether --with-fd_group was given.
18656 if test "${with_fd_group+set}" = set; then
18657 withval=$with_fd_group;
18658 if test "x$withval" != "x" ; then
18677 # allow setting default executable permissions
18681 # Check whether --with-sbin-perm was given.
18682 if test "${with_sbin_perm+set}" = set; then
18683 withval=$with_sbin_perm;
18684 if test "x$withval" != "x" ; then
18694 # ------------------------------------------------
18695 # Bacula check for various SQL database engines
18696 # ------------------------------------------------
18699 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18700 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18702 # Check whether --with-postgresql was given.
18703 if test "${with_postgresql+set}" = set; then
18704 withval=$with_postgresql;
18705 if test "$withval" != "no"; then
18706 if test "$db_found" = "yes"; then
18707 { echo "$as_me:$LINENO: result: error" >&5
18708 echo "${ECHO_T}error" >&6; }
18709 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18710 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18711 { (exit 1); exit 1; }; };
18713 if test "$withval" = "yes"; then
18714 PG_CONFIG=`which pg_config`
18715 if test -n "$PG_CONFIG";then
18716 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18717 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18718 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18719 elif test -f /usr/local/include/libpq-fe.h; then
18720 POSTGRESQL_INCDIR=/usr/local/include
18721 if test -d /usr/local/lib64; then
18722 POSTGRESQL_LIBDIR=/usr/local/lib64
18724 POSTGRESQL_LIBDIR=/usr/local/lib
18726 POSTGRESQL_BINDIR=/usr/local/bin
18727 elif test -f /usr/include/libpq-fe.h; then
18728 POSTGRESQL_INCDIR=/usr/include
18729 if test -d /usr/lib64; then
18730 POSTGRESQL_LIBDIR=/usr/lib64
18732 POSTGRESQL_LIBDIR=/usr/lib
18734 POSTGRESQL_BINDIR=/usr/bin
18735 elif test -f /usr/include/pgsql/libpq-fe.h; then
18736 POSTGRESQL_INCDIR=/usr/include/pgsql
18737 if test -d /usr/lib64/pgsql; then
18738 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18740 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18742 POSTGRESQL_BINDIR=/usr/bin
18743 elif test -f /usr/include/postgresql/libpq-fe.h; then
18744 POSTGRESQL_INCDIR=/usr/include/postgresql
18745 if test -d /usr/lib64/postgresql; then
18746 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18748 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18750 POSTGRESQL_BINDIR=/usr/bin
18752 { echo "$as_me:$LINENO: result: no" >&5
18753 echo "${ECHO_T}no" >&6; }
18754 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18755 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18756 { (exit 1); exit 1; }; }
18758 elif test -f $withval/include/libpq-fe.h; then
18759 POSTGRESQL_INCDIR=$withval/include
18760 POSTGRESQL_LIBDIR=$withval/lib
18761 POSTGRESQL_BINDIR=$withval/bin
18762 elif test -f $withval/include/postgresql/libpq-fe.h; then
18763 POSTGRESQL_INCDIR=$withval/include/postgresql
18764 if test -d $withval/lib64; then
18765 POSTGRESQL_LIBDIR=$withval/lib64
18767 POSTGRESQL_LIBDIR=$withval/lib
18769 POSTGRESQL_BINDIR=$withval/bin
18771 { echo "$as_me:$LINENO: result: no" >&5
18772 echo "${ECHO_T}no" >&6; }
18773 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18774 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18775 { (exit 1); exit 1; }; }
18777 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18778 { echo "$as_me:$LINENO: checking for crypt" >&5
18779 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18780 if test "${ac_cv_func_crypt+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 cat >conftest.$ac_ext <<_ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18791 #define crypt innocuous_crypt
18793 /* System header to define __stub macros and hopefully few prototypes,
18794 which can conflict with char crypt (); below.
18795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18796 <limits.h> exists even on freestanding compilers. */
18799 # include <limits.h>
18801 # include <assert.h>
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18813 /* The GNU C library defines this for functions which it implements
18814 to always fail with ENOSYS. Some functions are actually named
18815 something starting with __ and the normal name is an alias. */
18816 #if defined __stub_crypt || defined __stub___crypt
18828 rm -f conftest.$ac_objext conftest$ac_exeext
18829 if { (ac_try="$ac_link"
18830 case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_link") 2>conftest.er1
18837 grep -v '^ *+' conftest.er1 >conftest.err
18839 cat conftest.err >&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } &&
18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843 { (case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_try") 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_func_crypt=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_func_crypt=no
18870 rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18874 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18875 if test $ac_cv_func_crypt = yes; then
18878 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18879 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18880 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-lcrypt $LIBS"
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18907 rm -f conftest.$ac_objext conftest$ac_exeext
18908 if { (ac_try="$ac_link"
18909 case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_link") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_lib_crypt_crypt=yes
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_lib_crypt_crypt=no
18949 rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18954 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18955 if test $ac_cv_lib_crypt_crypt = yes; then
18956 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18961 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18962 SQL_LFLAGS=$POSTGRESQL_LFLAGS
18963 SQL_BINDIR=$POSTGRESQL_BINDIR
18964 cat >>confdefs.h <<\_ACEOF
18965 #define HAVE_POSTGRESQL 1
18968 { echo "$as_me:$LINENO: result: yes" >&5
18969 echo "${ECHO_T}yes" >&6; }
18971 support_postgresql=yes
18975 { echo "$as_me:$LINENO: result: no" >&5
18976 echo "${ECHO_T}no" >&6; }
18981 { echo "$as_me:$LINENO: result: no" >&5
18982 echo "${ECHO_T}no" >&6; }
18994 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18995 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18997 # Check whether --with-mysql was given.
18998 if test "${with_mysql+set}" = set; then
18999 withval=$with_mysql;
19000 if test "$withval" != "no"; then
19001 if test "$withval" = "yes"; then
19002 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19003 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19004 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19005 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19006 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19008 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19010 MYSQL_BINDIR=/usr/local/mysql/bin
19011 elif test -f /usr/include/mysql/mysql.h; then
19012 MYSQL_INCDIR=/usr/include/mysql
19013 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19014 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19015 MYSQL_LIBDIR=/usr/lib64/mysql
19016 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19017 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19018 MYSQL_LIBDIR=/usr/lib/mysql
19020 MYSQL_LIBDIR=/usr/lib
19022 MYSQL_BINDIR=/usr/bin
19023 elif test -f /usr/include/mysql.h; then
19024 MYSQL_INCDIR=/usr/include
19025 if test -f /usr/lib64/libmysqlclient_r.a \
19026 -o -f /usr/lib64/libmysqlclient_r.so; then
19027 MYSQL_LIBDIR=/usr/lib64
19029 MYSQL_LIBDIR=/usr/lib
19031 MYSQL_BINDIR=/usr/bin
19032 elif test -f /usr/local/include/mysql/mysql.h; then
19033 MYSQL_INCDIR=/usr/local/include/mysql
19034 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19035 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19036 MYSQL_LIBDIR=/usr/local/lib64/mysql
19038 MYSQL_LIBDIR=/usr/local/lib/mysql
19040 MYSQL_BINDIR=/usr/local/bin
19041 elif test -f /usr/local/include/mysql.h; then
19042 MYSQL_INCDIR=/usr/local/include
19043 if test -f /usr/local/lib64/libmysqlclient_r.a \
19044 -o -f /usr/local/lib64/libmysqlclient_r.so; then
19045 MYSQL_LIBDIR=/usr/local/lib64
19047 MYSQL_LIBDIR=/usr/local/lib
19049 MYSQL_BINDIR=/usr/local/bin
19051 { echo "$as_me:$LINENO: result: no" >&5
19052 echo "${ECHO_T}no" >&6; }
19053 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19054 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19055 { (exit 1); exit 1; }; }
19058 if test -f $withval/include/mysql/mysql.h; then
19059 MYSQL_INCDIR=$withval/include/mysql
19060 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19061 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19062 MYSQL_LIBDIR=$withval/lib64/mysql
19064 MYSQL_LIBDIR=$withval/lib/mysql
19066 if test -f $withval/lib/libmysqlclient_r.so; then
19067 MYSQL_LIBDIR=$withval/lib
19070 MYSQL_BINDIR=$withval/bin
19071 elif test -f $withval/include/mysql.h; then
19072 MYSQL_INCDIR=$withval/include
19073 if test -f $withval/lib64/libmysqlclient_r.a \
19074 -o -f $withval/lib64/libmysqlclient_r.so; then
19075 MYSQL_LIBDIR=$withval/lib64
19077 MYSQL_LIBDIR=$withval/lib
19079 MYSQL_BINDIR=$withval/bin
19081 { echo "$as_me:$LINENO: result: no" >&5
19082 echo "${ECHO_T}no" >&6; }
19083 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19084 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19085 { (exit 1); exit 1; }; }
19088 SQL_INCLUDE=-I$MYSQL_INCDIR
19089 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19090 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19091 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_THREAD_SAFE_MYSQL 1
19097 SQL_BINDIR=$MYSQL_BINDIR
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_MYSQL 1
19103 { echo "$as_me:$LINENO: result: yes" >&5
19104 echo "${ECHO_T}yes" >&6; }
19111 { echo "$as_me:$LINENO: result: no" >&5
19112 echo "${ECHO_T}no" >&6; }
19120 # Check whether --with-embedded-mysql was given.
19121 if test "${with_embedded_mysql+set}" = set; then
19122 withval=$with_embedded_mysql;
19123 if test "$withval" != "no"; then
19124 if test "$withval" = "yes"; then
19125 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19126 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19127 if test -d /usr/local/mysql/lib64/mysql; then
19128 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19130 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19132 MYSQL_BINDIR=/usr/local/mysql/bin
19133 elif test -f /usr/include/mysql/mysql.h; then
19134 MYSQL_INCDIR=/usr/include/mysql
19135 if test -d /usr/lib64/mysql; then
19136 MYSQL_LIBDIR=/usr/lib64/mysql
19138 MYSQL_LIBDIR=/usr/lib/mysql
19140 MYSQL_BINDIR=/usr/bin
19141 elif test -f /usr/include/mysql.h; then
19142 MYSQL_INCDIR=/usr/include
19143 if test -d /usr/lib64; then
19144 MYSQL_LIBDIR=/usr/lib64
19146 MYSQL_LIBDIR=/usr/lib
19148 MYSQL_BINDIR=/usr/bin
19149 elif test -f /usr/local/include/mysql/mysql.h; then
19150 MYSQL_INCDIR=/usr/local/include/mysql
19151 if test -d /usr/local/lib64/mysql; then
19152 MYSQL_LIBDIR=/usr/local/lib64/mysql
19154 MYSQL_LIBDIR=/usr/local/lib/mysql
19156 MYSQL_BINDIR=/usr/local/bin
19157 elif test -f /usr/local/include/mysql.h; then
19158 MYSQL_INCDIR=/usr/local/include
19159 if test -d /usr/local/lib64; then
19160 MYSQL_LIBDIR=/usr/local/lib64
19162 MYSQL_LIBDIR=/usr/local/lib
19164 MYSQL_BINDIR=/usr/local/bin
19166 { echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6; }
19168 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19169 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19170 { (exit 1); exit 1; }; }
19173 if test -f $withval/include/mysql/mysql.h; then
19174 MYSQL_INCDIR=$withval/include/mysql
19175 if test -d $withval/lib64/mysql; then
19176 MYSQL_LIBDIR=$withval/lib64/mysql
19178 MYSQL_LIBDIR=$withval/lib/mysql
19180 MYSQL_BINDIR=$withval/bin
19181 elif test -f $withval/include/mysql.h; then
19182 MYSQL_INCDIR=$withval/include
19183 if test -d $withval/lib64; then
19184 MYSQL_LIBDIR=$withval/lib64
19186 MYSQL_LIBDIR=$withval/lib
19188 MYSQL_BINDIR=$withval/bin
19190 { echo "$as_me:$LINENO: result: no" >&5
19191 echo "${ECHO_T}no" >&6; }
19192 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19193 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19194 { (exit 1); exit 1; }; }
19197 SQL_INCLUDE=-I$MYSQL_INCDIR
19198 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19199 SQL_BINDIR=$MYSQL_BINDIR
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_MYSQL 1
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_EMBEDDED_MYSQL 1
19209 { echo "$as_me:$LINENO: result: yes" >&5
19210 echo "${ECHO_T}yes" >&6; }
19217 { echo "$as_me:$LINENO: result: no" >&5
19218 echo "${ECHO_T}no" >&6; }
19234 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19235 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19237 # Check whether --with-sqlite3 was given.
19238 if test "${with_sqlite3+set}" = set; then
19239 withval=$with_sqlite3;
19240 if test "$withval" != "no"; then
19241 if test "$withval" = "yes"; then
19242 if test -f /usr/local/include/sqlite3.h; then
19243 SQLITE_INCDIR=/usr/local/include
19244 if test -d /usr/local/lib64; then
19245 SQLITE_LIBDIR=/usr/local/lib64
19247 SQLITE_LIBDIR=/usr/local/lib
19249 SQLITE_BINDIR=/usr/local/bin
19250 elif test -f /usr/include/sqlite3.h; then
19251 SQLITE_INCDIR=/usr/include
19252 if test -d /usr/lib64; then
19253 SQLITE_LIBDIR=/usr/lib64
19255 SQLITE_LIBDIR=/usr/lib
19257 SQLITE_BINDIR=/usr/bin
19258 elif test -f $prefix/include/sqlite3.h; then
19259 SQLITE_INCDIR=$prefix/include
19260 if test -d $prefix/lib64; then
19261 SQLITE_LIBDIR=$prefix/lib64
19263 SQLITE_LIBDIR=$prefix/lib
19265 SQLITE_BINDIR=$prefix/bin
19267 { echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6; }
19269 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19270 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19271 { (exit 1); exit 1; }; }
19274 if test -f $withval/sqlite3.h; then
19275 SQLITE_INCDIR=$withval
19276 SQLITE_LIBDIR=$withval
19277 SQLITE_BINDIR=$withval
19278 elif test -f $withval/include/sqlite3.h; then
19279 SQLITE_INCDIR=$withval/include
19280 if test -d $withval/lib64; then
19281 SQLITE_LIBDIR=$withval/lib64
19283 SQLITE_LIBDIR=$withval/lib
19285 SQLITE_BINDIR=$withval/bin
19287 { echo "$as_me:$LINENO: result: no" >&5
19288 echo "${ECHO_T}no" >&6; }
19289 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19290 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19291 { (exit 1); exit 1; }; }
19294 SQL_INCLUDE=-I$SQLITE_INCDIR
19295 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19296 SQL_BINDIR=$SQLITE_BINDIR
19298 cat >>confdefs.h <<\_ACEOF
19299 #define HAVE_SQLITE3 1
19302 { echo "$as_me:$LINENO: result: yes" >&5
19303 echo "${ECHO_T}yes" >&6; }
19305 support_sqlite3=yes
19310 { echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6; }
19316 { echo "$as_me:$LINENO: result: no" >&5
19317 echo "${ECHO_T}no" >&6; }
19329 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19330 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19332 # Check whether --with-sqlite was given.
19333 if test "${with_sqlite+set}" = set; then
19334 withval=$with_sqlite;
19335 if test "$withval" != "no"; then
19336 if test "$withval" = "yes"; then
19337 if test -f /usr/local/include/sqlite.h; then
19338 SQLITE_INCDIR=/usr/local/include
19339 if test -d /usr/local/lib64; then
19340 SQLITE_LIBDIR=/usr/local/lib64
19342 SQLITE_LIBDIR=/usr/local/lib
19344 SQLITE_BINDIR=/usr/local/bin
19345 elif test -f /usr/include/sqlite.h; then
19346 SQLITE_INCDIR=/usr/include
19347 if test -d /usr/lib64; then
19348 SQLITE_LIBDIR=/usr/lib64
19350 SQLITE_LIBDIR=/usr/lib
19352 SQLITE_BINDIR=/usr/bin
19353 elif test -f $prefix/include/sqlite.h; then
19354 SQLITE_INCDIR=$prefix/include
19355 if test -d $prefix/lib64; then
19356 SQLITE_LIBDIR=$prefix/lib64
19358 SQLITE_LIBDIR=$prefix/lib
19360 SQLITE_BINDIR=$prefix/bin
19362 { echo "$as_me:$LINENO: result: no" >&5
19363 echo "${ECHO_T}no" >&6; }
19364 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19365 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19366 { (exit 1); exit 1; }; }
19369 if test -f $withval/sqlite.h; then
19370 SQLITE_INCDIR=$withval
19371 SQLITE_LIBDIR=$withval
19372 SQLITE_BINDIR=$withval
19373 elif test -f $withval/include/sqlite.h; then
19374 SQLITE_INCDIR=$withval/include
19375 if test -d $withval/lib64; then
19376 SQLITE_LIBDIR=$withval/lib64
19378 SQLITE_LIBDIR=$withval/lib
19380 SQLITE_BINDIR=$withval/bin
19382 { echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6; }
19384 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19385 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19386 { (exit 1); exit 1; }; }
19389 SQL_INCLUDE=-I$SQLITE_INCDIR
19390 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19391 SQL_BINDIR=$SQLITE_BINDIR
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_SQLITE 1
19397 { echo "$as_me:$LINENO: result: yes" >&5
19398 echo "${ECHO_T}yes" >&6; }
19405 { echo "$as_me:$LINENO: result: no" >&5
19406 echo "${ECHO_T}no" >&6; }
19411 { echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6; }
19425 cat >>confdefs.h <<\_ACEOF
19426 #define PROTOTYPES 1
19430 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19431 if test -z "$CCOPTS"; then
19432 CCOPTS='-g -O2 -Wall'
19440 largefile_support="no"
19442 # Check whether --enable-largefile was given.
19443 if test "${enable_largefile+set}" = set; then
19444 enableval=$enable_largefile;
19447 if test "$enable_largefile" != no; then
19448 if test -n "$ac_tool_prefix"; then
19449 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19450 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19453 if test "${ac_cv_prog_GETCONF+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 if test -n "$GETCONF"; then
19457 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19463 test -z "$as_dir" && as_dir=.
19464 for ac_exec_ext in '' $ac_executable_extensions; do
19465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19466 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19476 GETCONF=$ac_cv_prog_GETCONF
19477 if test -n "$GETCONF"; then
19478 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19479 echo "${ECHO_T}$GETCONF" >&6; }
19481 { echo "$as_me:$LINENO: result: no" >&5
19482 echo "${ECHO_T}no" >&6; }
19487 if test -z "$ac_cv_prog_GETCONF"; then
19488 ac_ct_GETCONF=$GETCONF
19489 # Extract the first word of "getconf", so it can be a program name with args.
19490 set dummy getconf; ac_word=$2
19491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19493 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 if test -n "$ac_ct_GETCONF"; then
19497 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500 for as_dir in $PATH
19503 test -z "$as_dir" && as_dir=.
19504 for ac_exec_ext in '' $ac_executable_extensions; do
19505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19506 ac_cv_prog_ac_ct_GETCONF="getconf"
19507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19516 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19517 if test -n "$ac_ct_GETCONF"; then
19518 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19519 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19521 { echo "$as_me:$LINENO: result: no" >&5
19522 echo "${ECHO_T}no" >&6; }
19525 if test "x$ac_ct_GETCONF" = x; then
19528 case $cross_compiling:$ac_tool_warned in
19530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19531 whose name does not start with the host triplet. If you think this
19532 configuration is useful to you, please write to autoconf@gnu.org." >&5
19533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19534 whose name does not start with the host triplet. If you think this
19535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19536 ac_tool_warned=yes ;;
19538 GETCONF=$ac_ct_GETCONF
19541 GETCONF="$ac_cv_prog_GETCONF"
19544 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19545 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19546 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19550 ac_cv_sys_largefile_CFLAGS=no
19552 # IRIX 6.2 and later require cc -n32.
19553 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19554 if test "$GCC" != yes; then
19555 ac_cv_sys_largefile_CFLAGS=-n32
19558 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19583 grep -v '^ *+' conftest.er1 >conftest.err
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19589 { (case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_try") 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest$ac_exeext'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_cv_sys_largefile_CFLAGS=no
19616 rm -f core conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
19622 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19623 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19624 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19625 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19626 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19630 ac_cv_sys_largefile_LDFLAGS=no
19634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19635 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19636 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19637 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19638 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19642 ac_cv_sys_largefile_LIBS=no
19646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19647 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19649 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19652 -D_FILE_OFFSET_BITS=*) ;;
19653 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19654 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19659 case "$CPPFLAGS" in
19660 '') CPPFLAGS="$ac_flag" ;;
19661 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19669 '') CFLAGS="$ac_flag" ;;
19670 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19675 case "$ac_cv_sys_largefile_LDFLAGS" in
19679 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19680 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19683 case "$ac_cv_sys_largefile_LIBS" in
19687 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19688 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19691 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19692 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 ac_cv_sys_file_offset_bits=no
19697 ac_cv_sys_file_offset_bits=64
19698 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19700 -D_FILE_OFFSET_BITS)
19701 ac_cv_sys_file_offset_bits=1 ;;
19702 -D_FILE_OFFSET_BITS=*)
19703 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19708 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19709 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19710 if test "$ac_cv_sys_file_offset_bits" != no; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19717 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19718 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19719 if test "${ac_cv_sys_largefile_source+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 ac_cv_sys_largefile_source=no
19723 ac_cv_sys_largefile_source=1
19724 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19726 -D_LARGEFILE_SOURCE)
19727 ac_cv_sys_largefile_source=1 ;;
19728 -D_LARGEFILE_SOURCE=*)
19729 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19734 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19735 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19736 if test "$ac_cv_sys_largefile_source" != no; then
19738 cat >>confdefs.h <<_ACEOF
19739 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19743 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19744 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19745 if test "${ac_cv_sys_large_files+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 ac_cv_sys_large_files=no
19749 ac_cv_sys_large_files=1
19750 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19753 ac_cv_sys_large_files=1 ;;
19755 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19760 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19761 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19762 if test "$ac_cv_sys_large_files" != no; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define _LARGE_FILES $ac_cv_sys_large_files
19773 { echo "$as_me:$LINENO: checking for X" >&5
19774 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19777 # Check whether --with-x was given.
19778 if test "${with_x+set}" = set; then
19782 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19783 if test "x$with_x" = xno; then
19784 # The user explicitly disabled X.
19787 case $x_includes,$x_libraries in #(
19788 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19789 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19790 { (exit 1); exit 1; }; };; #(
19791 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 # One or both of the vars are not set, and there is no cached value.
19795 ac_x_includes=no ac_x_libraries=no
19796 rm -f -r conftest.dir
19797 if mkdir conftest.dir; then
19799 cat >Imakefile <<'_ACEOF'
19801 @echo incroot='${INCROOT}'
19803 @echo usrlibdir='${USRLIBDIR}'
19805 @echo libdir='${LIBDIR}'
19807 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19809 for ac_var in incroot usrlibdir libdir; do
19810 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19812 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19813 for ac_extension in a so sl; do
19814 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19815 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19816 ac_im_usrlibdir=$ac_im_libdir; break
19819 # Screen out bogus values from the imake configuration. They are
19820 # bogus both because they are the default anyway, and because
19821 # using them would break gcc on systems where it needs fixed includes.
19822 case $ac_im_incroot in
19823 /usr/include) ac_x_includes= ;;
19824 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19826 case $ac_im_usrlibdir in
19827 /usr/lib | /lib) ;;
19828 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19832 rm -f -r conftest.dir
19835 # Standard set of common directories for X headers.
19836 # Check X11 before X11Rn because it is often a symlink to the current release.
19848 /usr/local/X11/include
19849 /usr/local/X11R6/include
19850 /usr/local/X11R5/include
19851 /usr/local/X11R4/include
19853 /usr/local/include/X11
19854 /usr/local/include/X11R6
19855 /usr/local/include/X11R5
19856 /usr/local/include/X11R4
19860 /usr/XFree86/include/X11
19864 /usr/unsupported/include
19865 /usr/athena/include
19866 /usr/local/x11r5/include
19867 /usr/lpp/Xamples/include
19869 /usr/openwin/include
19870 /usr/openwin/share/include'
19872 if test "$ac_x_includes" = no; then
19873 # Guess where to find include files, by looking for Xlib.h.
19874 # First, try using that file with no special directory specified.
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 #include <X11/Xlib.h>
19883 if { (ac_try="$ac_cpp conftest.$ac_ext"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } >/dev/null; then
19896 if test -s conftest.err; then
19897 ac_cpp_err=$ac_c_preproc_warn_flag
19898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19905 if test -z "$ac_cpp_err"; then
19906 # We can compile using X headers with no special include directory.
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 for ac_dir in $ac_x_header_dirs; do
19913 if test -r "$ac_dir/X11/Xlib.h"; then
19914 ac_x_includes=$ac_dir
19920 rm -f conftest.err conftest.$ac_ext
19921 fi # $ac_x_includes = no
19923 if test "$ac_x_libraries" = no; then
19924 # Check for the libraries.
19925 # See if we find them without any special options.
19926 # Don't add to $LIBS permanently.
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <X11/Xlib.h>
19944 rm -f conftest.$ac_objext conftest$ac_exeext
19945 if { (ac_try="$ac_link"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_link") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } &&
19958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; } &&
19968 { ac_try='test -s conftest$ac_exeext'
19969 { (case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_try") 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19979 # We can link X programs with no special library path.
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19986 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19988 # Don't even attempt the hair of trying to link an X program!
19989 for ac_extension in a so sl; do
19990 if test -r "$ac_dir/libXt.$ac_extension"; then
19991 ac_x_libraries=$ac_dir
19998 rm -f core conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20000 fi # $ac_x_libraries = no
20002 case $ac_x_includes,$ac_x_libraries in #(
20003 no,* | *,no | *\'*)
20004 # Didn't find X, or a directory has "'" in its name.
20005 ac_cv_have_x="have_x=no";; #(
20007 # Record where we found X for the cache.
20008 ac_cv_have_x="have_x=yes\
20009 ac_x_includes='$ac_x_includes'\
20010 ac_x_libraries='$ac_x_libraries'"
20016 eval "$ac_cv_have_x"
20019 if test "$have_x" != yes; then
20020 { echo "$as_me:$LINENO: result: $have_x" >&5
20021 echo "${ECHO_T}$have_x" >&6; }
20024 # If each of the values was on the command line, it overrides each guess.
20025 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20026 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20027 # Update the cache value to reflect the command line values.
20028 ac_cv_have_x="have_x=yes\
20029 ac_x_includes='$x_includes'\
20030 ac_x_libraries='$x_libraries'"
20031 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20032 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20035 if test "$no_x" = yes; then
20036 # Not all programs may use this symbol, but it does not hurt to define it.
20038 cat >>confdefs.h <<\_ACEOF
20039 #define X_DISPLAY_MISSING 1
20042 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20044 if test -n "$x_includes"; then
20045 X_CFLAGS="$X_CFLAGS -I$x_includes"
20048 # It would also be nice to do this for all -L options, not just this one.
20049 if test -n "$x_libraries"; then
20050 X_LIBS="$X_LIBS -L$x_libraries"
20051 # For Solaris; some versions of Sun CC require a space after -R and
20052 # others require no space. Words are not sufficient . . . .
20053 case `(uname -sr) 2>/dev/null` in
20055 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20056 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20057 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20073 rm -f conftest.$ac_objext conftest$ac_exeext
20074 if { (ac_try="$ac_link"
20075 case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_link") 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20088 { (case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_try") 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest$ac_exeext'
20098 { (case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_try") 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20115 rm -f core conftest.err conftest.$ac_objext \
20116 conftest$ac_exeext conftest.$ac_ext
20117 if test $ac_R_nospace = yes; then
20118 { echo "$as_me:$LINENO: result: no" >&5
20119 echo "${ECHO_T}no" >&6; }
20120 X_LIBS="$X_LIBS -R$x_libraries"
20122 LIBS="$ac_xsave_LIBS -R $x_libraries"
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest$ac_exeext'
20163 { (case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_try") 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182 if test $ac_R_space = yes; then
20183 { echo "$as_me:$LINENO: result: yes" >&5
20184 echo "${ECHO_T}yes" >&6; }
20185 X_LIBS="$X_LIBS -R $x_libraries"
20187 { echo "$as_me:$LINENO: result: neither works" >&5
20188 echo "${ECHO_T}neither works" >&6; }
20191 LIBS=$ac_xsave_LIBS
20195 # Check for system-dependent libraries X programs must link with.
20196 # Do this before checking for the system-independent R6 libraries
20197 # (-lICE), since we may need -lsocket or whatever for X linking.
20199 if test "$ISC" = yes; then
20200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20202 # Martyn Johnson says this is needed for Ultrix, if the X
20203 # libraries were built with DECnet support. And Karl Berry says
20204 # the Alpha needs dnet_stub (dnet does not exist).
20205 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20206 cat >conftest.$ac_ext <<_ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20213 /* Override any GCC internal prototype to avoid an error.
20214 Use char because int might match the return type of a GCC
20215 builtin and then its argument prototype would still apply. */
20219 char XOpenDisplay ();
20223 return XOpenDisplay ();
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1 >conftest.err
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20268 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20269 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-ldnet $LIBS"
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 /* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20291 return dnet_ntoa ();
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_link") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_cv_lib_dnet_dnet_ntoa=yes
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_cv_lib_dnet_dnet_ntoa=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20340 LIBS=$ac_check_lib_save_LIBS
20342 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20343 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20344 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20345 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20348 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20349 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20350 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20351 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 ac_check_lib_save_LIBS=$LIBS
20355 LIBS="-ldnet_stub $LIBS"
20356 cat >conftest.$ac_ext <<_ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20363 /* Override any GCC internal prototype to avoid an error.
20364 Use char because int might match the return type of a GCC
20365 builtin and then its argument prototype would still apply. */
20373 return dnet_ntoa ();
20378 rm -f conftest.$ac_objext conftest$ac_exeext
20379 if { (ac_try="$ac_link"
20380 case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_link") 2>conftest.er1
20387 grep -v '^ *+' conftest.er1 >conftest.err
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest$ac_exeext'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_lib_dnet_stub_dnet_ntoa=no
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20425 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20426 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20427 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20433 rm -f core conftest.err conftest.$ac_objext \
20434 conftest$ac_exeext conftest.$ac_ext
20435 LIBS="$ac_xsave_LIBS"
20437 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20438 # to get the SysV transport functions.
20439 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20441 # The nsl library prevents programs from opening the X display
20442 # on Irix 5.2, according to T.E. Dickey.
20443 # The functions gethostbyname, getservbyname, and inet_addr are
20444 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20445 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20446 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20447 if test "${ac_cv_func_gethostbyname+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20458 #define gethostbyname innocuous_gethostbyname
20460 /* System header to define __stub macros and hopefully few prototypes,
20461 which can conflict with char gethostbyname (); below.
20462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20463 <limits.h> exists even on freestanding compilers. */
20466 # include <limits.h>
20468 # include <assert.h>
20471 #undef gethostbyname
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20479 char gethostbyname ();
20480 /* The GNU C library defines this for functions which it implements
20481 to always fail with ENOSYS. Some functions are actually named
20482 something starting with __ and the normal name is an alias. */
20483 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20490 return gethostbyname ();
20495 rm -f conftest.$ac_objext conftest$ac_exeext
20496 if { (ac_try="$ac_link"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_link") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20510 { (case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_try") 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest$ac_exeext'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_func_gethostbyname=yes
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 ac_cv_func_gethostbyname=no
20537 rm -f core conftest.err conftest.$ac_objext \
20538 conftest$ac_exeext conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20541 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20543 if test $ac_cv_func_gethostbyname = no; then
20544 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20545 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20546 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 ac_check_lib_save_LIBS=$LIBS
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 /* Override any GCC internal prototype to avoid an error.
20559 Use char because int might match the return type of a GCC
20560 builtin and then its argument prototype would still apply. */
20564 char gethostbyname ();
20568 return gethostbyname ();
20573 rm -f conftest.$ac_objext conftest$ac_exeext
20574 if { (ac_try="$ac_link"
20575 case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_link") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20588 { (case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_try") 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest$ac_exeext'
20598 { (case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_try") 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_lib_nsl_gethostbyname=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_cv_lib_nsl_gethostbyname=no
20615 rm -f core conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20617 LIBS=$ac_check_lib_save_LIBS
20619 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20620 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20621 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20625 if test $ac_cv_lib_nsl_gethostbyname = no; then
20626 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20627 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20628 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 ac_check_lib_save_LIBS=$LIBS
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20640 /* Override any GCC internal prototype to avoid an error.
20641 Use char because int might match the return type of a GCC
20642 builtin and then its argument prototype would still apply. */
20646 char gethostbyname ();
20650 return gethostbyname ();
20655 rm -f conftest.$ac_objext conftest$ac_exeext
20656 if { (ac_try="$ac_link"
20657 case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_link") 2>conftest.er1
20664 grep -v '^ *+' conftest.er1 >conftest.err
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
20669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20670 { (case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_try") 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest$ac_exeext'
20680 { (case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_try") 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_lib_bsd_gethostbyname=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_lib_bsd_gethostbyname=no
20697 rm -f core conftest.err conftest.$ac_objext \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20702 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20703 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20710 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20711 # socket/setsockopt and other routines are undefined under SCO ODT
20712 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20713 # on later versions), says Simon Leinen: it contains gethostby*
20714 # variants that don't use the name server (or something). -lsocket
20715 # must be given before -lnsl if both are needed. We assume that
20716 # if connect needs -lnsl, so does gethostbyname.
20717 { echo "$as_me:$LINENO: checking for connect" >&5
20718 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20719 if test "${ac_cv_func_connect+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20730 #define connect innocuous_connect
20732 /* System header to define __stub macros and hopefully few prototypes,
20733 which can conflict with char connect (); below.
20734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735 <limits.h> exists even on freestanding compilers. */
20738 # include <limits.h>
20740 # include <assert.h>
20745 /* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20752 /* The GNU C library defines this for functions which it implements
20753 to always fail with ENOSYS. Some functions are actually named
20754 something starting with __ and the normal name is an alias. */
20755 #if defined __stub_connect || defined __stub___connect
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_link") 2>conftest.er1
20776 grep -v '^ *+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; } &&
20791 { ac_try='test -s conftest$ac_exeext'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_cv_func_connect=yes
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 ac_cv_func_connect=no
20809 rm -f core conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20812 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20813 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20815 if test $ac_cv_func_connect = no; then
20816 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20817 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20818 if test "${ac_cv_lib_socket_connect+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 ac_check_lib_save_LIBS=$LIBS
20822 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20823 cat >conftest.$ac_ext <<_ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20830 /* Override any GCC internal prototype to avoid an error.
20831 Use char because int might match the return type of a GCC
20832 builtin and then its argument prototype would still apply. */
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_link") 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20860 { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest$ac_exeext'
20870 { (case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_try") 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_cv_lib_socket_connect=yes
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_cv_lib_socket_connect=no
20887 rm -f core conftest.err conftest.$ac_objext \
20888 conftest$ac_exeext conftest.$ac_ext
20889 LIBS=$ac_check_lib_save_LIBS
20891 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20892 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20893 if test $ac_cv_lib_socket_connect = yes; then
20894 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20899 # Guillermo Gomez says -lposix is necessary on A/UX.
20900 { echo "$as_me:$LINENO: checking for remove" >&5
20901 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20902 if test "${ac_cv_func_remove+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20913 #define remove innocuous_remove
20915 /* System header to define __stub macros and hopefully few prototypes,
20916 which can conflict with char remove (); below.
20917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20918 <limits.h> exists even on freestanding compilers. */
20921 # include <limits.h>
20923 # include <assert.h>
20928 /* Override any GCC internal prototype to avoid an error.
20929 Use char because int might match the return type of a GCC
20930 builtin and then its argument prototype would still apply. */
20935 /* The GNU C library defines this for functions which it implements
20936 to always fail with ENOSYS. Some functions are actually named
20937 something starting with __ and the normal name is an alias. */
20938 #if defined __stub_remove || defined __stub___remove
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_link") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20965 { (case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_try") 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest$ac_exeext'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_func_remove=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_func_remove=no
20992 rm -f core conftest.err conftest.$ac_objext \
20993 conftest$ac_exeext conftest.$ac_ext
20995 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20996 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20998 if test $ac_cv_func_remove = no; then
20999 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21000 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21001 if test "${ac_cv_lib_posix_remove+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 ac_check_lib_save_LIBS=$LIBS
21005 LIBS="-lposix $LIBS"
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21013 /* Override any GCC internal prototype to avoid an error.
21014 Use char because int might match the return type of a GCC
21015 builtin and then its argument prototype would still apply. */
21028 rm -f conftest.$ac_objext conftest$ac_exeext
21029 if { (ac_try="$ac_link"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_link") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest$ac_exeext'
21053 { (case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_try") 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_lib_posix_remove=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_lib_posix_remove=no
21070 rm -f core conftest.err conftest.$ac_objext \
21071 conftest$ac_exeext conftest.$ac_ext
21072 LIBS=$ac_check_lib_save_LIBS
21074 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21075 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21076 if test $ac_cv_lib_posix_remove = yes; then
21077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21082 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21083 { echo "$as_me:$LINENO: checking for shmat" >&5
21084 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21085 if test "${ac_cv_func_shmat+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21096 #define shmat innocuous_shmat
21098 /* System header to define __stub macros and hopefully few prototypes,
21099 which can conflict with char shmat (); below.
21100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21101 <limits.h> exists even on freestanding compilers. */
21104 # include <limits.h>
21106 # include <assert.h>
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21118 /* The GNU C library defines this for functions which it implements
21119 to always fail with ENOSYS. Some functions are actually named
21120 something starting with __ and the normal name is an alias. */
21121 #if defined __stub_shmat || defined __stub___shmat
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_link") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest$ac_exeext'
21158 { (case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_try") 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_func_shmat=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_func_shmat=no
21175 rm -f core conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21178 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21179 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21181 if test $ac_cv_func_shmat = no; then
21182 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21183 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21184 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 ac_check_lib_save_LIBS=$LIBS
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21196 /* Override any GCC internal prototype to avoid an error.
21197 Use char because int might match the return type of a GCC
21198 builtin and then its argument prototype would still apply. */
21211 rm -f conftest.$ac_objext conftest$ac_exeext
21212 if { (ac_try="$ac_link"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_link") 2>conftest.er1
21220 grep -v '^ *+' conftest.er1 >conftest.err
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21226 { (case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest$ac_exeext'
21236 { (case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_try") 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_lib_ipc_shmat=yes
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_lib_ipc_shmat=no
21253 rm -f core conftest.err conftest.$ac_objext \
21254 conftest$ac_exeext conftest.$ac_ext
21255 LIBS=$ac_check_lib_save_LIBS
21257 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21258 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21259 if test $ac_cv_lib_ipc_shmat = yes; then
21260 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21266 # Check for libraries that X11R6 Xt/Xaw programs need.
21267 ac_save_LDFLAGS=$LDFLAGS
21268 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21269 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21270 # check for ICE first), but we must link in the order -lSM -lICE or
21271 # we get undefined symbols. So assume we have SM if we have ICE.
21272 # These have to be linked with before -lX11, unlike the other
21273 # libraries we check for below, so use a different variable.
21274 # John Interrante, Karl Berry
21275 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21276 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21277 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_check_lib_save_LIBS=$LIBS
21281 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 /* Override any GCC internal prototype to avoid an error.
21290 Use char because int might match the return type of a GCC
21291 builtin and then its argument prototype would still apply. */
21295 char IceConnectionNumber ();
21299 return IceConnectionNumber ();
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_link") 2>conftest.er1
21313 grep -v '^ *+' conftest.er1 >conftest.err
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } &&
21318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21319 { (case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_try") 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_try") 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ac_cv_lib_ICE_IceConnectionNumber=yes
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ac_cv_lib_ICE_IceConnectionNumber=no
21346 rm -f core conftest.err conftest.$ac_objext \
21347 conftest$ac_exeext conftest.$ac_ext
21348 LIBS=$ac_check_lib_save_LIBS
21350 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21351 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21352 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21353 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21356 LDFLAGS=$ac_save_LDFLAGS
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426 { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21429 # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 #include <$ac_header>
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21456 { (case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_try") 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
21466 { (case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_try") 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_header_compiler=yes
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_compiler=no
21483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21485 echo "${ECHO_T}$ac_header_compiler" >&6; }
21487 # Is the header present?
21488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <$ac_header>
21498 if { (ac_try="$ac_cpp conftest.$ac_ext"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } >/dev/null; then
21511 if test -s conftest.err; then
21512 ac_cpp_err=$ac_c_preproc_warn_flag
21513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21520 if test -z "$ac_cpp_err"; then
21521 ac_header_preproc=yes
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_header_preproc=no
21529 rm -f conftest.err conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21531 echo "${ECHO_T}$ac_header_preproc" >&6; }
21533 # So? What about this header?
21534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21540 ac_header_preproc=yes
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 eval "$as_ac_Header=\$ac_header_preproc"
21565 ac_res=`eval echo '${'$as_ac_Header'}'`
21566 { echo "$as_me:$LINENO: result: $ac_res" >&5
21567 echo "${ECHO_T}$ac_res" >&6; }
21570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21571 cat >>confdefs.h <<_ACEOF
21572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21579 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21580 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21581 if test "${ac_cv_header_stdc+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <stdlib.h>
21591 #include <stdarg.h>
21592 #include <string.h>
21603 rm -f conftest.$ac_objext
21604 if { (ac_try="$ac_compile"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_compile") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } &&
21617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21618 { (case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_try") 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_try") 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 ac_cv_header_stdc=yes
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 ac_cv_header_stdc=no
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 if test $ac_cv_header_stdc = yes; then
21648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 #include <string.h>
21658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21659 $EGREP "memchr" >/dev/null 2>&1; then
21662 ac_cv_header_stdc=no
21668 if test $ac_cv_header_stdc = yes; then
21669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 #include <stdlib.h>
21679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21680 $EGREP "free" >/dev/null 2>&1; then
21683 ac_cv_header_stdc=no
21689 if test $ac_cv_header_stdc = yes; then
21690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21691 if test "$cross_compiling" = yes; then
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21701 #include <stdlib.h>
21702 #if ((' ' & 0x0FF) == 0x020)
21703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21706 # define ISLOWER(c) \
21707 (('a' <= (c) && (c) <= 'i') \
21708 || ('j' <= (c) && (c) <= 'r') \
21709 || ('s' <= (c) && (c) <= 'z'))
21710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21718 for (i = 0; i < 256; i++)
21719 if (XOR (islower (i), ISLOWER (i))
21720 || toupper (i) != TOUPPER (i))
21725 rm -f conftest$ac_exeext
21726 if { (ac_try="$ac_link"
21727 case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_link") 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21736 { (case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_try") 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; }; then
21747 echo "$as_me: program exited with status $ac_status" >&5
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 ( exit $ac_status )
21752 ac_cv_header_stdc=no
21754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21761 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21762 if test $ac_cv_header_stdc = yes; then
21764 cat >>confdefs.h <<\_ACEOF
21765 #define STDC_HEADERS 1
21770 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21771 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21772 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 #include <sys/types.h>
21785 return makedev(0, 0);
21790 rm -f conftest.$ac_objext conftest$ac_exeext
21791 if { (ac_try="$ac_link"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_link") 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
21804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21805 { (case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_try") 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_try") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; }; then
21824 ac_cv_header_sys_types_h_makedev=yes
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_header_sys_types_h_makedev=no
21832 rm -f core conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
21836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21839 if test $ac_cv_header_sys_types_h_makedev = no; then
21840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21841 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21849 # Is the header compilable?
21850 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 $ac_includes_default
21859 #include <sys/mkdev.h>
21861 rm -f conftest.$ac_objext
21862 if { (ac_try="$ac_compile"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_compile") 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21876 { (case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_try") 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; } &&
21885 { ac_try='test -s conftest.$ac_objext'
21886 { (case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_try") 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_header_compiler=yes
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_header_compiler=no
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21905 echo "${ECHO_T}$ac_header_compiler" >&6; }
21907 # Is the header present?
21908 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21909 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 #include <sys/mkdev.h>
21918 if { (ac_try="$ac_cpp conftest.$ac_ext"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } >/dev/null; then
21931 if test -s conftest.err; then
21932 ac_cpp_err=$ac_c_preproc_warn_flag
21933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21940 if test -z "$ac_cpp_err"; then
21941 ac_header_preproc=yes
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_header_preproc=no
21949 rm -f conftest.err conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21951 echo "${ECHO_T}$ac_header_preproc" >&6; }
21953 # So? What about this header?
21954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21957 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21959 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21960 ac_header_preproc=yes
21963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21964 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
21966 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21968 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
21970 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21974 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21978 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21979 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21980 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 ac_cv_header_sys_mkdev_h=$ac_header_preproc
21985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21986 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21989 if test $ac_cv_header_sys_mkdev_h = yes; then
21991 cat >>confdefs.h <<\_ACEOF
21992 #define MAJOR_IN_MKDEV 1
21999 if test $ac_cv_header_sys_mkdev_h = no; then
22000 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22001 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22002 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22003 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22007 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22009 # Is the header compilable?
22010 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22011 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 $ac_includes_default
22019 #include <sys/sysmacros.h>
22021 rm -f conftest.$ac_objext
22022 if { (ac_try="$ac_compile"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_compile") 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest.$ac_objext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_header_compiler=yes
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_header_compiler=no
22063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22065 echo "${ECHO_T}$ac_header_compiler" >&6; }
22067 # Is the header present?
22068 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22069 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <sys/sysmacros.h>
22078 if { (ac_try="$ac_cpp conftest.$ac_ext"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } >/dev/null; then
22091 if test -s conftest.err; then
22092 ac_cpp_err=$ac_c_preproc_warn_flag
22093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22100 if test -z "$ac_cpp_err"; then
22101 ac_header_preproc=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_header_preproc=no
22109 rm -f conftest.err conftest.$ac_ext
22110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22111 echo "${ECHO_T}$ac_header_preproc" >&6; }
22113 # So? What about this header?
22114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22117 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22119 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22120 ac_header_preproc=yes
22123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22124 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22126 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22128 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22130 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22132 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22134 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22138 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22139 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22140 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22145 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22146 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22149 if test $ac_cv_header_sys_sysmacros_h = yes; then
22151 cat >>confdefs.h <<\_ACEOF
22152 #define MAJOR_IN_SYSMACROS 1
22166 ac_header_dirent=no
22167 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22168 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22169 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22170 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <sys/types.h>
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_compile") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } &&
22206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22207 { (case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_try") 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_try") 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 eval "$as_ac_Header=yes"
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 eval "$as_ac_Header=no"
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 ac_res=`eval echo '${'$as_ac_Header'}'`
22237 { echo "$as_me:$LINENO: result: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22244 ac_header_dirent=$ac_hdr; break
22248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22249 if test $ac_header_dirent = dirent.h; then
22250 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22252 if test "${ac_cv_search_opendir+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 ac_func_search_save_LIBS=$LIBS
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22263 /* Override any GCC internal prototype to avoid an error.
22264 Use char because int might match the return type of a GCC
22265 builtin and then its argument prototype would still apply. */
22278 for ac_lib in '' dir; do
22279 if test -z "$ac_lib"; then
22280 ac_res="none required"
22283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22285 rm -f conftest.$ac_objext conftest$ac_exeext
22286 if { (ac_try="$ac_link"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_link") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
22299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22300 { (case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305 (eval "$ac_try") 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; } &&
22309 { ac_try='test -s conftest$ac_exeext'
22310 { (case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_try") 2>&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; }; then
22319 ac_cv_search_opendir=$ac_res
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22327 rm -f core conftest.err conftest.$ac_objext \
22329 if test "${ac_cv_search_opendir+set}" = set; then
22333 if test "${ac_cv_search_opendir+set}" = set; then
22336 ac_cv_search_opendir=no
22338 rm conftest.$ac_ext
22339 LIBS=$ac_func_search_save_LIBS
22341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22343 ac_res=$ac_cv_search_opendir
22344 if test "$ac_res" != no; then
22345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22350 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22351 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22352 if test "${ac_cv_search_opendir+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 ac_func_search_save_LIBS=$LIBS
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22363 /* Override any GCC internal prototype to avoid an error.
22364 Use char because int might match the return type of a GCC
22365 builtin and then its argument prototype would still apply. */
22378 for ac_lib in '' x; do
22379 if test -z "$ac_lib"; then
22380 ac_res="none required"
22383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (ac_try="$ac_link"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_link") 2>conftest.er1
22394 grep -v '^ *+' conftest.er1 >conftest.err
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
22399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22400 { (case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_try") 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; } &&
22409 { ac_try='test -s conftest$ac_exeext'
22410 { (case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_try") 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419 ac_cv_search_opendir=$ac_res
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22427 rm -f core conftest.err conftest.$ac_objext \
22429 if test "${ac_cv_search_opendir+set}" = set; then
22433 if test "${ac_cv_search_opendir+set}" = set; then
22436 ac_cv_search_opendir=no
22438 rm conftest.$ac_ext
22439 LIBS=$ac_func_search_save_LIBS
22441 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22443 ac_res=$ac_cv_search_opendir
22444 if test "$ac_res" != no; then
22445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22451 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22453 if test "${ac_cv_header_stat_broken+set}" = set; then
22454 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 cat >conftest.$ac_ext <<_ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22462 #include <sys/types.h>
22463 #include <sys/stat.h>
22465 #if defined S_ISBLK && defined S_IFDIR
22466 # if S_ISBLK (S_IFDIR)
22471 #if defined S_ISBLK && defined S_IFCHR
22472 # if S_ISBLK (S_IFCHR)
22477 #if defined S_ISLNK && defined S_IFREG
22478 # if S_ISLNK (S_IFREG)
22483 #if defined S_ISSOCK && defined S_IFREG
22484 # if S_ISSOCK (S_IFREG)
22490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22491 $EGREP "You lose" >/dev/null 2>&1; then
22492 ac_cv_header_stat_broken=yes
22494 ac_cv_header_stat_broken=no
22499 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22500 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22501 if test $ac_cv_header_stat_broken = yes; then
22503 cat >>confdefs.h <<\_ACEOF
22504 #define STAT_MACROS_BROKEN 1
22509 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22510 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22511 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 #include <sys/types.h>
22521 #include <sys/wait.h>
22522 #ifndef WEXITSTATUS
22523 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22526 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22554 { (case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_try") 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest.$ac_objext'
22564 { (case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_try") 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_cv_header_sys_wait_h=yes
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_cv_header_sys_wait_h=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22584 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22585 if test $ac_cv_header_sys_wait_h = yes; then
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_SYS_WAIT_H 1
22593 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22594 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22595 if test "${ac_cv_header_time+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 cat >conftest.$ac_ext <<_ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 #include <sys/types.h>
22605 #include <sys/time.h>
22611 if ((struct tm *) 0)
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_compile") 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
22631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22632 { (case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_try") 2>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; } &&
22641 { ac_try='test -s conftest.$ac_objext'
22642 { (case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647 (eval "$ac_try") 2>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 ac_cv_header_time=yes
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ac_cv_header_time=no
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22662 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22663 if test $ac_cv_header_time = yes; then
22665 cat >>confdefs.h <<\_ACEOF
22666 #define TIME_WITH_SYS_TIME 1
22671 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22672 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22673 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22686 static struct stat ac_aggr;
22687 if (ac_aggr.st_blksize)
22693 rm -f conftest.$ac_objext
22694 if { (ac_try="$ac_compile"
22695 case "(($ac_try" in
22696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697 *) ac_try_echo=$ac_try;;
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700 (eval "$ac_compile") 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22708 { (case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_try") 2>&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; } &&
22717 { ac_try='test -s conftest.$ac_objext'
22718 { (case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_try") 2>&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; }; then
22727 ac_cv_member_struct_stat_st_blksize=yes
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 $ac_includes_default
22742 static struct stat ac_aggr;
22743 if (sizeof ac_aggr.st_blksize)
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } &&
22763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22764 { (case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_try") 2>&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } &&
22773 { ac_try='test -s conftest.$ac_objext'
22774 { (case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_try") 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_member_struct_stat_st_blksize=yes
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 ac_cv_member_struct_stat_st_blksize=no
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22798 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22800 cat >>confdefs.h <<_ACEOF
22801 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_ST_BLKSIZE 1
22812 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22813 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22814 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 $ac_includes_default
22827 static struct stat ac_aggr;
22828 if (ac_aggr.st_blocks)
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22843 grep -v '^ *+' conftest.er1 >conftest.err
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } &&
22848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849 { (case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_try") 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest.$ac_objext'
22859 { (case "(($ac_try" in
22860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_try") 2>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_cv_member_struct_stat_st_blocks=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $ac_includes_default
22883 static struct stat ac_aggr;
22884 if (sizeof ac_aggr.st_blocks)
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } &&
22904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22905 { (case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_try") 2>&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest.$ac_objext'
22915 { (case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_try") 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22924 ac_cv_member_struct_stat_st_blocks=yes
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 ac_cv_member_struct_stat_st_blocks=no
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22939 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_ST_BLOCKS 1
22951 case " $LIBOBJS " in
22952 *" fileblocks.$ac_objext "* ) ;;
22953 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22960 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22961 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22962 if test "${ac_cv_struct_tm+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 #include <sys/types.h>
22977 struct tm *tp; tp->tm_sec;
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22991 grep -v '^ *+' conftest.er1 >conftest.err
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } &&
22996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22997 { (case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_try") 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; } &&
23006 { ac_try='test -s conftest.$ac_objext'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 ac_cv_struct_tm=time.h
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_cv_struct_tm=sys/time.h
23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23027 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23028 if test $ac_cv_struct_tm = sys/time.h; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define TM_IN_SYS_TIME 1
23036 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23037 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23038 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <sys/types.h>
23048 #include <$ac_cv_struct_tm>
23054 static struct tm ac_aggr;
23055 if (ac_aggr.tm_zone)
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076 { (case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_member_struct_tm_tm_zone=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 #include <sys/types.h>
23107 #include <$ac_cv_struct_tm>
23113 static struct tm ac_aggr;
23114 if (sizeof ac_aggr.tm_zone)
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } &&
23144 { ac_try='test -s conftest.$ac_objext'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_member_struct_tm_tm_zone=yes
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ac_cv_member_struct_tm_tm_zone=no
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23168 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23169 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23171 cat >>confdefs.h <<_ACEOF
23172 #define HAVE_STRUCT_TM_TM_ZONE 1
23178 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_TM_ZONE 1
23185 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23186 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23187 if test "${ac_cv_have_decl_tzname+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23202 char *p = (char *) tzname;
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23225 { (case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try='test -s conftest.$ac_objext'
23235 { (case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_try") 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_have_decl_tzname=yes
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_cv_have_decl_tzname=no
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23255 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23256 if test $ac_cv_have_decl_tzname = yes; then
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_DECL_TZNAME 1
23264 cat >>confdefs.h <<_ACEOF
23265 #define HAVE_DECL_TZNAME 0
23272 { echo "$as_me:$LINENO: checking for tzname" >&5
23273 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23274 if test "${ac_cv_var_tzname+set}" = set; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23284 #if !HAVE_DECL_TZNAME
23285 extern char *tzname[];
23291 return tzname[0][0];
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>conftest.er1
23305 grep -v '^ *+' conftest.er1 >conftest.err
23307 cat conftest.err >&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } &&
23310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23311 { (case "(($ac_try" in
23312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_try") 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest$ac_exeext'
23321 { (case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_try") 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ac_cv_var_tzname=yes
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_cv_var_tzname=no
23338 rm -f core conftest.err conftest.$ac_objext \
23339 conftest$ac_exeext conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23342 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23343 if test $ac_cv_var_tzname = yes; then
23345 cat >>confdefs.h <<\_ACEOF
23346 #define HAVE_TZNAME 1
23353 { echo "$as_me:$LINENO: checking for utime.h" >&5
23354 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23355 if test "${ba_cv_header_utime_h+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 cat >conftest.$ac_ext <<_ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23365 #include <sys/types.h>
23375 rm -f conftest.$ac_objext
23376 if { (ac_try="$ac_compile"
23377 case "(($ac_try" in
23378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382 (eval "$ac_compile") 2>conftest.er1
23384 grep -v '^ *+' conftest.er1 >conftest.err
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } &&
23389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23390 { (case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_try") 2>&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest.$ac_objext'
23400 { (case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_try") 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ba_cv_header_utime_h=yes
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ba_cv_header_utime_h=no
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23420 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23421 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23422 #define HAVE_UTIME_H 1
23426 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23427 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23428 if test "${ba_cv_header_socklen_t+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23438 #include <sys/types.h>
23439 #include <sys/socket.h>
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455 (eval "$ac_compile") 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463 { (case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_try") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest.$ac_objext'
23473 { (case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ba_cv_header_socklen_t=yes
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ba_cv_header_socklen_t=no
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23493 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23494 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23495 #define HAVE_SOCKLEN_T 1
23499 { echo "$as_me:$LINENO: checking for bigendian" >&5
23500 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23501 if test "${ba_cv_bigendian+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 if test "$cross_compiling" = yes; then
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23515 rm -f conftest$ac_exeext
23516 if { (ac_try="$ac_link"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_link") 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23526 { (case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_try") 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ba_cv_bigendian=yes
23537 echo "$as_me: program exited with status $ac_status" >&5
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 ( exit $ac_status )
23544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23549 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23550 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23551 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_BIGENDIAN 1
23557 ac_cpp='$CXXCPP $CPPFLAGS'
23558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23563 { echo "$as_me:$LINENO: checking for typeof" >&5
23564 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23565 if test "${ba_cv_have_typeof+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 if test "$cross_compiling" = yes; then
23569 ba_cv_have_typeof=no
23571 cat >conftest.$ac_ext <<_ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577 main(){char *a = 0; a = (typeof a)a;}
23579 rm -f conftest$ac_exeext
23580 if { (ac_try="$ac_link"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_link") 2>&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23590 { (case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_try") 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599 ba_cv_have_typeof=yes
23601 echo "$as_me: program exited with status $ac_status" >&5
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ( exit $ac_status )
23606 ba_cv_have_typeof=no
23608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23613 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23614 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23615 test $ba_cv_have_typeof = yes &&
23616 cat >>confdefs.h <<\_ACEOF
23617 #define HAVE_TYPEOF 1
23621 ac_cpp='$CPP $CPPFLAGS'
23622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23629 if test "${ac_cv_c_const+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23642 /* FIXME: Include the comments suggested by Paul. */
23643 #ifndef __cplusplus
23644 /* Ultrix mips cc rejects this. */
23645 typedef int charset[2];
23647 /* SunOS 4.1.1 cc rejects this. */
23648 char const *const *ccp;
23650 /* NEC SVR4.0.2 mips cc rejects this. */
23651 struct point {int x, y;};
23652 static struct point const zero = {0,0};
23653 /* AIX XL C 1.02.0.0 rejects this.
23654 It does not let you subtract one const X* pointer from another in
23655 an arm of an if-expression whose if-part is not a constant
23657 const char *g = "string";
23658 ccp = &g + (g ? g-g : 0);
23659 /* HPUX 7.0 cc rejects these. */
23662 ccp = (char const *const *) p;
23663 { /* SCO 3.2v4 cc rejects this. */
23665 char const *s = 0 ? (char *) 0 : (char const *) 0;
23670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23671 int x[] = {25, 17};
23672 const int *foo = &x[0];
23675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23676 typedef const int *iptr;
23680 { /* AIX XL C 1.02.0.0 rejects this saying
23681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23682 struct s { int j; const int *ap[3]; };
23683 struct s *b; b->j = 5;
23685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23686 const int foo = 10;
23687 if (!foo) return 0;
23689 return !x[0] && !zero.x;
23696 rm -f conftest.$ac_objext
23697 if { (ac_try="$ac_compile"
23698 case "(($ac_try" in
23699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23700 *) ac_try_echo=$ac_try;;
23702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23703 (eval "$ac_compile") 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23711 { (case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_try") 2>&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest.$ac_objext'
23721 { (case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_try") 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23741 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23742 if test $ac_cv_c_const = no; then
23744 cat >>confdefs.h <<\_ACEOF
23752 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23753 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23755 # The order of these tests is important.
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 #include <sys/statvfs.h>
23763 #include <sys/fstyp.h>
23765 if { (ac_try="$ac_cpp conftest.$ac_ext"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23773 grep -v '^ *+' conftest.er1 >conftest.err
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } >/dev/null; then
23778 if test -s conftest.err; then
23779 ac_cpp_err=$ac_c_preproc_warn_flag
23780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23787 if test -z "$ac_cpp_err"; then
23788 cat >>confdefs.h <<\_ACEOF
23789 #define FSTYPE_STATVFS 1
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23799 rm -f conftest.err conftest.$ac_ext
23800 if test $fstype = no; then
23801 cat >conftest.$ac_ext <<_ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 #include <sys/statfs.h>
23808 #include <sys/fstyp.h>
23810 if { (ac_try="$ac_cpp conftest.$ac_ext"
23811 case "(($ac_try" in
23812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23818 grep -v '^ *+' conftest.er1 >conftest.err
23820 cat conftest.err >&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } >/dev/null; then
23823 if test -s conftest.err; then
23824 ac_cpp_err=$ac_c_preproc_warn_flag
23825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23832 if test -z "$ac_cpp_err"; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define FSTYPE_USG_STATFS 1
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23844 rm -f conftest.err conftest.$ac_ext
23846 if test $fstype = no; then
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 #include <sys/statfs.h>
23854 #include <sys/vmount.h>
23856 if { (ac_try="$ac_cpp conftest.$ac_ext"
23857 case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23864 grep -v '^ *+' conftest.er1 >conftest.err
23866 cat conftest.err >&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } >/dev/null; then
23869 if test -s conftest.err; then
23870 ac_cpp_err=$ac_c_preproc_warn_flag
23871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23878 if test -z "$ac_cpp_err"; then
23879 cat >>confdefs.h <<\_ACEOF
23880 #define FSTYPE_AIX_STATFS 1
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23890 rm -f conftest.err conftest.$ac_ext
23892 if test $fstype = no; then
23893 cat >conftest.$ac_ext <<_ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h. */
23899 #include <mntent.h>
23901 if { (ac_try="$ac_cpp conftest.$ac_ext"
23902 case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23909 grep -v '^ *+' conftest.er1 >conftest.err
23911 cat conftest.err >&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } >/dev/null; then
23914 if test -s conftest.err; then
23915 ac_cpp_err=$ac_c_preproc_warn_flag
23916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23923 if test -z "$ac_cpp_err"; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define FSTYPE_MNTENT 1
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23935 rm -f conftest.err conftest.$ac_ext
23937 if test $fstype = no; then
23938 cat >conftest.$ac_ext <<_ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 #include <sys/mount.h>
23947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23948 $EGREP "f_type;" >/dev/null 2>&1; then
23949 cat >>confdefs.h <<\_ACEOF
23950 #define FSTYPE_STATFS 1
23957 if test $fstype = no; then
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 #include <sys/mount.h>
23965 #include <sys/fs_types.h>
23967 if { (ac_try="$ac_cpp conftest.$ac_ext"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23975 grep -v '^ *+' conftest.er1 >conftest.err
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } >/dev/null; then
23980 if test -s conftest.err; then
23981 ac_cpp_err=$ac_c_preproc_warn_flag
23982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23989 if test -z "$ac_cpp_err"; then
23990 cat >>confdefs.h <<\_ACEOF
23991 #define FSTYPE_GETMNT 1
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
24001 rm -f conftest.err conftest.$ac_ext
24003 { echo "$as_me:$LINENO: result: $fstype" >&5
24004 echo "${ECHO_T}$fstype" >&6; }
24006 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24007 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24008 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24009 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24013 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24015 # Is the header compilable?
24016 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24017 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 $ac_includes_default
24025 #include <sys/statvfs.h>
24027 rm -f conftest.$ac_objext
24028 if { (ac_try="$ac_compile"
24029 case "(($ac_try" in
24030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031 *) ac_try_echo=$ac_try;;
24033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24034 (eval "$ac_compile") 2>conftest.er1
24036 grep -v '^ *+' conftest.er1 >conftest.err
24038 cat conftest.err >&5
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } &&
24041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24042 { (case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047 (eval "$ac_try") 2>&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; } &&
24051 { ac_try='test -s conftest.$ac_objext'
24052 { (case "(($ac_try" in
24053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054 *) ac_try_echo=$ac_try;;
24056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057 (eval "$ac_try") 2>&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; }; then
24061 ac_header_compiler=yes
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24066 ac_header_compiler=no
24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24071 echo "${ECHO_T}$ac_header_compiler" >&6; }
24073 # Is the header present?
24074 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24075 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24076 cat >conftest.$ac_ext <<_ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 #include <sys/statvfs.h>
24084 if { (ac_try="$ac_cpp conftest.$ac_ext"
24085 case "(($ac_try" in
24086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087 *) ac_try_echo=$ac_try;;
24089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24092 grep -v '^ *+' conftest.er1 >conftest.err
24094 cat conftest.err >&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } >/dev/null; then
24097 if test -s conftest.err; then
24098 ac_cpp_err=$ac_c_preproc_warn_flag
24099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24106 if test -z "$ac_cpp_err"; then
24107 ac_header_preproc=yes
24109 echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24112 ac_header_preproc=no
24115 rm -f conftest.err conftest.$ac_ext
24116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24117 echo "${ECHO_T}$ac_header_preproc" >&6; }
24119 # So? What about this header?
24120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24122 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24123 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24125 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24126 ac_header_preproc=yes
24129 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24130 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24131 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24132 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24133 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24134 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24135 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24136 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24137 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24138 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24139 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24140 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24144 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24145 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24146 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24149 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24151 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24152 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24155 if test $ac_cv_header_sys_statvfs_h = yes; then
24157 cat >>confdefs.h <<\_ACEOF
24158 #define HAVE_SYS_STATVFS_H 1
24165 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24166 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24167 if test "${ac_cv_type_signal+set}" = set; then
24168 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 cat >conftest.$ac_ext <<_ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h. */
24176 #include <sys/types.h>
24177 #include <signal.h>
24182 return *(signal (0, 0)) (0) == 1;
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_compile") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
24201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24202 { (case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207 (eval "$ac_try") 2>&5
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; } &&
24211 { ac_try='test -s conftest.$ac_objext'
24212 { (case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_try") 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 ac_cv_type_signal=int
24223 echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24226 ac_cv_type_signal=void
24229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24231 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24232 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24234 cat >>confdefs.h <<_ACEOF
24235 #define RETSIGTYPE $ac_cv_type_signal
24240 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24241 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24242 if test "${bash_cv_signal_vintage+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 #include <signal.h>
24258 struct sigaction sa;
24259 sigemptyset(&ss); sigsuspend(&ss);
24260 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24261 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24267 rm -f conftest.$ac_objext conftest$ac_exeext
24268 if { (ac_try="$ac_link"
24269 case "(($ac_try" in
24270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_link") 2>conftest.er1
24276 grep -v '^ *+' conftest.er1 >conftest.err
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } &&
24281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24282 { (case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287 (eval "$ac_try") 2>&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; } &&
24291 { ac_try='test -s conftest$ac_exeext'
24292 { (case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_try") 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 bash_cv_signal_vintage="posix"
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 #include <signal.h>
24318 int mask = sigmask(SIGINT);
24319 sigsetmask(mask); sigblock(mask); sigpause(mask);
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (ac_try="$ac_link"
24327 case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_link") 2>conftest.er1
24334 grep -v '^ *+' conftest.er1 >conftest.err
24336 cat conftest.err >&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } &&
24339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24340 { (case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_try") 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; } &&
24349 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24359 bash_cv_signal_vintage="4.2bsd"
24361 echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24372 #include <signal.h>
24373 RETSIGTYPE foo() { }
24378 int mask = sigmask(SIGINT);
24379 sigset(SIGINT, foo); sigrelse(SIGINT);
24380 sighold(SIGINT); sigpause(SIGINT);
24386 rm -f conftest.$ac_objext conftest$ac_exeext
24387 if { (ac_try="$ac_link"
24388 case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_link") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24401 { (case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_try") 2>&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest$ac_exeext'
24411 { (case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_try") 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 bash_cv_signal_vintage="svr3"
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 bash_cv_signal_vintage="v7"
24429 rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
24434 rm -f core conftest.err conftest.$ac_objext \
24435 conftest$ac_exeext conftest.$ac_ext
24439 rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24445 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24446 if test "$bash_cv_signal_vintage" = "posix"; then
24447 cat >>confdefs.h <<\_ACEOF
24448 #define HAVE_POSIX_SIGNALS 1
24451 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24452 cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_BSD_SIGNALS 1
24456 elif test "$bash_cv_signal_vintage" = "svr3"; then
24457 cat >>confdefs.h <<\_ACEOF
24458 #define HAVE_USG_SIGHOLD 1
24463 { echo "$as_me:$LINENO: checking for mode_t" >&5
24464 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24465 if test "${ac_cv_type_mode_t+set}" = set; then
24466 echo $ECHO_N "(cached) $ECHO_C" >&6
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 $ac_includes_default
24475 typedef mode_t ac__type_new_;
24479 if ((ac__type_new_ *) 0)
24481 if (sizeof (ac__type_new_))
24487 rm -f conftest.$ac_objext
24488 if { (ac_try="$ac_compile"
24489 case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_compile") 2>conftest.er1
24496 grep -v '^ *+' conftest.er1 >conftest.err
24498 cat conftest.err >&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } &&
24501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24502 { (case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_try") 2>&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; } &&
24511 { ac_try='test -s conftest.$ac_objext'
24512 { (case "(($ac_try" in
24513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514 *) ac_try_echo=$ac_try;;
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_try") 2>&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); }; }; then
24521 ac_cv_type_mode_t=yes
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_cv_type_mode_t=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24533 if test $ac_cv_type_mode_t = yes; then
24537 cat >>confdefs.h <<_ACEOF
24543 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24544 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24545 if test "${ac_cv_type_uid_t+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 #include <sys/types.h>
24557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24558 $EGREP "uid_t" >/dev/null 2>&1; then
24559 ac_cv_type_uid_t=yes
24561 ac_cv_type_uid_t=no
24566 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24567 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24568 if test $ac_cv_type_uid_t = no; then
24570 cat >>confdefs.h <<\_ACEOF
24575 cat >>confdefs.h <<\_ACEOF
24581 { echo "$as_me:$LINENO: checking for size_t" >&5
24582 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24583 if test "${ac_cv_type_size_t+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 cat >conftest.$ac_ext <<_ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24592 $ac_includes_default
24593 typedef size_t ac__type_new_;
24597 if ((ac__type_new_ *) 0)
24599 if (sizeof (ac__type_new_))
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_compile") 2>conftest.er1
24614 grep -v '^ *+' conftest.er1 >conftest.err
24616 cat conftest.err >&5
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); } &&
24619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24620 { (case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_try") 2>&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; } &&
24629 { ac_try='test -s conftest.$ac_objext'
24630 { (case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_try") 2>&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 ac_cv_type_size_t=yes
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24644 ac_cv_type_size_t=no
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24649 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24650 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24651 if test $ac_cv_type_size_t = yes; then
24655 cat >>confdefs.h <<_ACEOF
24656 #define size_t unsigned int
24661 { echo "$as_me:$LINENO: checking for pid_t" >&5
24662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24663 if test "${ac_cv_type_pid_t+set}" = set; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24666 cat >conftest.$ac_ext <<_ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h. */
24672 $ac_includes_default
24673 typedef pid_t ac__type_new_;
24677 if ((ac__type_new_ *) 0)
24679 if (sizeof (ac__type_new_))
24685 rm -f conftest.$ac_objext
24686 if { (ac_try="$ac_compile"
24687 case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692 (eval "$ac_compile") 2>conftest.er1
24694 grep -v '^ *+' conftest.er1 >conftest.err
24696 cat conftest.err >&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } &&
24699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24700 { (case "(($ac_try" in
24701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702 *) ac_try_echo=$ac_try;;
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_try") 2>&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); }; } &&
24709 { ac_try='test -s conftest.$ac_objext'
24710 { (case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_try") 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; }; then
24719 ac_cv_type_pid_t=yes
24721 echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24724 ac_cv_type_pid_t=no
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24731 if test $ac_cv_type_pid_t = yes; then
24735 cat >>confdefs.h <<_ACEOF
24741 { echo "$as_me:$LINENO: checking for off_t" >&5
24742 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24743 if test "${ac_cv_type_off_t+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 $ac_includes_default
24753 typedef off_t ac__type_new_;
24757 if ((ac__type_new_ *) 0)
24759 if (sizeof (ac__type_new_))
24765 rm -f conftest.$ac_objext
24766 if { (ac_try="$ac_compile"
24767 case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_compile") 2>conftest.er1
24774 grep -v '^ *+' conftest.er1 >conftest.err
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
24779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24780 { (case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_try") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; } &&
24789 { ac_try='test -s conftest.$ac_objext'
24790 { (case "(($ac_try" in
24791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792 *) ac_try_echo=$ac_try;;
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795 (eval "$ac_try") 2>&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; }; then
24799 ac_cv_type_off_t=yes
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ac_cv_type_off_t=no
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24809 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24810 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24811 if test $ac_cv_type_off_t = yes; then
24815 cat >>confdefs.h <<_ACEOF
24816 #define off_t long int
24821 { echo "$as_me:$LINENO: checking for ino_t" >&5
24822 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24823 if test "${ac_cv_type_ino_t+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 typedef ino_t ac__type_new_;
24837 if ((ac__type_new_ *) 0)
24839 if (sizeof (ac__type_new_))
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_compile") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1 >conftest.err
24856 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } &&
24859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24860 { (case "(($ac_try" in
24861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862 *) ac_try_echo=$ac_try;;
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865 (eval "$ac_try") 2>&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest.$ac_objext'
24870 { (case "(($ac_try" in
24871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872 *) ac_try_echo=$ac_try;;
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875 (eval "$ac_try") 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; }; then
24879 ac_cv_type_ino_t=yes
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 ac_cv_type_ino_t=no
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24890 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24891 if test $ac_cv_type_ino_t = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define ino_t unsigned long
24901 { echo "$as_me:$LINENO: checking for dev_t" >&5
24902 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24903 if test "${ac_cv_type_dev_t+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24913 typedef dev_t ac__type_new_;
24917 if ((ac__type_new_ *) 0)
24919 if (sizeof (ac__type_new_))
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24934 grep -v '^ *+' conftest.er1 >conftest.err
24936 cat conftest.err >&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } &&
24939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24940 { (case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_try") 2>&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; } &&
24949 { ac_try='test -s conftest.$ac_objext'
24950 { (case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_try") 2>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; }; then
24959 ac_cv_type_dev_t=yes
24961 echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24964 ac_cv_type_dev_t=no
24967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24969 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24970 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24971 if test $ac_cv_type_dev_t = yes; then
24975 cat >>confdefs.h <<_ACEOF
24976 #define dev_t unsigned long
24981 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24982 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24983 if test "${ac_cv_type_daddr_t+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 cat >conftest.$ac_ext <<_ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24992 $ac_includes_default
24993 typedef daddr_t ac__type_new_;
24997 if ((ac__type_new_ *) 0)
24999 if (sizeof (ac__type_new_))
25005 rm -f conftest.$ac_objext
25006 if { (ac_try="$ac_compile"
25007 case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25020 { (case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_try") 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest.$ac_objext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 (eval "$ac_try") 2>&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 ac_cv_type_daddr_t=yes
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25044 ac_cv_type_daddr_t=no
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25050 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25051 if test $ac_cv_type_daddr_t = yes; then
25055 cat >>confdefs.h <<_ACEOF
25056 #define daddr_t long
25061 { echo "$as_me:$LINENO: checking for major_t" >&5
25062 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25063 if test "${ac_cv_type_major_t+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 $ac_includes_default
25073 typedef major_t ac__type_new_;
25077 if ((ac__type_new_ *) 0)
25079 if (sizeof (ac__type_new_))
25085 rm -f conftest.$ac_objext
25086 if { (ac_try="$ac_compile"
25087 case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_compile") 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25100 { (case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_try") 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest.$ac_objext'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_try") 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25119 ac_cv_type_major_t=yes
25121 echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 ac_cv_type_major_t=no
25127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25130 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25131 if test $ac_cv_type_major_t = yes; then
25135 cat >>confdefs.h <<_ACEOF
25136 #define major_t int
25141 { echo "$as_me:$LINENO: checking for minor_t" >&5
25142 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25143 if test "${ac_cv_type_minor_t+set}" = set; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
25146 cat >conftest.$ac_ext <<_ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 $ac_includes_default
25153 typedef minor_t ac__type_new_;
25157 if ((ac__type_new_ *) 0)
25159 if (sizeof (ac__type_new_))
25165 rm -f conftest.$ac_objext
25166 if { (ac_try="$ac_compile"
25167 case "(($ac_try" in
25168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169 *) ac_try_echo=$ac_try;;
25171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25172 (eval "$ac_compile") 2>conftest.er1
25174 grep -v '^ *+' conftest.er1 >conftest.err
25176 cat conftest.err >&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); } &&
25179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25180 { (case "(($ac_try" in
25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182 *) ac_try_echo=$ac_try;;
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185 (eval "$ac_try") 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest.$ac_objext'
25190 { (case "(($ac_try" in
25191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25192 *) ac_try_echo=$ac_try;;
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195 (eval "$ac_try") 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_type_minor_t=yes
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25204 ac_cv_type_minor_t=no
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25210 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25211 if test $ac_cv_type_minor_t = yes; then
25215 cat >>confdefs.h <<_ACEOF
25216 #define minor_t int
25221 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25222 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25223 if test "${ac_cv_type_ssize_t+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 $ac_includes_default
25233 typedef ssize_t ac__type_new_;
25237 if ((ac__type_new_ *) 0)
25239 if (sizeof (ac__type_new_))
25245 rm -f conftest.$ac_objext
25246 if { (ac_try="$ac_compile"
25247 case "(($ac_try" in
25248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249 *) ac_try_echo=$ac_try;;
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252 (eval "$ac_compile") 2>conftest.er1
25254 grep -v '^ *+' conftest.er1 >conftest.err
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } &&
25259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25260 { (case "(($ac_try" in
25261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25262 *) ac_try_echo=$ac_try;;
25264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25265 (eval "$ac_try") 2>&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); }; } &&
25269 { ac_try='test -s conftest.$ac_objext'
25270 { (case "(($ac_try" in
25271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272 *) ac_try_echo=$ac_try;;
25274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25275 (eval "$ac_try") 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_type_ssize_t=yes
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ac_cv_type_ssize_t=no
25287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25290 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25291 if test $ac_cv_type_ssize_t = yes; then
25295 cat >>confdefs.h <<_ACEOF
25296 #define ssize_t int
25301 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25302 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25303 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 $ac_includes_default
25316 static struct stat ac_aggr;
25317 if (ac_aggr.st_blocks)
25323 rm -f conftest.$ac_objext
25324 if { (ac_try="$ac_compile"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330 (eval "$ac_compile") 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25338 { (case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_try") 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest.$ac_objext'
25348 { (case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353 (eval "$ac_try") 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_cv_member_struct_stat_st_blocks=yes
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 $ac_includes_default
25372 static struct stat ac_aggr;
25373 if (sizeof ac_aggr.st_blocks)
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386 (eval "$ac_compile") 2>conftest.er1
25388 grep -v '^ *+' conftest.er1 >conftest.err
25390 cat conftest.err >&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } &&
25393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25394 { (case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25399 (eval "$ac_try") 2>&5
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; } &&
25403 { ac_try='test -s conftest.$ac_objext'
25404 { (case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409 (eval "$ac_try") 2>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413 ac_cv_member_struct_stat_st_blocks=yes
25415 echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25418 ac_cv_member_struct_stat_st_blocks=no
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25427 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25428 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25430 cat >>confdefs.h <<_ACEOF
25431 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25435 cat >>confdefs.h <<\_ACEOF
25436 #define HAVE_ST_BLOCKS 1
25440 case " $LIBOBJS " in
25441 *" fileblocks.$ac_objext "* ) ;;
25442 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25449 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25450 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25451 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25452 echo $ECHO_N "(cached) $ECHO_C" >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 $ac_includes_default
25464 static struct stat ac_aggr;
25465 if (ac_aggr.st_rdev)
25471 rm -f conftest.$ac_objext
25472 if { (ac_try="$ac_compile"
25473 case "(($ac_try" in
25474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25475 *) ac_try_echo=$ac_try;;
25477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25478 (eval "$ac_compile") 2>conftest.er1
25480 grep -v '^ *+' conftest.er1 >conftest.err
25482 cat conftest.err >&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); } &&
25485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25486 { (case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_try") 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; } &&
25495 { ac_try='test -s conftest.$ac_objext'
25496 { (case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_try") 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_member_struct_stat_st_rdev=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 $ac_includes_default
25520 static struct stat ac_aggr;
25521 if (sizeof ac_aggr.st_rdev)
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531 *) ac_try_echo=$ac_try;;
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534 (eval "$ac_compile") 2>conftest.er1
25536 grep -v '^ *+' conftest.er1 >conftest.err
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } &&
25541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25542 { (case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_try") 2>&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; } &&
25551 { ac_try='test -s conftest.$ac_objext'
25552 { (case "(($ac_try" in
25553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554 *) ac_try_echo=$ac_try;;
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557 (eval "$ac_try") 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25561 ac_cv_member_struct_stat_st_rdev=yes
25563 echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25566 ac_cv_member_struct_stat_st_rdev=no
25569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25575 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25576 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25578 cat >>confdefs.h <<_ACEOF
25579 #define HAVE_STRUCT_STAT_ST_RDEV 1
25583 cat >>confdefs.h <<\_ACEOF
25584 #define HAVE_ST_RDEV 1
25590 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25591 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25592 if test "${ac_cv_struct_tm+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25601 #include <sys/types.h>
25607 struct tm *tp; tp->tm_sec;
25612 rm -f conftest.$ac_objext
25613 if { (ac_try="$ac_compile"
25614 case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_compile") 2>conftest.er1
25621 grep -v '^ *+' conftest.er1 >conftest.err
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; } &&
25636 { ac_try='test -s conftest.$ac_objext'
25637 { (case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_try") 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_cv_struct_tm=time.h
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 ac_cv_struct_tm=sys/time.h
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25657 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25658 if test $ac_cv_struct_tm = sys/time.h; then
25660 cat >>confdefs.h <<\_ACEOF
25661 #define TM_IN_SYS_TIME 1
25666 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25668 if test "${ac_cv_c_const+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25681 /* FIXME: Include the comments suggested by Paul. */
25682 #ifndef __cplusplus
25683 /* Ultrix mips cc rejects this. */
25684 typedef int charset[2];
25686 /* SunOS 4.1.1 cc rejects this. */
25687 char const *const *ccp;
25689 /* NEC SVR4.0.2 mips cc rejects this. */
25690 struct point {int x, y;};
25691 static struct point const zero = {0,0};
25692 /* AIX XL C 1.02.0.0 rejects this.
25693 It does not let you subtract one const X* pointer from another in
25694 an arm of an if-expression whose if-part is not a constant
25696 const char *g = "string";
25697 ccp = &g + (g ? g-g : 0);
25698 /* HPUX 7.0 cc rejects these. */
25701 ccp = (char const *const *) p;
25702 { /* SCO 3.2v4 cc rejects this. */
25704 char const *s = 0 ? (char *) 0 : (char const *) 0;
25709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25710 int x[] = {25, 17};
25711 const int *foo = &x[0];
25714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25715 typedef const int *iptr;
25719 { /* AIX XL C 1.02.0.0 rejects this saying
25720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25721 struct s { int j; const int *ap[3]; };
25722 struct s *b; b->j = 5;
25724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25725 const int foo = 10;
25726 if (!foo) return 0;
25728 return !x[0] && !zero.x;
25735 rm -f conftest.$ac_objext
25736 if { (ac_try="$ac_compile"
25737 case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25742 (eval "$ac_compile") 2>conftest.er1
25744 grep -v '^ *+' conftest.er1 >conftest.err
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
25749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25750 { (case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_try") 2>&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; } &&
25759 { ac_try='test -s conftest.$ac_objext'
25760 { (case "(($ac_try" in
25761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762 *) ac_try_echo=$ac_try;;
25764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25765 (eval "$ac_try") 2>&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; }; then
25771 echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25779 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25780 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25781 if test $ac_cv_c_const = no; then
25783 cat >>confdefs.h <<\_ACEOF
25791 { echo "$as_me:$LINENO: checking for char" >&5
25792 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25793 if test "${ac_cv_type_char+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 cat >conftest.$ac_ext <<_ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h. */
25802 $ac_includes_default
25803 typedef char ac__type_new_;
25807 if ((ac__type_new_ *) 0)
25809 if (sizeof (ac__type_new_))
25815 rm -f conftest.$ac_objext
25816 if { (ac_try="$ac_compile"
25817 case "(($ac_try" in
25818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 *) ac_try_echo=$ac_try;;
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 (eval "$ac_compile") 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
25829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25830 { (case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25835 (eval "$ac_try") 2>&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); }; } &&
25839 { ac_try='test -s conftest.$ac_objext'
25840 { (case "(($ac_try" in
25841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842 *) ac_try_echo=$ac_try;;
25844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845 (eval "$ac_try") 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_type_char=yes
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25859 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25860 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25862 { echo "$as_me:$LINENO: checking size of char" >&5
25863 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25864 if test "${ac_cv_sizeof_char+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 if test "$ac_cv_type_char" = yes; then
25868 # The cast to long int works around a bug in the HP C Compiler
25869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25871 # This bug is HP SR number 8606223364.
25872 if test "$cross_compiling" = yes; then
25873 # Depending upon the size, compute the lo and hi bounds.
25874 cat >conftest.$ac_ext <<_ACEOF
25877 cat confdefs.h >>conftest.$ac_ext
25878 cat >>conftest.$ac_ext <<_ACEOF
25879 /* end confdefs.h. */
25880 $ac_includes_default
25881 typedef char ac__type_sizeof_;
25885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25892 rm -f conftest.$ac_objext
25893 if { (ac_try="$ac_compile"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_compile") 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25907 { (case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912 (eval "$ac_try") 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest.$ac_objext'
25917 { (case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_try") 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; }; then
25928 cat >conftest.$ac_ext <<_ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25934 $ac_includes_default
25935 typedef char ac__type_sizeof_;
25939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25946 rm -f conftest.$ac_objext
25947 if { (ac_try="$ac_compile"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_compile") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } &&
25960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25961 { (case "(($ac_try" in
25962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963 *) ac_try_echo=$ac_try;;
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966 (eval "$ac_try") 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; } &&
25970 { ac_try='test -s conftest.$ac_objext'
25971 { (case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_try") 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; }; then
25980 ac_hi=$ac_mid; break
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 ac_lo=`expr $ac_mid + 1`
25986 if test $ac_lo -le $ac_mid; then
25990 ac_mid=`expr 2 '*' $ac_mid + 1`
25993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996 echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 $ac_includes_default
26006 typedef char ac__type_sizeof_;
26010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } &&
26031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26032 { (case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_try") 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_try") 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 $ac_includes_default
26060 typedef char ac__type_sizeof_;
26064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078 (eval "$ac_compile") 2>conftest.er1
26080 grep -v '^ *+' conftest.er1 >conftest.err
26082 cat conftest.err >&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } &&
26085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26086 { (case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26091 (eval "$ac_try") 2>&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; } &&
26095 { ac_try='test -s conftest.$ac_objext'
26096 { (case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26101 (eval "$ac_try") 2>&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 ac_lo=$ac_mid; break
26107 echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26110 ac_hi=`expr '(' $ac_mid ')' - 1`
26111 if test $ac_mid -le $ac_hi; then
26115 ac_mid=`expr 2 '*' $ac_mid`
26118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131 # Binary search between lo and hi bounds.
26132 while test "x$ac_lo" != "x$ac_hi"; do
26133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26134 cat >conftest.$ac_ext <<_ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h. */
26140 $ac_includes_default
26141 typedef char ac__type_sizeof_;
26145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159 (eval "$ac_compile") 2>conftest.er1
26161 grep -v '^ *+' conftest.er1 >conftest.err
26163 cat conftest.err >&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } &&
26166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26167 { (case "(($ac_try" in
26168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26169 *) ac_try_echo=$ac_try;;
26171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26172 (eval "$ac_try") 2>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; } &&
26176 { ac_try='test -s conftest.$ac_objext'
26177 { (case "(($ac_try" in
26178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179 *) ac_try_echo=$ac_try;;
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182 (eval "$ac_try") 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; }; then
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ac_lo=`expr '(' $ac_mid ')' + 1`
26194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197 ?*) ac_cv_sizeof_char=$ac_lo;;
26198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26199 See \`config.log' for more details." >&5
26200 echo "$as_me: error: cannot compute sizeof (char)
26201 See \`config.log' for more details." >&2;}
26202 { (exit 77); exit 77; }; } ;;
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26211 $ac_includes_default
26212 typedef char ac__type_sizeof_;
26213 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26214 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26216 #include <stdlib.h>
26221 FILE *f = fopen ("conftest.val", "w");
26224 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26226 long int i = longval ();
26227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26229 fprintf (f, "%ld\n", i);
26233 unsigned long int i = ulongval ();
26234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26236 fprintf (f, "%lu\n", i);
26238 return ferror (f) || fclose (f) != 0;
26244 rm -f conftest$ac_exeext
26245 if { (ac_try="$ac_link"
26246 case "(($ac_try" in
26247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248 *) ac_try_echo=$ac_try;;
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251 (eval "$ac_link") 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26255 { (case "(($ac_try" in
26256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257 *) ac_try_echo=$ac_try;;
26259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26260 (eval "$ac_try") 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; }; then
26264 ac_cv_sizeof_char=`cat conftest.val`
26266 echo "$as_me: program exited with status $ac_status" >&5
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ( exit $ac_status )
26271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26272 See \`config.log' for more details." >&5
26273 echo "$as_me: error: cannot compute sizeof (char)
26274 See \`config.log' for more details." >&2;}
26275 { (exit 77); exit 77; }; }
26277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26281 ac_cv_sizeof_char=0
26284 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26285 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26286 cat >>confdefs.h <<_ACEOF
26287 #define SIZEOF_CHAR $ac_cv_sizeof_char
26291 { echo "$as_me:$LINENO: checking for short int" >&5
26292 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26293 if test "${ac_cv_type_short_int+set}" = set; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 $ac_includes_default
26303 typedef short int ac__type_new_;
26307 if ((ac__type_new_ *) 0)
26309 if (sizeof (ac__type_new_))
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322 (eval "$ac_compile") 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } &&
26329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26330 { (case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_try") 2>&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; } &&
26339 { ac_try='test -s conftest.$ac_objext'
26340 { (case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_try") 2>&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_cv_type_short_int=yes
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_cv_type_short_int=no
26357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26360 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26362 { echo "$as_me:$LINENO: checking size of short int" >&5
26363 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26364 if test "${ac_cv_sizeof_short_int+set}" = set; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
26367 if test "$ac_cv_type_short_int" = yes; then
26368 # The cast to long int works around a bug in the HP C Compiler
26369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26371 # This bug is HP SR number 8606223364.
26372 if test "$cross_compiling" = yes; then
26373 # Depending upon the size, compute the lo and hi bounds.
26374 cat >conftest.$ac_ext <<_ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 $ac_includes_default
26381 typedef short int ac__type_sizeof_;
26385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26392 rm -f conftest.$ac_objext
26393 if { (ac_try="$ac_compile"
26394 case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26401 grep -v '^ *+' conftest.er1 >conftest.err
26403 cat conftest.err >&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } &&
26406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26407 { (case "(($ac_try" in
26408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409 *) ac_try_echo=$ac_try;;
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412 (eval "$ac_try") 2>&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; } &&
26416 { ac_try='test -s conftest.$ac_objext'
26417 { (case "(($ac_try" in
26418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419 *) ac_try_echo=$ac_try;;
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_try") 2>&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; }; then
26428 cat >conftest.$ac_ext <<_ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26434 $ac_includes_default
26435 typedef short int ac__type_sizeof_;
26439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26446 rm -f conftest.$ac_objext
26447 if { (ac_try="$ac_compile"
26448 case "(($ac_try" in
26449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450 *) ac_try_echo=$ac_try;;
26452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453 (eval "$ac_compile") 2>conftest.er1
26455 grep -v '^ *+' conftest.er1 >conftest.err
26457 cat conftest.err >&5
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); } &&
26460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26461 { (case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466 (eval "$ac_try") 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest.$ac_objext'
26471 { (case "(($ac_try" in
26472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473 *) ac_try_echo=$ac_try;;
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476 (eval "$ac_try") 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26480 ac_hi=$ac_mid; break
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 ac_lo=`expr $ac_mid + 1`
26486 if test $ac_lo -le $ac_mid; then
26490 ac_mid=`expr 2 '*' $ac_mid + 1`
26493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 cat >conftest.$ac_ext <<_ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h. */
26505 $ac_includes_default
26506 typedef short int ac__type_sizeof_;
26510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26517 rm -f conftest.$ac_objext
26518 if { (ac_try="$ac_compile"
26519 case "(($ac_try" in
26520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521 *) ac_try_echo=$ac_try;;
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524 (eval "$ac_compile") 2>conftest.er1
26526 grep -v '^ *+' conftest.er1 >conftest.err
26528 cat conftest.err >&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } &&
26531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26532 { (case "(($ac_try" in
26533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534 *) ac_try_echo=$ac_try;;
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537 (eval "$ac_try") 2>&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; } &&
26541 { ac_try='test -s conftest.$ac_objext'
26542 { (case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26547 (eval "$ac_try") 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26553 cat >conftest.$ac_ext <<_ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h. */
26559 $ac_includes_default
26560 typedef short int ac__type_sizeof_;
26564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26571 rm -f conftest.$ac_objext
26572 if { (ac_try="$ac_compile"
26573 case "(($ac_try" in
26574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26575 *) ac_try_echo=$ac_try;;
26577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26578 (eval "$ac_compile") 2>conftest.er1
26580 grep -v '^ *+' conftest.er1 >conftest.err
26582 cat conftest.err >&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
26585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26586 { (case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_try") 2>&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; } &&
26595 { ac_try='test -s conftest.$ac_objext'
26596 { (case "(($ac_try" in
26597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598 *) ac_try_echo=$ac_try;;
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601 (eval "$ac_try") 2>&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; }; then
26605 ac_lo=$ac_mid; break
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_hi=`expr '(' $ac_mid ')' - 1`
26611 if test $ac_mid -le $ac_hi; then
26615 ac_mid=`expr 2 '*' $ac_mid`
26618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621 echo "$as_me: failed program was:" >&5
26622 sed 's/^/| /' conftest.$ac_ext >&5
26627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26631 # Binary search between lo and hi bounds.
26632 while test "x$ac_lo" != "x$ac_hi"; do
26633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 $ac_includes_default
26641 typedef short int ac__type_sizeof_;
26645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26652 rm -f conftest.$ac_objext
26653 if { (ac_try="$ac_compile"
26654 case "(($ac_try" in
26655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26656 *) ac_try_echo=$ac_try;;
26658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26659 (eval "$ac_compile") 2>conftest.er1
26661 grep -v '^ *+' conftest.er1 >conftest.err
26663 cat conftest.err >&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } &&
26666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26667 { (case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26672 (eval "$ac_try") 2>&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; } &&
26676 { ac_try='test -s conftest.$ac_objext'
26677 { (case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_try") 2>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; }; then
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26691 ac_lo=`expr '(' $ac_mid ')' + 1`
26694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26697 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26699 See \`config.log' for more details." >&5
26700 echo "$as_me: error: cannot compute sizeof (short int)
26701 See \`config.log' for more details." >&2;}
26702 { (exit 77); exit 77; }; } ;;
26705 cat >conftest.$ac_ext <<_ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 $ac_includes_default
26712 typedef short int ac__type_sizeof_;
26713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26716 #include <stdlib.h>
26721 FILE *f = fopen ("conftest.val", "w");
26724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26726 long int i = longval ();
26727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26729 fprintf (f, "%ld\n", i);
26733 unsigned long int i = ulongval ();
26734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26736 fprintf (f, "%lu\n", i);
26738 return ferror (f) || fclose (f) != 0;
26744 rm -f conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_link") 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26755 { (case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_try") 2>&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_cv_sizeof_short_int=`cat conftest.val`
26766 echo "$as_me: program exited with status $ac_status" >&5
26767 echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26770 ( exit $ac_status )
26771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26772 See \`config.log' for more details." >&5
26773 echo "$as_me: error: cannot compute sizeof (short int)
26774 See \`config.log' for more details." >&2;}
26775 { (exit 77); exit 77; }; }
26777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26781 ac_cv_sizeof_short_int=0
26784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26785 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26786 cat >>confdefs.h <<_ACEOF
26787 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26791 { echo "$as_me:$LINENO: checking for int" >&5
26792 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26793 if test "${ac_cv_type_int+set}" = set; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 $ac_includes_default
26803 typedef int ac__type_new_;
26807 if ((ac__type_new_ *) 0)
26809 if (sizeof (ac__type_new_))
26815 rm -f conftest.$ac_objext
26816 if { (ac_try="$ac_compile"
26817 case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_compile") 2>conftest.er1
26824 grep -v '^ *+' conftest.er1 >conftest.err
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } &&
26829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26830 { (case "(($ac_try" in
26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832 *) ac_try_echo=$ac_try;;
26834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26835 (eval "$ac_try") 2>&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; } &&
26839 { ac_try='test -s conftest.$ac_objext'
26840 { (case "(($ac_try" in
26841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842 *) ac_try_echo=$ac_try;;
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845 (eval "$ac_try") 2>&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; }; then
26851 echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26859 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26860 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26862 { echo "$as_me:$LINENO: checking size of int" >&5
26863 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26864 if test "${ac_cv_sizeof_int+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 if test "$ac_cv_type_int" = yes; then
26868 # The cast to long int works around a bug in the HP C Compiler
26869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26871 # This bug is HP SR number 8606223364.
26872 if test "$cross_compiling" = yes; then
26873 # Depending upon the size, compute the lo and hi bounds.
26874 cat >conftest.$ac_ext <<_ACEOF
26877 cat confdefs.h >>conftest.$ac_ext
26878 cat >>conftest.$ac_ext <<_ACEOF
26879 /* end confdefs.h. */
26880 $ac_includes_default
26881 typedef int ac__type_sizeof_;
26885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26892 rm -f conftest.$ac_objext
26893 if { (ac_try="$ac_compile"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_compile") 2>conftest.er1
26901 grep -v '^ *+' conftest.er1 >conftest.err
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } &&
26906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26907 { (case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26912 (eval "$ac_try") 2>&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); }; } &&
26916 { ac_try='test -s conftest.$ac_objext'
26917 { (case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_try") 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26928 cat >conftest.$ac_ext <<_ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26934 $ac_includes_default
26935 typedef int ac__type_sizeof_;
26939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26946 rm -f conftest.$ac_objext
26947 if { (ac_try="$ac_compile"
26948 case "(($ac_try" in
26949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950 *) ac_try_echo=$ac_try;;
26952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26953 (eval "$ac_compile") 2>conftest.er1
26955 grep -v '^ *+' conftest.er1 >conftest.err
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } &&
26960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26961 { (case "(($ac_try" in
26962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963 *) ac_try_echo=$ac_try;;
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966 (eval "$ac_try") 2>&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; } &&
26970 { ac_try='test -s conftest.$ac_objext'
26971 { (case "(($ac_try" in
26972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973 *) ac_try_echo=$ac_try;;
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976 (eval "$ac_try") 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; }; then
26980 ac_hi=$ac_mid; break
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ac_lo=`expr $ac_mid + 1`
26986 if test $ac_lo -le $ac_mid; then
26990 ac_mid=`expr 2 '*' $ac_mid + 1`
26993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 cat >conftest.$ac_ext <<_ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27005 $ac_includes_default
27006 typedef int ac__type_sizeof_;
27010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27017 rm -f conftest.$ac_objext
27018 if { (ac_try="$ac_compile"
27019 case "(($ac_try" in
27020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27021 *) ac_try_echo=$ac_try;;
27023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27024 (eval "$ac_compile") 2>conftest.er1
27026 grep -v '^ *+' conftest.er1 >conftest.err
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
27031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_try") 2>&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; } &&
27041 { ac_try='test -s conftest.$ac_objext'
27042 { (case "(($ac_try" in
27043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044 *) ac_try_echo=$ac_try;;
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047 (eval "$ac_try") 2>&5
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); }; }; then
27053 cat >conftest.$ac_ext <<_ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 $ac_includes_default
27060 typedef int ac__type_sizeof_;
27064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27071 rm -f conftest.$ac_objext
27072 if { (ac_try="$ac_compile"
27073 case "(($ac_try" in
27074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075 *) ac_try_echo=$ac_try;;
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078 (eval "$ac_compile") 2>conftest.er1
27080 grep -v '^ *+' conftest.er1 >conftest.err
27082 cat conftest.err >&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } &&
27085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27086 { (case "(($ac_try" in
27087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088 *) ac_try_echo=$ac_try;;
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091 (eval "$ac_try") 2>&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; } &&
27095 { ac_try='test -s conftest.$ac_objext'
27096 { (case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_try") 2>&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; }; then
27105 ac_lo=$ac_mid; break
27107 echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27110 ac_hi=`expr '(' $ac_mid ')' - 1`
27111 if test $ac_mid -le $ac_hi; then
27115 ac_mid=`expr 2 '*' $ac_mid`
27118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27121 echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27131 # Binary search between lo and hi bounds.
27132 while test "x$ac_lo" != "x$ac_hi"; do
27133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27140 $ac_includes_default
27141 typedef int ac__type_sizeof_;
27145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_compile") 2>conftest.er1
27161 grep -v '^ *+' conftest.er1 >conftest.err
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } &&
27166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27167 { (case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_try") 2>&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest.$ac_objext'
27177 { (case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_try") 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; }; then
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ac_lo=`expr '(' $ac_mid ')' + 1`
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 ?*) ac_cv_sizeof_int=$ac_lo;;
27198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27199 See \`config.log' for more details." >&5
27200 echo "$as_me: error: cannot compute sizeof (int)
27201 See \`config.log' for more details." >&2;}
27202 { (exit 77); exit 77; }; } ;;
27205 cat >conftest.$ac_ext <<_ACEOF
27208 cat confdefs.h >>conftest.$ac_ext
27209 cat >>conftest.$ac_ext <<_ACEOF
27210 /* end confdefs.h. */
27211 $ac_includes_default
27212 typedef int ac__type_sizeof_;
27213 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27214 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27216 #include <stdlib.h>
27221 FILE *f = fopen ("conftest.val", "w");
27224 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27226 long int i = longval ();
27227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27229 fprintf (f, "%ld\n", i);
27233 unsigned long int i = ulongval ();
27234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27236 fprintf (f, "%lu\n", i);
27238 return ferror (f) || fclose (f) != 0;
27244 rm -f conftest$ac_exeext
27245 if { (ac_try="$ac_link"
27246 case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251 (eval "$ac_link") 2>&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27255 { (case "(($ac_try" in
27256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257 *) ac_try_echo=$ac_try;;
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260 (eval "$ac_try") 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 ac_cv_sizeof_int=`cat conftest.val`
27266 echo "$as_me: program exited with status $ac_status" >&5
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 ( exit $ac_status )
27271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27272 See \`config.log' for more details." >&5
27273 echo "$as_me: error: cannot compute sizeof (int)
27274 See \`config.log' for more details." >&2;}
27275 { (exit 77); exit 77; }; }
27277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27284 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27285 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27286 cat >>confdefs.h <<_ACEOF
27287 #define SIZEOF_INT $ac_cv_sizeof_int
27291 { echo "$as_me:$LINENO: checking for long int" >&5
27292 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27293 if test "${ac_cv_type_long_int+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27296 cat >conftest.$ac_ext <<_ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h. */
27302 $ac_includes_default
27303 typedef long int ac__type_new_;
27307 if ((ac__type_new_ *) 0)
27309 if (sizeof (ac__type_new_))
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_compile") 2>conftest.er1
27324 grep -v '^ *+' conftest.er1 >conftest.err
27326 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } &&
27329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; } &&
27339 { ac_try='test -s conftest.$ac_objext'
27340 { (case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_try") 2>&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27349 ac_cv_type_long_int=yes
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 ac_cv_type_long_int=no
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27359 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27360 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27362 { echo "$as_me:$LINENO: checking size of long int" >&5
27363 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27364 if test "${ac_cv_sizeof_long_int+set}" = set; then
27365 echo $ECHO_N "(cached) $ECHO_C" >&6
27367 if test "$ac_cv_type_long_int" = yes; then
27368 # The cast to long int works around a bug in the HP C Compiler
27369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27371 # This bug is HP SR number 8606223364.
27372 if test "$cross_compiling" = yes; then
27373 # Depending upon the size, compute the lo and hi bounds.
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 $ac_includes_default
27381 typedef long int ac__type_sizeof_;
27385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27392 rm -f conftest.$ac_objext
27393 if { (ac_try="$ac_compile"
27394 case "(($ac_try" in
27395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396 *) ac_try_echo=$ac_try;;
27398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27399 (eval "$ac_compile") 2>conftest.er1
27401 grep -v '^ *+' conftest.er1 >conftest.err
27403 cat conftest.err >&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } &&
27406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27407 { (case "(($ac_try" in
27408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27409 *) ac_try_echo=$ac_try;;
27411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27412 (eval "$ac_try") 2>&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); }; } &&
27416 { ac_try='test -s conftest.$ac_objext'
27417 { (case "(($ac_try" in
27418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27419 *) ac_try_echo=$ac_try;;
27421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27422 (eval "$ac_try") 2>&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27428 cat >conftest.$ac_ext <<_ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27434 $ac_includes_default
27435 typedef long int ac__type_sizeof_;
27439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27446 rm -f conftest.$ac_objext
27447 if { (ac_try="$ac_compile"
27448 case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_compile") 2>conftest.er1
27455 grep -v '^ *+' conftest.er1 >conftest.err
27457 cat conftest.err >&5
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); } &&
27460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27461 { (case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_try") 2>&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; }; then
27480 ac_hi=$ac_mid; break
27482 echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27485 ac_lo=`expr $ac_mid + 1`
27486 if test $ac_lo -le $ac_mid; then
27490 ac_mid=`expr 2 '*' $ac_mid + 1`
27493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496 echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27499 cat >conftest.$ac_ext <<_ACEOF
27502 cat confdefs.h >>conftest.$ac_ext
27503 cat >>conftest.$ac_ext <<_ACEOF
27504 /* end confdefs.h. */
27505 $ac_includes_default
27506 typedef long int ac__type_sizeof_;
27510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27517 rm -f conftest.$ac_objext
27518 if { (ac_try="$ac_compile"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_compile") 2>conftest.er1
27526 grep -v '^ *+' conftest.er1 >conftest.err
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } &&
27531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532 { (case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_try") 2>&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; } &&
27541 { ac_try='test -s conftest.$ac_objext'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27553 cat >conftest.$ac_ext <<_ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h. */
27559 $ac_includes_default
27560 typedef long int ac__type_sizeof_;
27564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27571 rm -f conftest.$ac_objext
27572 if { (ac_try="$ac_compile"
27573 case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_compile") 2>conftest.er1
27580 grep -v '^ *+' conftest.er1 >conftest.err
27582 cat conftest.err >&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); } &&
27585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; } &&
27595 { ac_try='test -s conftest.$ac_objext'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
27605 ac_lo=$ac_mid; break
27607 echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27610 ac_hi=`expr '(' $ac_mid ')' - 1`
27611 if test $ac_mid -le $ac_hi; then
27615 ac_mid=`expr 2 '*' $ac_mid`
27618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27621 echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27631 # Binary search between lo and hi bounds.
27632 while test "x$ac_lo" != "x$ac_hi"; do
27633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 $ac_includes_default
27641 typedef long int ac__type_sizeof_;
27645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27652 rm -f conftest.$ac_objext
27653 if { (ac_try="$ac_compile"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_compile") 2>conftest.er1
27661 grep -v '^ *+' conftest.er1 >conftest.err
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest.$ac_objext'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 ac_lo=`expr '(' $ac_mid ')' + 1`
27694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27699 See \`config.log' for more details." >&5
27700 echo "$as_me: error: cannot compute sizeof (long int)
27701 See \`config.log' for more details." >&2;}
27702 { (exit 77); exit 77; }; } ;;
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 $ac_includes_default
27712 typedef long int ac__type_sizeof_;
27713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27716 #include <stdlib.h>
27721 FILE *f = fopen ("conftest.val", "w");
27724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27726 long int i = longval ();
27727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27729 fprintf (f, "%ld\n", i);
27733 unsigned long int i = ulongval ();
27734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27736 fprintf (f, "%lu\n", i);
27738 return ferror (f) || fclose (f) != 0;
27744 rm -f conftest$ac_exeext
27745 if { (ac_try="$ac_link"
27746 case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_link") 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27755 { (case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_try") 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_cv_sizeof_long_int=`cat conftest.val`
27766 echo "$as_me: program exited with status $ac_status" >&5
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770 ( exit $ac_status )
27771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27772 See \`config.log' for more details." >&5
27773 echo "$as_me: error: cannot compute sizeof (long int)
27774 See \`config.log' for more details." >&2;}
27775 { (exit 77); exit 77; }; }
27777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27781 ac_cv_sizeof_long_int=0
27784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27785 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27786 cat >>confdefs.h <<_ACEOF
27787 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27791 { echo "$as_me:$LINENO: checking for long long int" >&5
27792 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27793 if test "${ac_cv_type_long_long_int+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 cat >conftest.$ac_ext <<_ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802 $ac_includes_default
27803 typedef long long int ac__type_new_;
27807 if ((ac__type_new_ *) 0)
27809 if (sizeof (ac__type_new_))
27815 rm -f conftest.$ac_objext
27816 if { (ac_try="$ac_compile"
27817 case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_compile") 2>conftest.er1
27824 grep -v '^ *+' conftest.er1 >conftest.err
27826 cat conftest.err >&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); } &&
27829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; } &&
27839 { ac_try='test -s conftest.$ac_objext'
27840 { (case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_try") 2>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; }; then
27849 ac_cv_type_long_long_int=yes
27851 echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27854 ac_cv_type_long_long_int=no
27857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27860 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27862 { echo "$as_me:$LINENO: checking size of long long int" >&5
27863 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27864 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27865 echo $ECHO_N "(cached) $ECHO_C" >&6
27867 if test "$ac_cv_type_long_long_int" = yes; then
27868 # The cast to long int works around a bug in the HP C Compiler
27869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27871 # This bug is HP SR number 8606223364.
27872 if test "$cross_compiling" = yes; then
27873 # Depending upon the size, compute the lo and hi bounds.
27874 cat >conftest.$ac_ext <<_ACEOF
27877 cat confdefs.h >>conftest.$ac_ext
27878 cat >>conftest.$ac_ext <<_ACEOF
27879 /* end confdefs.h. */
27880 $ac_includes_default
27881 typedef long long int ac__type_sizeof_;
27885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27892 rm -f conftest.$ac_objext
27893 if { (ac_try="$ac_compile"
27894 case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_compile") 2>conftest.er1
27901 grep -v '^ *+' conftest.er1 >conftest.err
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } &&
27906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27907 { (case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912 (eval "$ac_try") 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; } &&
27916 { ac_try='test -s conftest.$ac_objext'
27917 { (case "(($ac_try" in
27918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919 *) ac_try_echo=$ac_try;;
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922 (eval "$ac_try") 2>&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; }; then
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 $ac_includes_default
27935 typedef long long int ac__type_sizeof_;
27939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_compile") 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27961 { (case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_try") 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest.$ac_objext'
27971 { (case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_try") 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ac_hi=$ac_mid; break
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ac_lo=`expr $ac_mid + 1`
27986 if test $ac_lo -le $ac_mid; then
27990 ac_mid=`expr 2 '*' $ac_mid + 1`
27993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28005 $ac_includes_default
28006 typedef long long int ac__type_sizeof_;
28010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28017 rm -f conftest.$ac_objext
28018 if { (ac_try="$ac_compile"
28019 case "(($ac_try" in
28020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021 *) ac_try_echo=$ac_try;;
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024 (eval "$ac_compile") 2>conftest.er1
28026 grep -v '^ *+' conftest.er1 >conftest.err
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
28031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28032 { (case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037 (eval "$ac_try") 2>&5
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; } &&
28041 { ac_try='test -s conftest.$ac_objext'
28042 { (case "(($ac_try" in
28043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28044 *) ac_try_echo=$ac_try;;
28046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28047 (eval "$ac_try") 2>&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); }; }; then
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 $ac_includes_default
28060 typedef long long int ac__type_sizeof_;
28064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28071 rm -f conftest.$ac_objext
28072 if { (ac_try="$ac_compile"
28073 case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_compile") 2>conftest.er1
28080 grep -v '^ *+' conftest.er1 >conftest.err
28082 cat conftest.err >&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); } &&
28085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28086 { (case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_try") 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest.$ac_objext'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
28105 ac_lo=$ac_mid; break
28107 echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28110 ac_hi=`expr '(' $ac_mid ')' - 1`
28111 if test $ac_mid -le $ac_hi; then
28115 ac_mid=`expr 2 '*' $ac_mid`
28118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28121 echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28131 # Binary search between lo and hi bounds.
28132 while test "x$ac_lo" != "x$ac_hi"; do
28133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28134 cat >conftest.$ac_ext <<_ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 $ac_includes_default
28141 typedef long long int ac__type_sizeof_;
28145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28152 rm -f conftest.$ac_objext
28153 if { (ac_try="$ac_compile"
28154 case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_compile") 2>conftest.er1
28161 grep -v '^ *+' conftest.er1 >conftest.err
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167 { (case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_try") 2>&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest.$ac_objext'
28177 { (case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_try") 2>&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28191 ac_lo=`expr '(' $ac_mid ')' + 1`
28194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28197 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28199 See \`config.log' for more details." >&5
28200 echo "$as_me: error: cannot compute sizeof (long long int)
28201 See \`config.log' for more details." >&2;}
28202 { (exit 77); exit 77; }; } ;;
28205 cat >conftest.$ac_ext <<_ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h. */
28211 $ac_includes_default
28212 typedef long long int ac__type_sizeof_;
28213 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28214 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28216 #include <stdlib.h>
28221 FILE *f = fopen ("conftest.val", "w");
28224 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28226 long int i = longval ();
28227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28229 fprintf (f, "%ld\n", i);
28233 unsigned long int i = ulongval ();
28234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28236 fprintf (f, "%lu\n", i);
28238 return ferror (f) || fclose (f) != 0;
28244 rm -f conftest$ac_exeext
28245 if { (ac_try="$ac_link"
28246 case "(($ac_try" in
28247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248 *) ac_try_echo=$ac_try;;
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251 (eval "$ac_link") 2>&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28255 { (case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_try") 2>&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; }; then
28264 ac_cv_sizeof_long_long_int=`cat conftest.val`
28266 echo "$as_me: program exited with status $ac_status" >&5
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ( exit $ac_status )
28271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28272 See \`config.log' for more details." >&5
28273 echo "$as_me: error: cannot compute sizeof (long long int)
28274 See \`config.log' for more details." >&2;}
28275 { (exit 77); exit 77; }; }
28277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28281 ac_cv_sizeof_long_long_int=0
28284 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28285 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28286 cat >>confdefs.h <<_ACEOF
28287 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28291 { echo "$as_me:$LINENO: checking for int *" >&5
28292 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28293 if test "${ac_cv_type_int_p+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 cat >conftest.$ac_ext <<_ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h. */
28302 $ac_includes_default
28303 typedef int * ac__type_new_;
28307 if ((ac__type_new_ *) 0)
28309 if (sizeof (ac__type_new_))
28315 rm -f conftest.$ac_objext
28316 if { (ac_try="$ac_compile"
28317 case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_compile") 2>conftest.er1
28324 grep -v '^ *+' conftest.er1 >conftest.err
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } &&
28329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28330 { (case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_try") 2>&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; } &&
28339 { ac_try='test -s conftest.$ac_objext'
28340 { (case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345 (eval "$ac_try") 2>&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28349 ac_cv_type_int_p=yes
28351 echo "$as_me: failed program was:" >&5
28352 sed 's/^/| /' conftest.$ac_ext >&5
28354 ac_cv_type_int_p=no
28357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28360 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28362 { echo "$as_me:$LINENO: checking size of int *" >&5
28363 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28364 if test "${ac_cv_sizeof_int_p+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28367 if test "$ac_cv_type_int_p" = yes; then
28368 # The cast to long int works around a bug in the HP C Compiler
28369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28371 # This bug is HP SR number 8606223364.
28372 if test "$cross_compiling" = yes; then
28373 # Depending upon the size, compute the lo and hi bounds.
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 $ac_includes_default
28381 typedef int * ac__type_sizeof_;
28385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28392 rm -f conftest.$ac_objext
28393 if { (ac_try="$ac_compile"
28394 case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_compile") 2>conftest.er1
28401 grep -v '^ *+' conftest.er1 >conftest.err
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
28406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest.$ac_objext'
28417 { (case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_try") 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28428 cat >conftest.$ac_ext <<_ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h. */
28434 $ac_includes_default
28435 typedef int * ac__type_sizeof_;
28439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28446 rm -f conftest.$ac_objext
28447 if { (ac_try="$ac_compile"
28448 case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_compile") 2>conftest.er1
28455 grep -v '^ *+' conftest.er1 >conftest.err
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28461 { (case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466 (eval "$ac_try") 2>&5
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); }; } &&
28470 { ac_try='test -s conftest.$ac_objext'
28471 { (case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_try") 2>&5
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28480 ac_hi=$ac_mid; break
28482 echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28485 ac_lo=`expr $ac_mid + 1`
28486 if test $ac_lo -le $ac_mid; then
28490 ac_mid=`expr 2 '*' $ac_mid + 1`
28493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496 echo "$as_me: failed program was:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28499 cat >conftest.$ac_ext <<_ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h. */
28505 $ac_includes_default
28506 typedef int * ac__type_sizeof_;
28510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28517 rm -f conftest.$ac_objext
28518 if { (ac_try="$ac_compile"
28519 case "(($ac_try" in
28520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521 *) ac_try_echo=$ac_try;;
28523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524 (eval "$ac_compile") 2>conftest.er1
28526 grep -v '^ *+' conftest.er1 >conftest.err
28528 cat conftest.err >&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } &&
28531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28532 { (case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537 (eval "$ac_try") 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; } &&
28541 { ac_try='test -s conftest.$ac_objext'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_try") 2>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28553 cat >conftest.$ac_ext <<_ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28559 $ac_includes_default
28560 typedef int * ac__type_sizeof_;
28564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28571 rm -f conftest.$ac_objext
28572 if { (ac_try="$ac_compile"
28573 case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_compile") 2>conftest.er1
28580 grep -v '^ *+' conftest.er1 >conftest.err
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
28585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28586 { (case "(($ac_try" in
28587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28588 *) ac_try_echo=$ac_try;;
28590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28591 (eval "$ac_try") 2>&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; } &&
28595 { ac_try='test -s conftest.$ac_objext'
28596 { (case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_try") 2>&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; }; then
28605 ac_lo=$ac_mid; break
28607 echo "$as_me: failed program was:" >&5
28608 sed 's/^/| /' conftest.$ac_ext >&5
28610 ac_hi=`expr '(' $ac_mid ')' - 1`
28611 if test $ac_mid -le $ac_hi; then
28615 ac_mid=`expr 2 '*' $ac_mid`
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28631 # Binary search between lo and hi bounds.
28632 while test "x$ac_lo" != "x$ac_hi"; do
28633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28634 cat >conftest.$ac_ext <<_ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h. */
28640 $ac_includes_default
28641 typedef int * ac__type_sizeof_;
28645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28652 rm -f conftest.$ac_objext
28653 if { (ac_try="$ac_compile"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_compile") 2>conftest.er1
28661 grep -v '^ *+' conftest.er1 >conftest.err
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667 { (case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_try") 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_try") 2>&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ac_lo=`expr '(' $ac_mid ')' + 1`
28694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28699 See \`config.log' for more details." >&5
28700 echo "$as_me: error: cannot compute sizeof (int *)
28701 See \`config.log' for more details." >&2;}
28702 { (exit 77); exit 77; }; } ;;
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28711 $ac_includes_default
28712 typedef int * ac__type_sizeof_;
28713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28716 #include <stdlib.h>
28721 FILE *f = fopen ("conftest.val", "w");
28724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28726 long int i = longval ();
28727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28729 fprintf (f, "%ld\n", i);
28733 unsigned long int i = ulongval ();
28734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28736 fprintf (f, "%lu\n", i);
28738 return ferror (f) || fclose (f) != 0;
28744 rm -f conftest$ac_exeext
28745 if { (ac_try="$ac_link"
28746 case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_link") 2>&5
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28755 { (case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_try") 2>&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ac_cv_sizeof_int_p=`cat conftest.val`
28766 echo "$as_me: program exited with status $ac_status" >&5
28767 echo "$as_me: failed program was:" >&5
28768 sed 's/^/| /' conftest.$ac_ext >&5
28770 ( exit $ac_status )
28771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28772 See \`config.log' for more details." >&5
28773 echo "$as_me: error: cannot compute sizeof (int *)
28774 See \`config.log' for more details." >&2;}
28775 { (exit 77); exit 77; }; }
28777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28781 ac_cv_sizeof_int_p=0
28784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28785 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28786 cat >>confdefs.h <<_ACEOF
28787 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28792 # Check for sys/types.h types
28793 { echo "$as_me:$LINENO: checking for u_int type" >&5
28794 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28795 if test "${ac_cv_have_u_int+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28805 #include <sys/types.h>
28814 rm -f conftest.$ac_objext
28815 if { (ac_try="$ac_compile"
28816 case "(($ac_try" in
28817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818 *) ac_try_echo=$ac_try;;
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821 (eval "$ac_compile") 2>conftest.er1
28823 grep -v '^ *+' conftest.er1 >conftest.err
28825 cat conftest.err >&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } &&
28828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28829 { (case "(($ac_try" in
28830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831 *) ac_try_echo=$ac_try;;
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834 (eval "$ac_try") 2>&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); }; } &&
28838 { ac_try='test -s conftest.$ac_objext'
28839 { (case "(($ac_try" in
28840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841 *) ac_try_echo=$ac_try;;
28843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844 (eval "$ac_try") 2>&5
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; }; then
28848 ac_cv_have_u_int="yes"
28850 echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28853 ac_cv_have_u_int="no"
28857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28860 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28861 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28862 if test "x$ac_cv_have_u_int" = "xyes" ; then
28863 cat >>confdefs.h <<\_ACEOF
28864 #define HAVE_U_INT 1
28870 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28871 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28872 if test "${ac_cv_have_intmax_t+set}" = set; then
28873 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 cat >conftest.$ac_ext <<_ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 #include <sys/types.h>
28891 rm -f conftest.$ac_objext
28892 if { (ac_try="$ac_compile"
28893 case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_compile") 2>conftest.er1
28900 grep -v '^ *+' conftest.er1 >conftest.err
28902 cat conftest.err >&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } &&
28905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28906 { (case "(($ac_try" in
28907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908 *) ac_try_echo=$ac_try;;
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_try") 2>&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; } &&
28915 { ac_try='test -s conftest.$ac_objext'
28916 { (case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_try") 2>&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); }; }; then
28925 ac_cv_have_intmax_t="yes"
28927 echo "$as_me: failed program was:" >&5
28928 sed 's/^/| /' conftest.$ac_ext >&5
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28937 #include <stdint.h>
28946 rm -f conftest.$ac_objext
28947 if { (ac_try="$ac_compile"
28948 case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_compile") 2>conftest.er1
28955 grep -v '^ *+' conftest.er1 >conftest.err
28957 cat conftest.err >&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } &&
28960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28961 { (case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_try") 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; } &&
28970 { ac_try='test -s conftest.$ac_objext'
28971 { (case "(($ac_try" in
28972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973 *) ac_try_echo=$ac_try;;
28975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976 (eval "$ac_try") 2>&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_cv_have_intmax_t="yes"
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ac_cv_have_intmax_t="no"
28989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28998 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28999 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29000 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29001 cat >>confdefs.h <<\_ACEOF
29002 #define HAVE_INTMAX_T 1
29009 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29010 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29011 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29021 #include <sys/types.h>
29025 u_intmax_t a; a = 1;
29030 rm -f conftest.$ac_objext
29031 if { (ac_try="$ac_compile"
29032 case "(($ac_try" in
29033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29034 *) ac_try_echo=$ac_try;;
29036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29037 (eval "$ac_compile") 2>conftest.er1
29039 grep -v '^ *+' conftest.er1 >conftest.err
29041 cat conftest.err >&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); } &&
29044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29045 { (case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_try") 2>&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; } &&
29054 { ac_try='test -s conftest.$ac_objext'
29055 { (case "(($ac_try" in
29056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057 *) ac_try_echo=$ac_try;;
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_try") 2>&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29064 ac_cv_have_u_intmax_t="yes"
29066 echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 #include <stdint.h>
29080 u_intmax_t a; a = 1;
29085 rm -f conftest.$ac_objext
29086 if { (ac_try="$ac_compile"
29087 case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_compile") 2>conftest.er1
29094 grep -v '^ *+' conftest.er1 >conftest.err
29096 cat conftest.err >&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
29099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100 { (case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_try") 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest.$ac_objext'
29110 { (case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_try") 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 ac_cv_have_u_intmax_t="yes"
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29124 ac_cv_have_u_intmax_t="no"
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29137 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29138 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29139 cat >>confdefs.h <<\_ACEOF
29140 #define HAVE_U_INTMAX_T 1
29147 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29148 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29149 if test "${ac_cv_have_intxx_t+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29153 cat >conftest.$ac_ext <<_ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159 #include <sys/types.h>
29163 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
29170 case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_compile") 2>conftest.er1
29177 grep -v '^ *+' conftest.er1 >conftest.err
29179 cat conftest.err >&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } &&
29182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29183 { (case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188 (eval "$ac_try") 2>&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; } &&
29192 { ac_try='test -s conftest.$ac_objext'
29193 { (case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198 (eval "$ac_try") 2>&5
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; }; then
29202 ac_cv_have_intxx_t="yes"
29204 echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29207 ac_cv_have_intxx_t="no"
29211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29215 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29216 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29217 cat >>confdefs.h <<\_ACEOF
29218 #define HAVE_INTXX_T 1
29224 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29225 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29226 if test "${ac_cv_have_int64_t+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 cat >conftest.$ac_ext <<_ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29236 #include <sys/types.h>
29245 rm -f conftest.$ac_objext
29246 if { (ac_try="$ac_compile"
29247 case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_compile") 2>conftest.er1
29254 grep -v '^ *+' conftest.er1 >conftest.err
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } &&
29259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29260 { (case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_try") 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest.$ac_objext'
29270 { (case "(($ac_try" in
29271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272 *) ac_try_echo=$ac_try;;
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_try") 2>&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; }; then
29279 ac_cv_have_int64_t="yes"
29281 echo "$as_me: failed program was:" >&5
29282 sed 's/^/| /' conftest.$ac_ext >&5
29284 ac_cv_have_int64_t="no"
29288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29291 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29292 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29293 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29294 cat >>confdefs.h <<\_ACEOF
29295 #define HAVE_INT64_T 1
29301 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29302 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29303 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29304 echo $ECHO_N "(cached) $ECHO_C" >&6
29307 cat >conftest.$ac_ext <<_ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h. */
29313 #include <sys/types.h>
29317 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29322 rm -f conftest.$ac_objext
29323 if { (ac_try="$ac_compile"
29324 case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_compile") 2>conftest.er1
29331 grep -v '^ *+' conftest.er1 >conftest.err
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337 { (case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_try") 2>&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest.$ac_objext'
29347 { (case "(($ac_try" in
29348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349 *) ac_try_echo=$ac_try;;
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352 (eval "$ac_try") 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_cv_have_u_intxx_t="yes"
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29361 ac_cv_have_u_intxx_t="no"
29365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29368 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29369 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29370 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29371 cat >>confdefs.h <<\_ACEOF
29372 #define HAVE_U_INTXX_T 1
29378 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29379 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29380 if test "${ac_cv_have_u_int64_t+set}" = set; then
29381 echo $ECHO_N "(cached) $ECHO_C" >&6
29384 cat >conftest.$ac_ext <<_ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29390 #include <sys/types.h>
29394 u_int64_t a; a = 1;
29399 rm -f conftest.$ac_objext
29400 if { (ac_try="$ac_compile"
29401 case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_compile") 2>conftest.er1
29408 grep -v '^ *+' conftest.er1 >conftest.err
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
29413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29414 { (case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_try") 2>&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); }; } &&
29423 { ac_try='test -s conftest.$ac_objext'
29424 { (case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429 (eval "$ac_try") 2>&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
29433 ac_cv_have_u_int64_t="yes"
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29438 ac_cv_have_u_int64_t="no"
29442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29445 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29446 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29447 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29448 cat >>confdefs.h <<\_ACEOF
29449 #define HAVE_U_INT64_T 1
29455 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29456 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29458 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29459 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 #include <sys/bitypes.h>
29470 int8_t a; int16_t b; int32_t c;
29471 u_int8_t e; u_int16_t f; u_int32_t g;
29472 a = b = c = e = f = g = 1;
29477 rm -f conftest.$ac_objext
29478 if { (ac_try="$ac_compile"
29479 case "(($ac_try" in
29480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29481 *) ac_try_echo=$ac_try;;
29483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29484 (eval "$ac_compile") 2>conftest.er1
29486 grep -v '^ *+' conftest.er1 >conftest.err
29488 cat conftest.err >&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
29491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29492 { (case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_try") 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest.$ac_objext'
29502 { (case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_try") 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; }; then
29511 cat >>confdefs.h <<\_ACEOF
29512 #define HAVE_U_INTXX_T 1
29515 cat >>confdefs.h <<\_ACEOF
29516 #define HAVE_INTXX_T 1
29519 cat >>confdefs.h <<\_ACEOF
29520 #define HAVE_SYS_BITYPES_H 1
29523 { echo "$as_me:$LINENO: result: yes" >&5
29524 echo "${ECHO_T}yes" >&6; }
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 { echo "$as_me:$LINENO: result: no" >&5
29530 echo "${ECHO_T}no" >&6; }
29534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 if test -z "$have_u_intxx_t" ; then
29538 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29539 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29540 if test "${ac_cv_have_uintxx_t+set}" = set; then
29541 echo $ECHO_N "(cached) $ECHO_C" >&6
29544 cat >conftest.$ac_ext <<_ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h. */
29550 #include <sys/types.h>
29554 uint8_t a; uint16_t b;
29555 uint32_t c; a = b = c = 1;
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_compile") 2>conftest.er1
29569 grep -v '^ *+' conftest.er1 >conftest.err
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } &&
29574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29575 { (case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_try") 2>&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; } &&
29584 { ac_try='test -s conftest.$ac_objext'
29585 { (case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_try") 2>&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; }; then
29594 ac_cv_have_uintxx_t="yes"
29596 echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29599 ac_cv_have_uintxx_t="no"
29603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29607 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29608 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29609 cat >>confdefs.h <<\_ACEOF
29610 #define HAVE_UINTXX_T 1
29616 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29617 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29619 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29620 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29621 cat >conftest.$ac_ext <<_ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h. */
29627 #include <sys/bitypes.h>
29631 int64_t a; u_int64_t b;
29637 rm -f conftest.$ac_objext
29638 if { (ac_try="$ac_compile"
29639 case "(($ac_try" in
29640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641 *) ac_try_echo=$ac_try;;
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644 (eval "$ac_compile") 2>conftest.er1
29646 grep -v '^ *+' conftest.er1 >conftest.err
29648 cat conftest.err >&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
29651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29652 { (case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_try") 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest.$ac_objext'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 cat >>confdefs.h <<\_ACEOF
29672 #define HAVE_U_INT64_T 1
29675 cat >>confdefs.h <<\_ACEOF
29676 #define HAVE_INT64_T 1
29679 { echo "$as_me:$LINENO: result: yes" >&5
29680 echo "${ECHO_T}yes" >&6; }
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 { echo "$as_me:$LINENO: result: no" >&5
29686 echo "${ECHO_T}no" >&6; }
29690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693 if (test -z "$have_uintxx_t" && \
29694 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29696 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29697 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29698 cat >conftest.$ac_ext <<_ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h. */
29704 #include <sys/bitypes.h>
29708 uint8_t a; uint16_t b;
29709 uint32_t c; a = b = c = 1;
29714 rm -f conftest.$ac_objext
29715 if { (ac_try="$ac_compile"
29716 case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_compile") 2>conftest.er1
29723 grep -v '^ *+' conftest.er1 >conftest.err
29725 cat conftest.err >&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
29728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29729 { (case "(($ac_try" in
29730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731 *) ac_try_echo=$ac_try;;
29733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29734 (eval "$ac_try") 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; } &&
29738 { ac_try='test -s conftest.$ac_objext'
29739 { (case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_try") 2>&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; }; then
29748 cat >>confdefs.h <<\_ACEOF
29749 #define HAVE_UINTXX_T 1
29752 { echo "$as_me:$LINENO: result: yes" >&5
29753 echo "${ECHO_T}yes" >&6; }
29755 echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29758 { echo "$as_me:$LINENO: result: no" >&5
29759 echo "${ECHO_T}no" >&6; }
29763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29805 cat >conftest.$ac_ext <<_ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29813 #define $ac_func innocuous_$ac_func
29815 /* System header to define __stub macros and hopefully few prototypes,
29816 which can conflict with char $ac_func (); below.
29817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29818 <limits.h> exists even on freestanding compilers. */
29821 # include <limits.h>
29823 # include <assert.h>
29828 /* Override any GCC internal prototype to avoid an error.
29829 Use char because int might match the return type of a GCC
29830 builtin and then its argument prototype would still apply. */
29835 /* The GNU C library defines this for functions which it implements
29836 to always fail with ENOSYS. Some functions are actually named
29837 something starting with __ and the normal name is an alias. */
29838 #if defined __stub_$ac_func || defined __stub___$ac_func
29845 return $ac_func ();
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_link") 2>conftest.er1
29859 grep -v '^ *+' conftest.er1 >conftest.err
29861 cat conftest.err >&5
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } &&
29864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29865 { (case "(($ac_try" in
29866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29867 *) ac_try_echo=$ac_try;;
29869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29870 (eval "$ac_try") 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_try") 2>&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29884 eval "$as_ac_var=yes"
29886 echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29889 eval "$as_ac_var=no"
29892 rm -f core conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
29895 ac_res=`eval echo '${'$as_ac_var'}'`
29896 { echo "$as_me:$LINENO: result: $ac_res" >&5
29897 echo "${ECHO_T}$ac_res" >&6; }
29898 if test `eval echo '${'$as_ac_var'}'` = yes; then
29899 cat >>confdefs.h <<_ACEOF
29900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29904 echo 'configure: cannot find needed function.'; exit 1
29911 for ac_func in fchdir
29913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29927 #define $ac_func innocuous_$ac_func
29929 /* System header to define __stub macros and hopefully few prototypes,
29930 which can conflict with char $ac_func (); below.
29931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932 <limits.h> exists even on freestanding compilers. */
29935 # include <limits.h>
29937 # include <assert.h>
29942 /* Override any GCC internal prototype to avoid an error.
29943 Use char because int might match the return type of a GCC
29944 builtin and then its argument prototype would still apply. */
29949 /* The GNU C library defines this for functions which it implements
29950 to always fail with ENOSYS. Some functions are actually named
29951 something starting with __ and the normal name is an alias. */
29952 #if defined __stub_$ac_func || defined __stub___$ac_func
29959 return $ac_func ();
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_link") 2>conftest.er1
29973 grep -v '^ *+' conftest.er1 >conftest.err
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } &&
29978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29979 { (case "(($ac_try" in
29980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981 *) ac_try_echo=$ac_try;;
29983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29984 (eval "$ac_try") 2>&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; } &&
29988 { ac_try='test -s conftest$ac_exeext'
29989 { (case "(($ac_try" in
29990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991 *) ac_try_echo=$ac_try;;
29993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29994 (eval "$ac_try") 2>&5
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); }; }; then
29998 eval "$as_ac_var=yes"
30000 echo "$as_me: failed program was:" >&5
30001 sed 's/^/| /' conftest.$ac_ext >&5
30003 eval "$as_ac_var=no"
30006 rm -f core conftest.err conftest.$ac_objext \
30007 conftest$ac_exeext conftest.$ac_ext
30009 ac_res=`eval echo '${'$as_ac_var'}'`
30010 { echo "$as_me:$LINENO: result: $ac_res" >&5
30011 echo "${ECHO_T}$ac_res" >&6; }
30012 if test `eval echo '${'$as_ac_var'}'` = yes; then
30013 cat >>confdefs.h <<_ACEOF
30014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30016 cat >>confdefs.h <<\_ACEOF
30017 #define HAVE_FCHDIR 1
30024 for ac_func in strtoll
30026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30030 echo $ECHO_N "(cached) $ECHO_C" >&6
30032 cat >conftest.$ac_ext <<_ACEOF
30035 cat confdefs.h >>conftest.$ac_ext
30036 cat >>conftest.$ac_ext <<_ACEOF
30037 /* end confdefs.h. */
30038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30040 #define $ac_func innocuous_$ac_func
30042 /* System header to define __stub macros and hopefully few prototypes,
30043 which can conflict with char $ac_func (); below.
30044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30045 <limits.h> exists even on freestanding compilers. */
30048 # include <limits.h>
30050 # include <assert.h>
30055 /* Override any GCC internal prototype to avoid an error.
30056 Use char because int might match the return type of a GCC
30057 builtin and then its argument prototype would still apply. */
30062 /* The GNU C library defines this for functions which it implements
30063 to always fail with ENOSYS. Some functions are actually named
30064 something starting with __ and the normal name is an alias. */
30065 #if defined __stub_$ac_func || defined __stub___$ac_func
30072 return $ac_func ();
30077 rm -f conftest.$ac_objext conftest$ac_exeext
30078 if { (ac_try="$ac_link"
30079 case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_link") 2>conftest.er1
30086 grep -v '^ *+' conftest.er1 >conftest.err
30088 cat conftest.err >&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
30091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30092 { (case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_try") 2>&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; } &&
30101 { ac_try='test -s conftest$ac_exeext'
30102 { (case "(($ac_try" in
30103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104 *) ac_try_echo=$ac_try;;
30106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30107 (eval "$ac_try") 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 eval "$as_ac_var=yes"
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30116 eval "$as_ac_var=no"
30119 rm -f core conftest.err conftest.$ac_objext \
30120 conftest$ac_exeext conftest.$ac_ext
30122 ac_res=`eval echo '${'$as_ac_var'}'`
30123 { echo "$as_me:$LINENO: result: $ac_res" >&5
30124 echo "${ECHO_T}$ac_res" >&6; }
30125 if test `eval echo '${'$as_ac_var'}'` = yes; then
30126 cat >>confdefs.h <<_ACEOF
30127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30129 cat >>confdefs.h <<\_ACEOF
30130 #define HAVE_STRTOLL 1
30137 for ac_func in posix_fadvise
30139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 cat >conftest.$ac_ext <<_ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h. */
30151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30153 #define $ac_func innocuous_$ac_func
30155 /* System header to define __stub macros and hopefully few prototypes,
30156 which can conflict with char $ac_func (); below.
30157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30158 <limits.h> exists even on freestanding compilers. */
30161 # include <limits.h>
30163 # include <assert.h>
30168 /* Override any GCC internal prototype to avoid an error.
30169 Use char because int might match the return type of a GCC
30170 builtin and then its argument prototype would still apply. */
30175 /* The GNU C library defines this for functions which it implements
30176 to always fail with ENOSYS. Some functions are actually named
30177 something starting with __ and the normal name is an alias. */
30178 #if defined __stub_$ac_func || defined __stub___$ac_func
30185 return $ac_func ();
30190 rm -f conftest.$ac_objext conftest$ac_exeext
30191 if { (ac_try="$ac_link"
30192 case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_link") 2>conftest.er1
30199 grep -v '^ *+' conftest.er1 >conftest.err
30201 cat conftest.err >&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); } &&
30204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30205 { (case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_try") 2>&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; } &&
30214 { ac_try='test -s conftest$ac_exeext'
30215 { (case "(($ac_try" in
30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217 *) ac_try_echo=$ac_try;;
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220 (eval "$ac_try") 2>&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 eval "$as_ac_var=yes"
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 eval "$as_ac_var=no"
30232 rm -f core conftest.err conftest.$ac_objext \
30233 conftest$ac_exeext conftest.$ac_ext
30235 ac_res=`eval echo '${'$as_ac_var'}'`
30236 { echo "$as_me:$LINENO: result: $ac_res" >&5
30237 echo "${ECHO_T}$ac_res" >&6; }
30238 if test `eval echo '${'$as_ac_var'}'` = yes; then
30239 cat >>confdefs.h <<_ACEOF
30240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30248 for ac_func in chflags
30250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 cat >conftest.$ac_ext <<_ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30264 #define $ac_func innocuous_$ac_func
30266 /* System header to define __stub macros and hopefully few prototypes,
30267 which can conflict with char $ac_func (); below.
30268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30269 <limits.h> exists even on freestanding compilers. */
30272 # include <limits.h>
30274 # include <assert.h>
30279 /* Override any GCC internal prototype to avoid an error.
30280 Use char because int might match the return type of a GCC
30281 builtin and then its argument prototype would still apply. */
30286 /* The GNU C library defines this for functions which it implements
30287 to always fail with ENOSYS. Some functions are actually named
30288 something starting with __ and the normal name is an alias. */
30289 #if defined __stub_$ac_func || defined __stub___$ac_func
30296 return $ac_func ();
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (ac_try="$ac_link"
30303 case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_link") 2>conftest.er1
30310 grep -v '^ *+' conftest.er1 >conftest.err
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest$ac_exeext'
30326 { (case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_try") 2>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30335 eval "$as_ac_var=yes"
30337 echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30340 eval "$as_ac_var=no"
30343 rm -f core conftest.err conftest.$ac_objext \
30344 conftest$ac_exeext conftest.$ac_ext
30346 ac_res=`eval echo '${'$as_ac_var'}'`
30347 { echo "$as_me:$LINENO: result: $ac_res" >&5
30348 echo "${ECHO_T}$ac_res" >&6; }
30349 if test `eval echo '${'$as_ac_var'}'` = yes; then
30350 cat >>confdefs.h <<_ACEOF
30351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30362 for ac_func in snprintf vsnprintf gethostid fseeko
30364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30368 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 cat >conftest.$ac_ext <<_ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h. */
30376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30378 #define $ac_func innocuous_$ac_func
30380 /* System header to define __stub macros and hopefully few prototypes,
30381 which can conflict with char $ac_func (); below.
30382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30383 <limits.h> exists even on freestanding compilers. */
30386 # include <limits.h>
30388 # include <assert.h>
30393 /* Override any GCC internal prototype to avoid an error.
30394 Use char because int might match the return type of a GCC
30395 builtin and then its argument prototype would still apply. */
30400 /* The GNU C library defines this for functions which it implements
30401 to always fail with ENOSYS. Some functions are actually named
30402 something starting with __ and the normal name is an alias. */
30403 #if defined __stub_$ac_func || defined __stub___$ac_func
30410 return $ac_func ();
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (ac_try="$ac_link"
30417 case "(($ac_try" in
30418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_link") 2>conftest.er1
30424 grep -v '^ *+' conftest.er1 >conftest.err
30426 cat conftest.err >&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } &&
30429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30430 { (case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_try") 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; } &&
30439 { ac_try='test -s conftest$ac_exeext'
30440 { (case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_try") 2>&5
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30449 eval "$as_ac_var=yes"
30451 echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30454 eval "$as_ac_var=no"
30457 rm -f core conftest.err conftest.$ac_objext \
30458 conftest$ac_exeext conftest.$ac_ext
30460 ac_res=`eval echo '${'$as_ac_var'}'`
30461 { echo "$as_me:$LINENO: result: $ac_res" >&5
30462 echo "${ECHO_T}$ac_res" >&6; }
30463 if test `eval echo '${'$as_ac_var'}'` = yes; then
30464 cat >>confdefs.h <<_ACEOF
30465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 cat >conftest.$ac_ext <<_ACEOF
30487 cat confdefs.h >>conftest.$ac_ext
30488 cat >>conftest.$ac_ext <<_ACEOF
30489 /* end confdefs.h. */
30490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30492 #define $ac_func innocuous_$ac_func
30494 /* System header to define __stub macros and hopefully few prototypes,
30495 which can conflict with char $ac_func (); below.
30496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30497 <limits.h> exists even on freestanding compilers. */
30500 # include <limits.h>
30502 # include <assert.h>
30507 /* Override any GCC internal prototype to avoid an error.
30508 Use char because int might match the return type of a GCC
30509 builtin and then its argument prototype would still apply. */
30514 /* The GNU C library defines this for functions which it implements
30515 to always fail with ENOSYS. Some functions are actually named
30516 something starting with __ and the normal name is an alias. */
30517 #if defined __stub_$ac_func || defined __stub___$ac_func
30524 return $ac_func ();
30529 rm -f conftest.$ac_objext conftest$ac_exeext
30530 if { (ac_try="$ac_link"
30531 case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_link") 2>conftest.er1
30538 grep -v '^ *+' conftest.er1 >conftest.err
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } &&
30543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; } &&
30553 { ac_try='test -s conftest$ac_exeext'
30554 { (case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_try") 2>&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 eval "$as_ac_var=yes"
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30568 eval "$as_ac_var=no"
30571 rm -f core conftest.err conftest.$ac_objext \
30572 conftest$ac_exeext conftest.$ac_ext
30574 ac_res=`eval echo '${'$as_ac_var'}'`
30575 { echo "$as_me:$LINENO: result: $ac_res" >&5
30576 echo "${ECHO_T}$ac_res" >&6; }
30577 if test `eval echo '${'$as_ac_var'}'` = yes; then
30578 cat >>confdefs.h <<_ACEOF
30579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586 # If resolver functions are not in libc check for -lnsl or -lresolv.
30587 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30588 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30589 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30592 cat >conftest.$ac_ext <<_ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h. */
30598 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30600 #define gethostbyname_r innocuous_gethostbyname_r
30602 /* System header to define __stub macros and hopefully few prototypes,
30603 which can conflict with char gethostbyname_r (); below.
30604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605 <limits.h> exists even on freestanding compilers. */
30608 # include <limits.h>
30610 # include <assert.h>
30613 #undef gethostbyname_r
30615 /* Override any GCC internal prototype to avoid an error.
30616 Use char because int might match the return type of a GCC
30617 builtin and then its argument prototype would still apply. */
30621 char gethostbyname_r ();
30622 /* The GNU C library defines this for functions which it implements
30623 to always fail with ENOSYS. Some functions are actually named
30624 something starting with __ and the normal name is an alias. */
30625 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30632 return gethostbyname_r ();
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (ac_try="$ac_link"
30639 case "(($ac_try" in
30640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30641 *) ac_try_echo=$ac_try;;
30643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30644 (eval "$ac_link") 2>conftest.er1
30646 grep -v '^ *+' conftest.er1 >conftest.err
30648 cat conftest.err >&5
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); } &&
30651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30652 { (case "(($ac_try" in
30653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30654 *) ac_try_echo=$ac_try;;
30656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30657 (eval "$ac_try") 2>&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
30662 { (case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30667 (eval "$ac_try") 2>&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; }; then
30671 ac_cv_func_gethostbyname_r=yes
30673 echo "$as_me: failed program was:" >&5
30674 sed 's/^/| /' conftest.$ac_ext >&5
30676 ac_cv_func_gethostbyname_r=no
30679 rm -f core conftest.err conftest.$ac_objext \
30680 conftest$ac_exeext conftest.$ac_ext
30682 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30683 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30684 if test $ac_cv_func_gethostbyname_r = yes; then
30685 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30686 echo "${ECHO_T}using libc's resolver" >&6; }
30689 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30690 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30691 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30692 echo $ECHO_N "(cached) $ECHO_C" >&6
30694 ac_check_lib_save_LIBS=$LIBS
30696 cat >conftest.$ac_ext <<_ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30703 /* Override any GCC internal prototype to avoid an error.
30704 Use char because int might match the return type of a GCC
30705 builtin and then its argument prototype would still apply. */
30709 char gethostbyname_r ();
30713 return gethostbyname_r ();
30718 rm -f conftest.$ac_objext conftest$ac_exeext
30719 if { (ac_try="$ac_link"
30720 case "(($ac_try" in
30721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30722 *) ac_try_echo=$ac_try;;
30724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30725 (eval "$ac_link") 2>conftest.er1
30727 grep -v '^ *+' conftest.er1 >conftest.err
30729 cat conftest.err >&5
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); } &&
30732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30733 { (case "(($ac_try" in
30734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30735 *) ac_try_echo=$ac_try;;
30737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30738 (eval "$ac_try") 2>&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; } &&
30742 { ac_try='test -s conftest$ac_exeext'
30743 { (case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_try") 2>&5
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); }; }; then
30752 ac_cv_lib_nsl_gethostbyname_r=yes
30754 echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30757 ac_cv_lib_nsl_gethostbyname_r=no
30760 rm -f core conftest.err conftest.$ac_objext \
30761 conftest$ac_exeext conftest.$ac_ext
30762 LIBS=$ac_check_lib_save_LIBS
30764 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30765 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30766 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30767 cat >>confdefs.h <<_ACEOF
30768 #define HAVE_LIBNSL 1
30776 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30777 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30778 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30779 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 ac_check_lib_save_LIBS=$LIBS
30782 LIBS="-lresolv $LIBS"
30783 cat >conftest.$ac_ext <<_ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h. */
30790 /* Override any GCC internal prototype to avoid an error.
30791 Use char because int might match the return type of a GCC
30792 builtin and then its argument prototype would still apply. */
30796 char gethostbyname_r ();
30800 return gethostbyname_r ();
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (ac_try="$ac_link"
30807 case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
30814 grep -v '^ *+' conftest.er1 >conftest.err
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
30830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 ac_cv_lib_resolv_gethostbyname_r=yes
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30844 ac_cv_lib_resolv_gethostbyname_r=no
30847 rm -f core conftest.err conftest.$ac_objext \
30848 conftest$ac_exeext conftest.$ac_ext
30849 LIBS=$ac_check_lib_save_LIBS
30851 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30852 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30853 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855 #define HAVE_LIBRESOLV 1
30858 LIBS="-lresolv $LIBS"
30868 for ac_func in inet_pton
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30876 cat >conftest.$ac_ext <<_ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884 #define $ac_func innocuous_$ac_func
30886 /* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30892 # include <limits.h>
30894 # include <assert.h>
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30906 /* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909 #if defined __stub_$ac_func || defined __stub___$ac_func
30916 return $ac_func ();
30921 rm -f conftest.$ac_objext conftest$ac_exeext
30922 if { (ac_try="$ac_link"
30923 case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
30930 grep -v '^ *+' conftest.er1 >conftest.err
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
30935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
30955 eval "$as_ac_var=yes"
30957 echo "$as_me: failed program was:" >&5
30958 sed 's/^/| /' conftest.$ac_ext >&5
30960 eval "$as_ac_var=no"
30963 rm -f core conftest.err conftest.$ac_objext \
30964 conftest$ac_exeext conftest.$ac_ext
30966 ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968 echo "${ECHO_T}$ac_res" >&6; }
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970 cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30973 cat >>confdefs.h <<\_ACEOF
30974 #define HAVE_INET_PTON 1
30981 for ac_func in inet_ntop
30983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30987 echo $ECHO_N "(cached) $ECHO_C" >&6
30989 cat >conftest.$ac_ext <<_ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30997 #define $ac_func innocuous_$ac_func
30999 /* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char $ac_func (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31005 # include <limits.h>
31007 # include <assert.h>
31012 /* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31019 /* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
31022 #if defined __stub_$ac_func || defined __stub___$ac_func
31029 return $ac_func ();
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (ac_try="$ac_link"
31036 case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_link") 2>conftest.er1
31043 grep -v '^ *+' conftest.er1 >conftest.err
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } &&
31048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_try") 2>&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
31068 eval "$as_ac_var=yes"
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 eval "$as_ac_var=no"
31076 rm -f core conftest.err conftest.$ac_objext \
31077 conftest$ac_exeext conftest.$ac_ext
31079 ac_res=`eval echo '${'$as_ac_var'}'`
31080 { echo "$as_me:$LINENO: result: $ac_res" >&5
31081 echo "${ECHO_T}$ac_res" >&6; }
31082 if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31086 cat >>confdefs.h <<\_ACEOF
31087 #define HAVE_INET_NTOP 1
31094 for ac_func in gethostbyname2
31096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 cat >conftest.$ac_ext <<_ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h. */
31108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31110 #define $ac_func innocuous_$ac_func
31112 /* System header to define __stub macros and hopefully few prototypes,
31113 which can conflict with char $ac_func (); below.
31114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115 <limits.h> exists even on freestanding compilers. */
31118 # include <limits.h>
31120 # include <assert.h>
31125 /* Override any GCC internal prototype to avoid an error.
31126 Use char because int might match the return type of a GCC
31127 builtin and then its argument prototype would still apply. */
31132 /* The GNU C library defines this for functions which it implements
31133 to always fail with ENOSYS. Some functions are actually named
31134 something starting with __ and the normal name is an alias. */
31135 #if defined __stub_$ac_func || defined __stub___$ac_func
31142 return $ac_func ();
31147 rm -f conftest.$ac_objext conftest$ac_exeext
31148 if { (ac_try="$ac_link"
31149 case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_link") 2>conftest.er1
31156 grep -v '^ *+' conftest.er1 >conftest.err
31158 cat conftest.err >&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
31161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
31172 { (case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_try") 2>&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
31181 eval "$as_ac_var=yes"
31183 echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 eval "$as_ac_var=no"
31189 rm -f core conftest.err conftest.$ac_objext \
31190 conftest$ac_exeext conftest.$ac_ext
31192 ac_res=`eval echo '${'$as_ac_var'}'`
31193 { echo "$as_me:$LINENO: result: $ac_res" >&5
31194 echo "${ECHO_T}$ac_res" >&6; }
31195 if test `eval echo '${'$as_ac_var'}'` = yes; then
31196 cat >>confdefs.h <<_ACEOF
31197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31199 cat >>confdefs.h <<\_ACEOF
31200 #define HAVE_GETHOSTBYNAME2 1
31207 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31208 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31209 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31212 cat >conftest.$ac_ext <<_ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h. */
31218 #include <sys/socket.h>
31222 struct sockaddr s; s.sa_len;
31227 rm -f conftest.$ac_objext
31228 if { (ac_try="$ac_compile"
31229 case "(($ac_try" in
31230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231 *) ac_try_echo=$ac_try;;
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234 (eval "$ac_compile") 2>conftest.er1
31236 grep -v '^ *+' conftest.er1 >conftest.err
31238 cat conftest.err >&5
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); } &&
31241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31242 { (case "(($ac_try" in
31243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31244 *) ac_try_echo=$ac_try;;
31246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31247 (eval "$ac_try") 2>&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; } &&
31251 { ac_try='test -s conftest.$ac_objext'
31252 { (case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_try") 2>&5
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); }; }; then
31261 ac_cv_struct_sockaddr_sa_len=yes
31263 echo "$as_me: failed program was:" >&5
31264 sed 's/^/| /' conftest.$ac_ext >&5
31266 ac_cv_struct_sockaddr_sa_len=no
31269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31271 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31272 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31274 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31276 cat >>confdefs.h <<\_ACEOF
31277 #define HAVE_SA_LEN 1
31286 for ac_func in strftime
31288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 cat >conftest.$ac_ext <<_ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h. */
31300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31302 #define $ac_func innocuous_$ac_func
31304 /* System header to define __stub macros and hopefully few prototypes,
31305 which can conflict with char $ac_func (); below.
31306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31307 <limits.h> exists even on freestanding compilers. */
31310 # include <limits.h>
31312 # include <assert.h>
31317 /* Override any GCC internal prototype to avoid an error.
31318 Use char because int might match the return type of a GCC
31319 builtin and then its argument prototype would still apply. */
31324 /* The GNU C library defines this for functions which it implements
31325 to always fail with ENOSYS. Some functions are actually named
31326 something starting with __ and the normal name is an alias. */
31327 #if defined __stub_$ac_func || defined __stub___$ac_func
31334 return $ac_func ();
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (ac_try="$ac_link"
31341 case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_link") 2>conftest.er1
31348 grep -v '^ *+' conftest.er1 >conftest.err
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } &&
31353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31354 { (case "(($ac_try" in
31355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31356 *) ac_try_echo=$ac_try;;
31358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31359 (eval "$ac_try") 2>&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; } &&
31363 { ac_try='test -s conftest$ac_exeext'
31364 { (case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_try") 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31373 eval "$as_ac_var=yes"
31375 echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31378 eval "$as_ac_var=no"
31381 rm -f core conftest.err conftest.$ac_objext \
31382 conftest$ac_exeext conftest.$ac_ext
31384 ac_res=`eval echo '${'$as_ac_var'}'`
31385 { echo "$as_me:$LINENO: result: $ac_res" >&5
31386 echo "${ECHO_T}$ac_res" >&6; }
31387 if test `eval echo '${'$as_ac_var'}'` = yes; then
31388 cat >>confdefs.h <<_ACEOF
31389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31393 # strftime is in -lintl on SCO UNIX.
31394 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31395 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31396 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31399 ac_check_lib_save_LIBS=$LIBS
31400 LIBS="-lintl $LIBS"
31401 cat >conftest.$ac_ext <<_ACEOF
31404 cat confdefs.h >>conftest.$ac_ext
31405 cat >>conftest.$ac_ext <<_ACEOF
31406 /* end confdefs.h. */
31408 /* Override any GCC internal prototype to avoid an error.
31409 Use char because int might match the return type of a GCC
31410 builtin and then its argument prototype would still apply. */
31418 return strftime ();
31423 rm -f conftest.$ac_objext conftest$ac_exeext
31424 if { (ac_try="$ac_link"
31425 case "(($ac_try" in
31426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427 *) ac_try_echo=$ac_try;;
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430 (eval "$ac_link") 2>conftest.er1
31432 grep -v '^ *+' conftest.er1 >conftest.err
31434 cat conftest.err >&5
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); } &&
31437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31438 { (case "(($ac_try" in
31439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440 *) ac_try_echo=$ac_try;;
31442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443 (eval "$ac_try") 2>&5
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; } &&
31447 { ac_try='test -s conftest$ac_exeext'
31448 { (case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_try") 2>&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457 ac_cv_lib_intl_strftime=yes
31459 echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 ac_cv_lib_intl_strftime=no
31465 rm -f core conftest.err conftest.$ac_objext \
31466 conftest$ac_exeext conftest.$ac_ext
31467 LIBS=$ac_check_lib_save_LIBS
31469 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31470 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31471 if test $ac_cv_lib_intl_strftime = yes; then
31472 cat >>confdefs.h <<\_ACEOF
31473 #define HAVE_STRFTIME 1
31476 LIBS="-lintl $LIBS"
31483 for ac_func in vprintf
31485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31499 #define $ac_func innocuous_$ac_func
31501 /* System header to define __stub macros and hopefully few prototypes,
31502 which can conflict with char $ac_func (); below.
31503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31504 <limits.h> exists even on freestanding compilers. */
31507 # include <limits.h>
31509 # include <assert.h>
31514 /* Override any GCC internal prototype to avoid an error.
31515 Use char because int might match the return type of a GCC
31516 builtin and then its argument prototype would still apply. */
31521 /* The GNU C library defines this for functions which it implements
31522 to always fail with ENOSYS. Some functions are actually named
31523 something starting with __ and the normal name is an alias. */
31524 #if defined __stub_$ac_func || defined __stub___$ac_func
31531 return $ac_func ();
31536 rm -f conftest.$ac_objext conftest$ac_exeext
31537 if { (ac_try="$ac_link"
31538 case "(($ac_try" in
31539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_link") 2>conftest.er1
31545 grep -v '^ *+' conftest.er1 >conftest.err
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31551 { (case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556 (eval "$ac_try") 2>&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest$ac_exeext'
31561 { (case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_try") 2>&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; }; then
31570 eval "$as_ac_var=yes"
31572 echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31575 eval "$as_ac_var=no"
31578 rm -f core conftest.err conftest.$ac_objext \
31579 conftest$ac_exeext conftest.$ac_ext
31581 ac_res=`eval echo '${'$as_ac_var'}'`
31582 { echo "$as_me:$LINENO: result: $ac_res" >&5
31583 echo "${ECHO_T}$ac_res" >&6; }
31584 if test `eval echo '${'$as_ac_var'}'` = yes; then
31585 cat >>confdefs.h <<_ACEOF
31586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31589 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31590 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31591 if test "${ac_cv_func__doprnt+set}" = set; then
31592 echo $ECHO_N "(cached) $ECHO_C" >&6
31594 cat >conftest.$ac_ext <<_ACEOF
31597 cat confdefs.h >>conftest.$ac_ext
31598 cat >>conftest.$ac_ext <<_ACEOF
31599 /* end confdefs.h. */
31600 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31602 #define _doprnt innocuous__doprnt
31604 /* System header to define __stub macros and hopefully few prototypes,
31605 which can conflict with char _doprnt (); below.
31606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31607 <limits.h> exists even on freestanding compilers. */
31610 # include <limits.h>
31612 # include <assert.h>
31617 /* Override any GCC internal prototype to avoid an error.
31618 Use char because int might match the return type of a GCC
31619 builtin and then its argument prototype would still apply. */
31624 /* The GNU C library defines this for functions which it implements
31625 to always fail with ENOSYS. Some functions are actually named
31626 something starting with __ and the normal name is an alias. */
31627 #if defined __stub__doprnt || defined __stub____doprnt
31639 rm -f conftest.$ac_objext conftest$ac_exeext
31640 if { (ac_try="$ac_link"
31641 case "(($ac_try" in
31642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31643 *) ac_try_echo=$ac_try;;
31645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31646 (eval "$ac_link") 2>conftest.er1
31648 grep -v '^ *+' conftest.er1 >conftest.err
31650 cat conftest.err >&5
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); } &&
31653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31654 { (case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_try") 2>&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; } &&
31663 { ac_try='test -s conftest$ac_exeext'
31664 { (case "(($ac_try" in
31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666 *) ac_try_echo=$ac_try;;
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669 (eval "$ac_try") 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 ac_cv_func__doprnt=yes
31675 echo "$as_me: failed program was:" >&5
31676 sed 's/^/| /' conftest.$ac_ext >&5
31678 ac_cv_func__doprnt=no
31681 rm -f core conftest.err conftest.$ac_objext \
31682 conftest$ac_exeext conftest.$ac_ext
31684 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31685 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31686 if test $ac_cv_func__doprnt = yes; then
31688 cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_DOPRNT 1
31698 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31699 # for constant arguments. Useless!
31700 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31701 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31702 if test "${ac_cv_working_alloca_h+set}" = set; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31705 cat >conftest.$ac_ext <<_ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h. */
31711 #include <alloca.h>
31715 char *p = (char *) alloca (2 * sizeof (int));
31721 rm -f conftest.$ac_objext conftest$ac_exeext
31722 if { (ac_try="$ac_link"
31723 case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_link") 2>conftest.er1
31730 grep -v '^ *+' conftest.er1 >conftest.err
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
31735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31736 { (case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest$ac_exeext'
31746 { (case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_try") 2>&5
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; }; then
31755 ac_cv_working_alloca_h=yes
31757 echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31760 ac_cv_working_alloca_h=no
31763 rm -f core conftest.err conftest.$ac_objext \
31764 conftest$ac_exeext conftest.$ac_ext
31766 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31767 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31768 if test $ac_cv_working_alloca_h = yes; then
31770 cat >>confdefs.h <<\_ACEOF
31771 #define HAVE_ALLOCA_H 1
31776 { echo "$as_me:$LINENO: checking for alloca" >&5
31777 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31778 if test "${ac_cv_func_alloca_works+set}" = set; then
31779 echo $ECHO_N "(cached) $ECHO_C" >&6
31781 cat >conftest.$ac_ext <<_ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h. */
31788 # define alloca __builtin_alloca
31791 # include <malloc.h>
31792 # define alloca _alloca
31795 # include <alloca.h>
31800 # ifndef alloca /* predefined by HP cc +Olibcalls */
31811 char *p = (char *) alloca (1);
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (ac_try="$ac_link"
31819 case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_link") 2>conftest.er1
31826 grep -v '^ *+' conftest.er1 >conftest.err
31828 cat conftest.err >&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } &&
31831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31832 { (case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_try") 2>&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest$ac_exeext'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 ac_cv_func_alloca_works=yes
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 ac_cv_func_alloca_works=no
31859 rm -f core conftest.err conftest.$ac_objext \
31860 conftest$ac_exeext conftest.$ac_ext
31862 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31863 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31865 if test $ac_cv_func_alloca_works = yes; then
31867 cat >>confdefs.h <<\_ACEOF
31868 #define HAVE_ALLOCA 1
31872 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31873 # that cause trouble. Some versions do not even contain alloca or
31874 # contain a buggy version. If you still want to use their alloca,
31875 # use ar to extract alloca.o from them instead of compiling alloca.c.
31877 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31879 cat >>confdefs.h <<\_ACEOF
31884 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31885 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31886 if test "${ac_cv_os_cray+set}" = set; then
31887 echo $ECHO_N "(cached) $ECHO_C" >&6
31889 cat >conftest.$ac_ext <<_ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h. */
31895 #if defined CRAY && ! defined CRAY2
31902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31903 $EGREP "webecray" >/dev/null 2>&1; then
31911 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31912 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31913 if test $ac_cv_os_cray = yes; then
31914 for ac_func in _getb67 GETB67 getb67; do
31915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31921 cat >conftest.$ac_ext <<_ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h. */
31927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31929 #define $ac_func innocuous_$ac_func
31931 /* System header to define __stub macros and hopefully few prototypes,
31932 which can conflict with char $ac_func (); below.
31933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31934 <limits.h> exists even on freestanding compilers. */
31937 # include <limits.h>
31939 # include <assert.h>
31944 /* Override any GCC internal prototype to avoid an error.
31945 Use char because int might match the return type of a GCC
31946 builtin and then its argument prototype would still apply. */
31951 /* The GNU C library defines this for functions which it implements
31952 to always fail with ENOSYS. Some functions are actually named
31953 something starting with __ and the normal name is an alias. */
31954 #if defined __stub_$ac_func || defined __stub___$ac_func
31961 return $ac_func ();
31966 rm -f conftest.$ac_objext conftest$ac_exeext
31967 if { (ac_try="$ac_link"
31968 case "(($ac_try" in
31969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31970 *) ac_try_echo=$ac_try;;
31972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31973 (eval "$ac_link") 2>conftest.er1
31975 grep -v '^ *+' conftest.er1 >conftest.err
31977 cat conftest.err >&5
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); } &&
31980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31981 { (case "(($ac_try" in
31982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31983 *) ac_try_echo=$ac_try;;
31985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31986 (eval "$ac_try") 2>&5
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); }; } &&
31990 { ac_try='test -s conftest$ac_exeext'
31991 { (case "(($ac_try" in
31992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993 *) ac_try_echo=$ac_try;;
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996 (eval "$ac_try") 2>&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; }; then
32000 eval "$as_ac_var=yes"
32002 echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32005 eval "$as_ac_var=no"
32008 rm -f core conftest.err conftest.$ac_objext \
32009 conftest$ac_exeext conftest.$ac_ext
32011 ac_res=`eval echo '${'$as_ac_var'}'`
32012 { echo "$as_me:$LINENO: result: $ac_res" >&5
32013 echo "${ECHO_T}$ac_res" >&6; }
32014 if test `eval echo '${'$as_ac_var'}'` = yes; then
32016 cat >>confdefs.h <<_ACEOF
32017 #define CRAY_STACKSEG_END $ac_func
32026 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32027 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32028 if test "${ac_cv_c_stack_direction+set}" = set; then
32029 echo $ECHO_N "(cached) $ECHO_C" >&6
32031 if test "$cross_compiling" = yes; then
32032 ac_cv_c_stack_direction=0
32034 cat >conftest.$ac_ext <<_ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h. */
32040 $ac_includes_default
32042 find_stack_direction ()
32044 static char *addr = 0;
32049 return find_stack_direction ();
32052 return (&dummy > addr) ? 1 : -1;
32058 return find_stack_direction () < 0;
32061 rm -f conftest$ac_exeext
32062 if { (ac_try="$ac_link"
32063 case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_link") 2>&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32072 { (case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_try") 2>&5
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 ac_cv_c_stack_direction=1
32083 echo "$as_me: program exited with status $ac_status" >&5
32084 echo "$as_me: failed program was:" >&5
32085 sed 's/^/| /' conftest.$ac_ext >&5
32087 ( exit $ac_status )
32088 ac_cv_c_stack_direction=-1
32090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32095 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32096 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32098 cat >>confdefs.h <<_ACEOF
32099 #define STACK_DIRECTION $ac_cv_c_stack_direction
32105 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32106 # -lseq on Dynix/PTX, -lgen on Unixware.
32107 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32108 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32109 if test "${ac_cv_search_getmntent+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32112 ac_func_search_save_LIBS=$LIBS
32113 cat >conftest.$ac_ext <<_ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h. */
32120 /* Override any GCC internal prototype to avoid an error.
32121 Use char because int might match the return type of a GCC
32122 builtin and then its argument prototype would still apply. */
32130 return getmntent ();
32135 for ac_lib in '' sun seq gen; do
32136 if test -z "$ac_lib"; then
32137 ac_res="none required"
32140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32142 rm -f conftest.$ac_objext conftest$ac_exeext
32143 if { (ac_try="$ac_link"
32144 case "(($ac_try" in
32145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146 *) ac_try_echo=$ac_try;;
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149 (eval "$ac_link") 2>conftest.er1
32151 grep -v '^ *+' conftest.er1 >conftest.err
32153 cat conftest.err >&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
32156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32157 { (case "(($ac_try" in
32158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159 *) ac_try_echo=$ac_try;;
32161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32162 (eval "$ac_try") 2>&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); }; } &&
32166 { ac_try='test -s conftest$ac_exeext'
32167 { (case "(($ac_try" in
32168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32169 *) ac_try_echo=$ac_try;;
32171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32172 (eval "$ac_try") 2>&5
32174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175 (exit $ac_status); }; }; then
32176 ac_cv_search_getmntent=$ac_res
32178 echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.$ac_ext >&5
32184 rm -f core conftest.err conftest.$ac_objext \
32186 if test "${ac_cv_search_getmntent+set}" = set; then
32190 if test "${ac_cv_search_getmntent+set}" = set; then
32193 ac_cv_search_getmntent=no
32195 rm conftest.$ac_ext
32196 LIBS=$ac_func_search_save_LIBS
32198 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32199 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32200 ac_res=$ac_cv_search_getmntent
32201 if test "$ac_res" != no; then
32202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32207 for ac_func in getmntent
32209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32215 cat >conftest.$ac_ext <<_ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h. */
32221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32223 #define $ac_func innocuous_$ac_func
32225 /* System header to define __stub macros and hopefully few prototypes,
32226 which can conflict with char $ac_func (); below.
32227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32228 <limits.h> exists even on freestanding compilers. */
32231 # include <limits.h>
32233 # include <assert.h>
32238 /* Override any GCC internal prototype to avoid an error.
32239 Use char because int might match the return type of a GCC
32240 builtin and then its argument prototype would still apply. */
32245 /* The GNU C library defines this for functions which it implements
32246 to always fail with ENOSYS. Some functions are actually named
32247 something starting with __ and the normal name is an alias. */
32248 #if defined __stub_$ac_func || defined __stub___$ac_func
32255 return $ac_func ();
32260 rm -f conftest.$ac_objext conftest$ac_exeext
32261 if { (ac_try="$ac_link"
32262 case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_link") 2>conftest.er1
32269 grep -v '^ *+' conftest.er1 >conftest.err
32271 cat conftest.err >&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
32274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32275 { (case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_try") 2>&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; } &&
32284 { ac_try='test -s conftest$ac_exeext'
32285 { (case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_try") 2>&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 eval "$as_ac_var=yes"
32296 echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 eval "$as_ac_var=no"
32302 rm -f core conftest.err conftest.$ac_objext \
32303 conftest$ac_exeext conftest.$ac_ext
32305 ac_res=`eval echo '${'$as_ac_var'}'`
32306 { echo "$as_me:$LINENO: result: $ac_res" >&5
32307 echo "${ECHO_T}$ac_res" >&6; }
32308 if test `eval echo '${'$as_ac_var'}'` = yes; then
32309 cat >>confdefs.h <<_ACEOF
32310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32317 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32318 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_closedir_void+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32322 if test "$cross_compiling" = yes; then
32323 ac_cv_func_closedir_void=yes
32325 cat >conftest.$ac_ext <<_ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h. */
32331 $ac_includes_default
32332 #include <$ac_header_dirent>
32333 #ifndef __cplusplus
32340 return closedir (opendir (".")) != 0;
32345 rm -f conftest$ac_exeext
32346 if { (ac_try="$ac_link"
32347 case "(($ac_try" in
32348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349 *) ac_try_echo=$ac_try;;
32351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352 (eval "$ac_link") 2>&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } && { ac_try='./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_func_closedir_void=no
32367 echo "$as_me: program exited with status $ac_status" >&5
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ( exit $ac_status )
32372 ac_cv_func_closedir_void=yes
32374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32379 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32380 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32381 if test $ac_cv_func_closedir_void = yes; then
32383 cat >>confdefs.h <<\_ACEOF
32384 #define CLOSEDIR_VOID 1
32389 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32390 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32391 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32392 echo $ECHO_N "(cached) $ECHO_C" >&6
32394 if test "$cross_compiling" = yes; then
32395 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32396 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32397 { (exit 1); exit 1; }; }
32399 cat >conftest.$ac_ext <<_ACEOF
32402 cat confdefs.h >>conftest.$ac_ext
32403 cat >>conftest.$ac_ext <<_ACEOF
32404 /* end confdefs.h. */
32405 $ac_includes_default
32409 /* If this system has a BSD-style setpgrp which takes arguments,
32410 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32411 exit successfully. */
32412 return setpgrp (1,1) != -1;
32417 rm -f conftest$ac_exeext
32418 if { (ac_try="$ac_link"
32419 case "(($ac_try" in
32420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32421 *) ac_try_echo=$ac_try;;
32423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32424 (eval "$ac_link") 2>&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32428 { (case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_try") 2>&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; }; then
32437 ac_cv_func_setpgrp_void=no
32439 echo "$as_me: program exited with status $ac_status" >&5
32440 echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32443 ( exit $ac_status )
32444 ac_cv_func_setpgrp_void=yes
32446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32451 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32452 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32453 if test $ac_cv_func_setpgrp_void = yes; then
32455 cat >>confdefs.h <<\_ACEOF
32456 #define SETPGRP_VOID 1
32460 # AC_FUNC_FNMATCH dnl use local version
32463 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32464 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32465 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32466 echo $ECHO_N "(cached) $ECHO_C" >&6
32468 ac_check_lib_save_LIBS=$LIBS
32469 LIBS="-lintl $LIBS"
32470 cat >conftest.$ac_ext <<_ACEOF
32473 cat confdefs.h >>conftest.$ac_ext
32474 cat >>conftest.$ac_ext <<_ACEOF
32475 /* end confdefs.h. */
32477 /* Override any GCC internal prototype to avoid an error.
32478 Use char because int might match the return type of a GCC
32479 builtin and then its argument prototype would still apply. */
32492 rm -f conftest.$ac_objext conftest$ac_exeext
32493 if { (ac_try="$ac_link"
32494 case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_link") 2>conftest.er1
32501 grep -v '^ *+' conftest.er1 >conftest.err
32503 cat conftest.err >&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); } &&
32506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32507 { (case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_try") 2>&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest$ac_exeext'
32517 { (case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; }; then
32526 ac_cv_lib_intl_gettext=yes
32528 echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32531 ac_cv_lib_intl_gettext=no
32534 rm -f core conftest.err conftest.$ac_objext \
32535 conftest$ac_exeext conftest.$ac_ext
32536 LIBS=$ac_check_lib_save_LIBS
32538 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32539 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32540 if test $ac_cv_lib_intl_gettext = yes; then
32541 LIBS="$LIBS -lintl"
32547 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32548 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32549 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32552 ac_check_lib_save_LIBS=$LIBS
32554 cat >conftest.$ac_ext <<_ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h. */
32561 /* Override any GCC internal prototype to avoid an error.
32562 Use char because int might match the return type of a GCC
32563 builtin and then its argument prototype would still apply. */
32571 return getpwnam ();
32576 rm -f conftest.$ac_objext conftest$ac_exeext
32577 if { (ac_try="$ac_link"
32578 case "(($ac_try" in
32579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32580 *) ac_try_echo=$ac_try;;
32582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32583 (eval "$ac_link") 2>conftest.er1
32585 grep -v '^ *+' conftest.er1 >conftest.err
32587 cat conftest.err >&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); } &&
32590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32591 { (case "(($ac_try" in
32592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593 *) ac_try_echo=$ac_try;;
32595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596 (eval "$ac_try") 2>&5
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; } &&
32600 { ac_try='test -s conftest$ac_exeext'
32601 { (case "(($ac_try" in
32602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603 *) ac_try_echo=$ac_try;;
32605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606 (eval "$ac_try") 2>&5
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 ac_cv_lib_sun_getpwnam=yes
32612 echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32615 ac_cv_lib_sun_getpwnam=no
32618 rm -f core conftest.err conftest.$ac_objext \
32619 conftest$ac_exeext conftest.$ac_ext
32620 LIBS=$ac_check_lib_save_LIBS
32622 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32623 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32624 if test $ac_cv_lib_sun_getpwnam = yes; then
32625 cat >>confdefs.h <<_ACEOF
32626 #define HAVE_LIBSUN 1
32635 for ac_header in zlib.h
32637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32644 ac_res=`eval echo '${'$as_ac_Header'}'`
32645 { echo "$as_me:$LINENO: result: $ac_res" >&5
32646 echo "${ECHO_T}$ac_res" >&6; }
32648 # Is the header compilable?
32649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32651 cat >conftest.$ac_ext <<_ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32657 $ac_includes_default
32658 #include <$ac_header>
32660 rm -f conftest.$ac_objext
32661 if { (ac_try="$ac_compile"
32662 case "(($ac_try" in
32663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664 *) ac_try_echo=$ac_try;;
32666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667 (eval "$ac_compile") 2>conftest.er1
32669 grep -v '^ *+' conftest.er1 >conftest.err
32671 cat conftest.err >&5
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); } &&
32674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32675 { (case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680 (eval "$ac_try") 2>&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; } &&
32684 { ac_try='test -s conftest.$ac_objext'
32685 { (case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_try") 2>&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 ac_header_compiler=yes
32696 echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32699 ac_header_compiler=no
32702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32704 echo "${ECHO_T}$ac_header_compiler" >&6; }
32706 # Is the header present?
32707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32709 cat >conftest.$ac_ext <<_ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h. */
32715 #include <$ac_header>
32717 if { (ac_try="$ac_cpp conftest.$ac_ext"
32718 case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } >/dev/null; then
32730 if test -s conftest.err; then
32731 ac_cpp_err=$ac_c_preproc_warn_flag
32732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32739 if test -z "$ac_cpp_err"; then
32740 ac_header_preproc=yes
32742 echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_header_preproc=no
32748 rm -f conftest.err conftest.$ac_ext
32749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32750 echo "${ECHO_T}$ac_header_preproc" >&6; }
32752 # So? What about this header?
32753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32759 ac_header_preproc=yes
32762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32782 eval "$as_ac_Header=\$ac_header_preproc"
32784 ac_res=`eval echo '${'$as_ac_Header'}'`
32785 { echo "$as_me:$LINENO: result: $ac_res" >&5
32786 echo "${ECHO_T}$ac_res" >&6; }
32789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32790 cat >>confdefs.h <<_ACEOF
32791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32798 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32799 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32800 if test "${ac_cv_lib_z_deflate+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32803 ac_check_lib_save_LIBS=$LIBS
32805 cat >conftest.$ac_ext <<_ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32812 /* Override any GCC internal prototype to avoid an error.
32813 Use char because int might match the return type of a GCC
32814 builtin and then its argument prototype would still apply. */
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_link") 2>conftest.er1
32836 grep -v '^ *+' conftest.er1 >conftest.err
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
32841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842 { (case "(($ac_try" in
32843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844 *) ac_try_echo=$ac_try;;
32846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847 (eval "$ac_try") 2>&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest$ac_exeext'
32852 { (case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857 (eval "$ac_try") 2>&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); }; }; then
32861 ac_cv_lib_z_deflate=yes
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32866 ac_cv_lib_z_deflate=no
32869 rm -f core conftest.err conftest.$ac_objext \
32870 conftest$ac_exeext conftest.$ac_ext
32871 LIBS=$ac_check_lib_save_LIBS
32873 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32874 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32875 if test $ac_cv_lib_z_deflate = yes; then
32880 if test x$FDLIBS = x-lz; then
32881 cat >>confdefs.h <<\_ACEOF
32882 #define HAVE_LIBZ 1
32889 # Check for ACL libraries
32892 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32893 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32894 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32895 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32898 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32899 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32901 # Is the header compilable?
32902 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32903 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32904 cat >conftest.$ac_ext <<_ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h. */
32910 $ac_includes_default
32911 #include <sys/acl.h>
32913 rm -f conftest.$ac_objext
32914 if { (ac_try="$ac_compile"
32915 case "(($ac_try" in
32916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32917 *) ac_try_echo=$ac_try;;
32919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32920 (eval "$ac_compile") 2>conftest.er1
32922 grep -v '^ *+' conftest.er1 >conftest.err
32924 cat conftest.err >&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
32927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32928 { (case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_try") 2>&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; } &&
32937 { ac_try='test -s conftest.$ac_objext'
32938 { (case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_try") 2>&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 ac_header_compiler=yes
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32952 ac_header_compiler=no
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32957 echo "${ECHO_T}$ac_header_compiler" >&6; }
32959 # Is the header present?
32960 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32961 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32962 cat >conftest.$ac_ext <<_ACEOF
32965 cat confdefs.h >>conftest.$ac_ext
32966 cat >>conftest.$ac_ext <<_ACEOF
32967 /* end confdefs.h. */
32968 #include <sys/acl.h>
32970 if { (ac_try="$ac_cpp conftest.$ac_ext"
32971 case "(($ac_try" in
32972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973 *) ac_try_echo=$ac_try;;
32975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32978 grep -v '^ *+' conftest.er1 >conftest.err
32980 cat conftest.err >&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } >/dev/null; then
32983 if test -s conftest.err; then
32984 ac_cpp_err=$ac_c_preproc_warn_flag
32985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32992 if test -z "$ac_cpp_err"; then
32993 ac_header_preproc=yes
32995 echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32998 ac_header_preproc=no
33001 rm -f conftest.err conftest.$ac_ext
33002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33003 echo "${ECHO_T}$ac_header_preproc" >&6; }
33005 # So? What about this header?
33006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33008 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33009 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33010 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33011 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33012 ac_header_preproc=yes
33015 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33016 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33017 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33018 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33019 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33020 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33021 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33022 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33023 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33024 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33025 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33026 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33030 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33031 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33032 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33035 ac_cv_header_sys_acl_h=$ac_header_preproc
33037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33038 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33043 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33044 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33045 if test "${ac_cv_func_acl_get_file+set}" = set; then
33046 echo $ECHO_N "(cached) $ECHO_C" >&6
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33056 #define acl_get_file innocuous_acl_get_file
33058 /* System header to define __stub macros and hopefully few prototypes,
33059 which can conflict with char acl_get_file (); below.
33060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061 <limits.h> exists even on freestanding compilers. */
33064 # include <limits.h>
33066 # include <assert.h>
33069 #undef acl_get_file
33071 /* Override any GCC internal prototype to avoid an error.
33072 Use char because int might match the return type of a GCC
33073 builtin and then its argument prototype would still apply. */
33077 char acl_get_file ();
33078 /* The GNU C library defines this for functions which it implements
33079 to always fail with ENOSYS. Some functions are actually named
33080 something starting with __ and the normal name is an alias. */
33081 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33088 return acl_get_file ();
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (ac_try="$ac_link"
33095 case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_link") 2>conftest.er1
33102 grep -v '^ *+' conftest.er1 >conftest.err
33104 cat conftest.err >&5
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
33107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33108 { (case "(($ac_try" in
33109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110 *) ac_try_echo=$ac_try;;
33112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113 (eval "$ac_try") 2>&5
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; } &&
33117 { ac_try='test -s conftest$ac_exeext'
33118 { (case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_try") 2>&5
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }; then
33127 ac_cv_func_acl_get_file=yes
33129 echo "$as_me: failed program was:" >&5
33130 sed 's/^/| /' conftest.$ac_ext >&5
33132 ac_cv_func_acl_get_file=no
33135 rm -f core conftest.err conftest.$ac_objext \
33136 conftest$ac_exeext conftest.$ac_ext
33138 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33139 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33140 if test $ac_cv_func_acl_get_file = yes; then
33143 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33144 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33145 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33148 ac_check_lib_save_LIBS=$LIBS
33150 cat >conftest.$ac_ext <<_ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h. */
33157 /* Override any GCC internal prototype to avoid an error.
33158 Use char because int might match the return type of a GCC
33159 builtin and then its argument prototype would still apply. */
33163 char acl_get_file ();
33167 return acl_get_file ();
33172 rm -f conftest.$ac_objext conftest$ac_exeext
33173 if { (ac_try="$ac_link"
33174 case "(($ac_try" in
33175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33176 *) ac_try_echo=$ac_try;;
33178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33179 (eval "$ac_link") 2>conftest.er1
33181 grep -v '^ *+' conftest.er1 >conftest.err
33183 cat conftest.err >&5
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); } &&
33186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; } &&
33196 { ac_try='test -s conftest$ac_exeext'
33197 { (case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_try") 2>&5
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; }; then
33206 ac_cv_lib_acl_acl_get_file=yes
33208 echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33211 ac_cv_lib_acl_acl_get_file=no
33214 rm -f core conftest.err conftest.$ac_objext \
33215 conftest$ac_exeext conftest.$ac_ext
33216 LIBS=$ac_check_lib_save_LIBS
33218 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33219 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33220 if test $ac_cv_lib_acl_acl_get_file = yes; then
33221 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33223 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33224 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33225 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33226 echo $ECHO_N "(cached) $ECHO_C" >&6
33228 ac_check_lib_save_LIBS=$LIBS
33230 cat >conftest.$ac_ext <<_ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33237 /* Override any GCC internal prototype to avoid an error.
33238 Use char because int might match the return type of a GCC
33239 builtin and then its argument prototype would still apply. */
33247 return acltotext ();
33252 rm -f conftest.$ac_objext conftest$ac_exeext
33253 if { (ac_try="$ac_link"
33254 case "(($ac_try" in
33255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256 *) ac_try_echo=$ac_try;;
33258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259 (eval "$ac_link") 2>conftest.er1
33261 grep -v '^ *+' conftest.er1 >conftest.err
33263 cat conftest.err >&5
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); } &&
33266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33267 { (case "(($ac_try" in
33268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269 *) ac_try_echo=$ac_try;;
33271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_try") 2>&5
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); }; } &&
33276 { ac_try='test -s conftest$ac_exeext'
33277 { (case "(($ac_try" in
33278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33279 *) ac_try_echo=$ac_try;;
33281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33282 (eval "$ac_try") 2>&5
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); }; }; then
33286 ac_cv_lib_sec_acltotext=yes
33288 echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33291 ac_cv_lib_sec_acltotext=no
33294 rm -f core conftest.err conftest.$ac_objext \
33295 conftest$ac_exeext conftest.$ac_ext
33296 LIBS=$ac_check_lib_save_LIBS
33298 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33299 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33300 if test $ac_cv_lib_sec_acltotext = yes; then
33301 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33310 if test $have_acl = yes; then
33311 cat >>confdefs.h <<\_ACEOF
33318 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33319 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33320 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33323 ac_check_lib_save_LIBS=$LIBS
33324 LIBS="-lpthread $LIBS"
33325 cat >conftest.$ac_ext <<_ACEOF
33328 cat confdefs.h >>conftest.$ac_ext
33329 cat >>conftest.$ac_ext <<_ACEOF
33330 /* end confdefs.h. */
33332 /* Override any GCC internal prototype to avoid an error.
33333 Use char because int might match the return type of a GCC
33334 builtin and then its argument prototype would still apply. */
33338 char pthread_create ();
33342 return pthread_create ();
33347 rm -f conftest.$ac_objext conftest$ac_exeext
33348 if { (ac_try="$ac_link"
33349 case "(($ac_try" in
33350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351 *) ac_try_echo=$ac_try;;
33353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354 (eval "$ac_link") 2>conftest.er1
33356 grep -v '^ *+' conftest.er1 >conftest.err
33358 cat conftest.err >&5
33359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360 (exit $ac_status); } &&
33361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; } &&
33371 { ac_try='test -s conftest$ac_exeext'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; }; then
33381 ac_cv_lib_pthread_pthread_create=yes
33383 echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33386 ac_cv_lib_pthread_pthread_create=no
33389 rm -f core conftest.err conftest.$ac_objext \
33390 conftest$ac_exeext conftest.$ac_ext
33391 LIBS=$ac_check_lib_save_LIBS
33393 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33394 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33395 if test $ac_cv_lib_pthread_pthread_create = yes; then
33396 PTHREAD_LIB="-lpthread"
33398 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33399 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33400 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33403 ac_check_lib_save_LIBS=$LIBS
33404 LIBS="-lpthreads $LIBS"
33405 cat >conftest.$ac_ext <<_ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33412 /* Override any GCC internal prototype to avoid an error.
33413 Use char because int might match the return type of a GCC
33414 builtin and then its argument prototype would still apply. */
33418 char pthread_create ();
33422 return pthread_create ();
33427 rm -f conftest.$ac_objext conftest$ac_exeext
33428 if { (ac_try="$ac_link"
33429 case "(($ac_try" in
33430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431 *) ac_try_echo=$ac_try;;
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434 (eval "$ac_link") 2>conftest.er1
33436 grep -v '^ *+' conftest.er1 >conftest.err
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } &&
33441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33442 { (case "(($ac_try" in
33443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33444 *) ac_try_echo=$ac_try;;
33446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33447 (eval "$ac_try") 2>&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); }; } &&
33451 { ac_try='test -s conftest$ac_exeext'
33452 { (case "(($ac_try" in
33453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454 *) ac_try_echo=$ac_try;;
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457 (eval "$ac_try") 2>&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; }; then
33461 ac_cv_lib_pthreads_pthread_create=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 ac_cv_lib_pthreads_pthread_create=no
33469 rm -f core conftest.err conftest.$ac_objext \
33470 conftest$ac_exeext conftest.$ac_ext
33471 LIBS=$ac_check_lib_save_LIBS
33473 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33474 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33475 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33476 PTHREAD_LIB="-lpthreads"
33478 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33479 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33480 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
33483 ac_check_lib_save_LIBS=$LIBS
33485 cat >conftest.$ac_ext <<_ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h. */
33492 /* Override any GCC internal prototype to avoid an error.
33493 Use char because int might match the return type of a GCC
33494 builtin and then its argument prototype would still apply. */
33498 char pthread_create ();
33502 return pthread_create ();
33507 rm -f conftest.$ac_objext conftest$ac_exeext
33508 if { (ac_try="$ac_link"
33509 case "(($ac_try" in
33510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511 *) ac_try_echo=$ac_try;;
33513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33514 (eval "$ac_link") 2>conftest.er1
33516 grep -v '^ *+' conftest.er1 >conftest.err
33518 cat conftest.err >&5
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); } &&
33521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33522 { (case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_try") 2>&5
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); }; } &&
33531 { ac_try='test -s conftest$ac_exeext'
33532 { (case "(($ac_try" in
33533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534 *) ac_try_echo=$ac_try;;
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537 (eval "$ac_try") 2>&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; }; then
33541 ac_cv_lib_c_r_pthread_create=yes
33543 echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 ac_cv_lib_c_r_pthread_create=no
33549 rm -f core conftest.err conftest.$ac_objext \
33550 conftest$ac_exeext conftest.$ac_ext
33551 LIBS=$ac_check_lib_save_LIBS
33553 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33554 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33555 if test $ac_cv_lib_c_r_pthread_create = yes; then
33556 PTHREAD_LIB="-lc_r"
33558 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33559 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33560 if test "${ac_cv_func_pthread_create+set}" = set; then
33561 echo $ECHO_N "(cached) $ECHO_C" >&6
33563 cat >conftest.$ac_ext <<_ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h. */
33569 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33571 #define pthread_create innocuous_pthread_create
33573 /* System header to define __stub macros and hopefully few prototypes,
33574 which can conflict with char pthread_create (); below.
33575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33576 <limits.h> exists even on freestanding compilers. */
33579 # include <limits.h>
33581 # include <assert.h>
33584 #undef pthread_create
33586 /* Override any GCC internal prototype to avoid an error.
33587 Use char because int might match the return type of a GCC
33588 builtin and then its argument prototype would still apply. */
33592 char pthread_create ();
33593 /* The GNU C library defines this for functions which it implements
33594 to always fail with ENOSYS. Some functions are actually named
33595 something starting with __ and the normal name is an alias. */
33596 #if defined __stub_pthread_create || defined __stub___pthread_create
33603 return pthread_create ();
33608 rm -f conftest.$ac_objext conftest$ac_exeext
33609 if { (ac_try="$ac_link"
33610 case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_link") 2>conftest.er1
33617 grep -v '^ *+' conftest.er1 >conftest.err
33619 cat conftest.err >&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); } &&
33622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; } &&
33632 { ac_try='test -s conftest$ac_exeext'
33633 { (case "(($ac_try" in
33634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33635 *) ac_try_echo=$ac_try;;
33637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33638 (eval "$ac_try") 2>&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); }; }; then
33642 ac_cv_func_pthread_create=yes
33644 echo "$as_me: failed program was:" >&5
33645 sed 's/^/| /' conftest.$ac_ext >&5
33647 ac_cv_func_pthread_create=no
33650 rm -f core conftest.err conftest.$ac_objext \
33651 conftest$ac_exeext conftest.$ac_ext
33653 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33654 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33667 cat >>confdefs.h <<\_ACEOF
33673 CFLAGS=${CFLAGS--O}
33675 if test x$have_gcc = xyes ; then
33676 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33677 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33679 LDFLAGS=${LDFLAGS--O}
33680 DB_LIBS="${SQL_LFLAGS}"
33681 CPPFLAGS="$CPPFLAGS"
33709 # Finally we set appropriate distribution specific
33710 # variables and defaults
33712 # PFILES are platform specific files
33713 PFILES="platforms/Makefile"
33717 hostname=`uname -n | cut -d '.' -f 1`
33718 if test x${hostname} = x ; then
33719 hostname="localhost"
33721 case "$DISTNAME" in
33724 PSCMD="ps -e -o pid,comm"
33725 PFILES="${PFILES} \
33726 platforms/aix/Makefile"
33727 TAPEDRIVE="/dev/rmt0.1"
33731 PTHREAD_LIB="-lpthread -lexc"
33732 if test "${CC}" = "gcc" ; then
33739 TAPEDRIVE="/dev/nrmt0"
33742 DISTVER=`uname -a |awk '{print $3}'`
33743 TAPEDRIVE="/dev/nrmt0"
33744 PTHREAD_LIB="-pthread"
33745 CFLAGS="${CFLAGS} -pthread"
33746 PSCMD="ps -ax -o pid,command"
33749 PFILES="${PFILES} \
33750 platforms/bsdi/Makefile \
33751 platforms/bsdi/bacula-fd \
33752 platforms/bsdi/bacula-sd \
33753 platforms/bsdi/bacula-dir"
33754 largefile_support="yes"
33757 DISTVER=`uname -a |awk '{print $3}'`
33758 TAPEDRIVE="/dev/nrst0"
33760 WCFLAGS="-mwindows"
33761 WLDFLAGS="-mwindows"
33765 TAPEDRIVE="/dev/nst0"
33766 PSCMD="ps -e -o pid,command"
33768 PFILES="${PFILES} \
33769 platforms/darwin/Makefile"
33772 DISTVER=`cat /etc/debian_version`
33773 TAPEDRIVE="/dev/nrst0"
33774 PSCMD="ps -e -o pid,command"
33777 DISTVER=`uname -a |awk '{print $3}'`
33778 VER=`echo $DISTVER | cut -c 1`
33779 if test x$VER = x4 ; then
33780 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33781 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33785 TAPEDRIVE="/dev/nrsa0"
33786 PSCMD="ps -ax -o pid,command"
33787 PFILES="${PFILES} \
33788 platforms/freebsd/Makefile \
33789 platforms/freebsd/bacula-fd \
33790 platforms/freebsd/bacula-sd \
33791 platforms/freebsd/bacula-dir"
33792 largefile_support="yes"
33795 PSCMD="UNIX95=1 ps -e -o pid,comm"
33796 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33798 TAPEDRIVE="/dev/rmt/0hnb"
33799 PTHREAD_LIB="-lpthread"
33800 cat >>confdefs.h <<\_ACEOF
33801 #define _INCLUDE_LONGLONG 1
33807 TAPEDRIVE="/dev/rmt/0cbn"
33808 PSCMD="ps -e -o pid,comm"
33809 PFILES="${PFILES} \
33810 platforms/irix/Makefile \
33811 platforms/irix/bacula-fd \
33812 platforms/irix/bacula-sd \
33813 platforms/irix/bacula-dir"
33816 DISTVER=`uname -a |awk '{print $3}'`
33819 TAPEDRIVE="/dev/nrst0"
33820 PSCMD="ps -ax -o pid,command"
33821 PTHREAD_LIB="-pthread"
33822 CFLAGS="${CFLAGS} -pthread"
33825 DISTVER=`uname -a |awk '{print $3}'`
33828 TAPEDRIVE="/dev/nrst0"
33829 PSCMD="ps -ax -o pid,command"
33830 PTHREAD_LIB="-pthread"
33831 CFLAGS="${CFLAGS} -pthread"
33832 PFILES="${PFILES} \
33833 platforms/openbsd/Makefile \
33834 platforms/openbsd/bacula-fd \
33835 platforms/openbsd/bacula-sd \
33836 platforms/openbsd/bacula-dir"
33839 if test -f /etc/whitebox-release ; then
33840 f=/etc/whitebox-release
33842 f=/etc/redhat-release
33844 if test `cat $f | grep release |\
33845 cut -f 3 -d ' '`x = "Enterprise"x ; then
33846 DISTVER="Enterprise "`cat $f | grep release |\
33849 DISTVER=`cat /etc/redhat-release | grep release |\
33852 TAPEDRIVE="/dev/nst0"
33853 PSCMD="ps -e -o pid,command"
33854 PFILES="${PFILES} \
33855 platforms/redhat/Makefile \
33856 platforms/redhat/bacula-fd \
33857 platforms/redhat/bacula-sd \
33858 platforms/redhat/bacula-dir \
33859 platforms/redhat/bacula.spec \
33863 DISTVER=`cat /etc/mandrake-release | grep release |\
33865 TAPEDRIVE="/dev/nst0"
33866 PSCMD="ps -e -o pid,command"
33867 PFILES="${PFILES} \
33868 platforms/mandrake/Makefile \
33869 platforms/mandrake/bacula-fd \
33870 platforms/mandrake/bacula-sd \
33871 platforms/mandrake/bacula-dir \
33872 platforms/mandrake/bacula.spec \
33876 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33877 TAPEDRIVE="/dev/nst0"
33878 PSCMD="ps -e -o pid,command"
33879 PFILES="${PFILES} \
33880 platforms/gentoo/Makefile \
33881 platforms/gentoo/bacula-init \
33882 platforms/gentoo/bacula-fd \
33883 platforms/gentoo/bacula-sd \
33884 platforms/gentoo/bacula-dir"
33887 DISTVER=`cat /etc/slackware-version`
33888 TAPEDRIVE="/dev/nst0"
33889 PSCMD="ps -e -o pid,command"
33890 PFILES="${PFILES} \
33891 platforms/slackware/Makefile \
33892 platforms/slackware/rc.bacula-fd \
33893 platforms/slackware/rc.bacula-sd \
33894 platforms/slackware/rc.bacula-dir\
33895 platforms/slackware/functions.bacula"
33899 TAPEDRIVE="/dev/rmt/0cbn"
33900 PSCMD="ps -e -o pid,comm"
33901 PFILES="${PFILES} \
33902 platforms/solaris/Makefile \
33903 platforms/solaris/bacula-fd \
33904 platforms/solaris/bacula-sd \
33905 platforms/solaris/bacula-dir"
33906 if test x$DISTVER = x5.6 ; then
33907 cat >>confdefs.h <<\_ACEOF
33908 #define HAVE_OLD_SOCKOPT 1
33912 LIBS="$LIBS -lresolv"
33915 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33917 TAPEDRIVE="/dev/nst0"
33918 PSCMD="ps -e -o pid,command"
33919 PFILES="${PFILES} \
33920 platforms/suse/Makefile \
33921 platforms/suse/bacula-fd \
33922 platforms/suse/bacula-sd \
33923 platforms/suse/bacula-dir \
33924 platforms/suse/bacula \
33925 platforms/suse/bacula.spec"
33930 TAPEDRIVE="/dev/nst0"
33931 PSCMD="ps -e -o pid,command"
33932 PFILES="${PFILES} \
33933 platforms/suse/Makefile \
33934 platforms/suse/bacula-fd \
33935 platforms/suse/bacula-sd \
33936 platforms/suse/bacula-dir"
33940 TAPEDRIVE="/dev/nst0"
33943 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33949 LIBS="$PTHREAD_LIB $LIBS"
33951 cat >>confdefs.h <<_ACEOF
33955 cat >>confdefs.h <<_ACEOF
33966 MCOMMON=./autoconf/Make.common
33969 if test "x${subsysdir}" = "x${sbindir}" ; then
33972 echo "You have set both --sbindir and --with-subsys-dir"
33973 echo " equal to: ${subsysdir} "
33974 echo "This is not permitted. Please reconfigure."
33976 echo "Aborting configuration ..."
33982 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33984 ac_config_commands="$ac_config_commands default"
33986 cat >confcache <<\_ACEOF
33987 # This file is a shell script that caches the results of configure
33988 # tests run on this system so they can be shared between configure
33989 # scripts and configure runs, see configure's option --config-cache.
33990 # It is not useful on other systems. If it contains results you don't
33991 # want to keep, you may remove or edit it.
33993 # config.status only pays attention to the cache file if you give it
33994 # the --recheck option to rerun configure.
33996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33998 # following values.
34002 # The following way of writing the cache mishandles newlines in values,
34003 # but we know of no workaround that is simple, portable, and efficient.
34004 # So, we kill variables containing newlines.
34005 # Ultrix sh set writes to stderr and can't be redirected directly,
34006 # and sets the high bit in the cache file unless we assign to the vars.
34008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34009 eval ac_val=\$$ac_var
34013 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34014 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34017 _ | IFS | as_nl) ;; #(
34018 *) $as_unset $ac_var ;;
34024 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34025 *${as_nl}ac_space=\ *)
34026 # `set' does not quote correctly, so add quotes (double-quote
34027 # substitution turns \\\\ into \\, and sed turns \\ into \).
34030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34033 # `set' quotes correctly as required by POSIX, so do not add quotes.
34034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34048 if test -w "$cache_file"; then
34049 test "x$cache_file" != "x/dev/null" &&
34050 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34051 echo "$as_me: updating cache $cache_file" >&6;}
34052 cat confcache >$cache_file
34054 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34055 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34061 # Let make expand exec_prefix.
34062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34064 DEFS=-DHAVE_CONFIG_H
34068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34069 # 1. Remove the extension, and $U if already installed.
34070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34071 ac_i=`echo "$ac_i" | sed "$ac_script"`
34072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34073 # will be set to the directory where LIBOBJS objects are built.
34074 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34075 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34077 LIBOBJS=$ac_libobjs
34079 LTLIBOBJS=$ac_ltlibobjs
34083 : ${CONFIG_STATUS=./config.status}
34084 ac_clean_files_save=$ac_clean_files
34085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34086 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34087 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34088 cat >$CONFIG_STATUS <<_ACEOF
34090 # Generated by $as_me.
34091 # Run this file to recreate the current configuration.
34092 # Compiler output produced by configure, useful for debugging
34093 # configure, is in config.log if it exists.
34096 ac_cs_recheck=false
34098 SHELL=\${CONFIG_SHELL-$SHELL}
34101 cat >>$CONFIG_STATUS <<\_ACEOF
34102 ## --------------------- ##
34103 ## M4sh Initialization. ##
34104 ## --------------------- ##
34106 # Be Bourne compatible
34107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34111 # is contrary to our usage. Disable this feature.
34112 alias -g '${1+"$@"}'='"$@"'
34113 setopt NO_GLOB_SUBST
34115 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34117 BIN_SH=xpg4; export BIN_SH # for Tru64
34118 DUALCASE=1; export DUALCASE # for MKS sh
34122 # Avoid depending upon Character Ranges.
34123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34126 as_cr_digits='0123456789'
34127 as_cr_alnum=$as_cr_Letters$as_cr_digits
34129 # The user is always right.
34130 if test "${PATH_SEPARATOR+set}" != set; then
34131 echo "#! /bin/sh" >conf$$.sh
34132 echo "exit 0" >>conf$$.sh
34134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34142 # Support unset when possible.
34143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34151 # We need space, tab and new line, in precisely that order. Quoting is
34152 # there to prevent editors from complaining about space-tab.
34153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34154 # splitting by setting IFS to empty value.)
34159 # Find who we are. Look in the path if we contain no directory separator.
34161 *[\\/]* ) as_myself=$0 ;;
34162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34163 for as_dir in $PATH
34166 test -z "$as_dir" && as_dir=.
34167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34173 # We did not find ourselves, most probably we were run as `sh COMMAND'
34174 # in which case we are not to be found in the path.
34175 if test "x$as_myself" = x; then
34178 if test ! -f "$as_myself"; then
34179 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34180 { (exit 1); exit 1; }
34183 # Work around bugs in pre-3.0 UWIN ksh.
34184 for as_var in ENV MAIL MAILPATH
34185 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34195 LC_TELEPHONE LC_TIME
34197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34198 eval $as_var=C; export $as_var
34200 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34204 # Required to use basename.
34205 if expr a : '\(a\)' >/dev/null 2>&1 &&
34206 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34213 as_basename=basename
34219 # Name of the executable.
34220 as_me=`$as_basename -- "$0" ||
34221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34222 X"$0" : 'X\(//\)$' \| \
34223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34225 sed '/^.*\/\([^/][^/]*\)\/*$/{
34244 as_lineno_1=$LINENO
34245 as_lineno_2=$LINENO
34246 test "x$as_lineno_1" != "x$as_lineno_2" &&
34247 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34250 # uniformly replaced by the line number. The first 'sed' inserts a
34251 # line-number line after each line using $LINENO; the second 'sed'
34252 # does the real work. The second script uses 'N' to pair each
34253 # line-number line with the line containing $LINENO, and appends
34254 # trailing '-' during substitution so that $LINENO is not a special
34255 # case at line end.
34256 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34257 # scripts with optimization help from Paolo Bonzini. Blame Lee
34258 # E. McMahon (1931-1989) for sed's syntax. :-)
34270 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34273 ' >$as_me.lineno &&
34274 chmod +x "$as_me.lineno" ||
34275 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34276 { (exit 1); exit 1; }; }
34278 # Don't try to exec as it changes $[0], causing all sort of problems
34279 # (the dirname of $[0] is not the place where we might find the
34280 # original and so on. Autoconf is especially sensitive to this).
34281 . "./$as_me.lineno"
34282 # Exit status is that of the last command.
34287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34293 ECHO_C= ECHO_N= ECHO_T=
34294 case `echo -n x` in
34296 case `echo 'x\c'` in
34297 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34304 if expr a : '\(a\)' >/dev/null 2>&1 &&
34305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34311 rm -f conf$$ conf$$.exe conf$$.file
34312 if test -d conf$$.dir; then
34313 rm -f conf$$.dir/conf$$.file
34319 if ln -s conf$$.file conf$$ 2>/dev/null; then
34321 # ... but there are two gotchas:
34322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34324 # In both cases, we have to default to `cp -p'.
34325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34327 elif ln conf$$.file conf$$ 2>/dev/null; then
34332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34333 rmdir conf$$.dir 2>/dev/null
34335 if mkdir -p . 2>/dev/null; then
34338 test -d ./-p && rmdir ./-p
34342 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34343 # systems may use methods other than mode bits to determine executability.
34344 cat >conf$$.file <<_ASEOF
34348 chmod +x conf$$.file
34349 if test -x conf$$.file >/dev/null 2>&1; then
34350 as_executable_p="test -x"
34356 # Sed expression to map a string onto a valid CPP name.
34357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34359 # Sed expression to map a string onto a valid variable name.
34360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34365 # Save the log message, to keep $[0] and so on meaningful, and to
34366 # report actual input values of CONFIG_FILES etc. instead of their
34367 # values after options handling.
34369 This file was extended by $as_me, which was
34370 generated by GNU Autoconf 2.60. Invocation command line was
34372 CONFIG_FILES = $CONFIG_FILES
34373 CONFIG_HEADERS = $CONFIG_HEADERS
34374 CONFIG_LINKS = $CONFIG_LINKS
34375 CONFIG_COMMANDS = $CONFIG_COMMANDS
34378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34383 cat >>$CONFIG_STATUS <<_ACEOF
34384 # Files that config.status was made for.
34385 config_files="$ac_config_files"
34386 config_headers="$ac_config_headers"
34387 config_commands="$ac_config_commands"
34391 cat >>$CONFIG_STATUS <<\_ACEOF
34393 \`$as_me' instantiates files from templates according to the
34394 current configuration.
34396 Usage: $0 [OPTIONS] [FILE]...
34398 -h, --help print this help, then exit
34399 -V, --version print version number, then exit
34400 -q, --quiet do not print progress messages
34401 -d, --debug don't remove temporary files
34402 --recheck update $as_me by reconfiguring in the same conditions
34403 --file=FILE[:TEMPLATE]
34404 instantiate the configuration file FILE
34405 --header=FILE[:TEMPLATE]
34406 instantiate the configuration header FILE
34408 Configuration files:
34411 Configuration headers:
34414 Configuration commands:
34417 Report bugs to <bug-autoconf@gnu.org>."
34420 cat >>$CONFIG_STATUS <<_ACEOF
34423 configured by $0, generated by GNU Autoconf 2.60,
34424 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34426 Copyright (C) 2006 Free Software Foundation, Inc.
34427 This config.status script is free software; the Free Software Foundation
34428 gives unlimited permission to copy, distribute and modify it."
34435 cat >>$CONFIG_STATUS <<\_ACEOF
34436 # If no file are specified by the user, then we need to provide default
34437 # value. By we need to know if files were specified by the user.
34443 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34444 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34455 # Handling of the options.
34456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34459 echo "$ac_cs_version"; exit ;;
34460 --debug | --debu | --deb | --de | --d | -d )
34462 --file | --fil | --fi | --f )
34464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34465 ac_need_defaults=false;;
34466 --header | --heade | --head | --hea )
34468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34469 ac_need_defaults=false;;
34471 # Conflict between --help and --header
34472 { echo "$as_me: error: ambiguous option: $1
34473 Try \`$0 --help' for more information." >&2
34474 { (exit 1); exit 1; }; };;
34475 --help | --hel | -h )
34476 echo "$ac_cs_usage"; exit ;;
34477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34481 # This is an error.
34482 -*) { echo "$as_me: error: unrecognized option: $1
34483 Try \`$0 --help' for more information." >&2
34484 { (exit 1); exit 1; }; } ;;
34486 *) ac_config_targets="$ac_config_targets $1"
34487 ac_need_defaults=false ;;
34493 ac_configure_extra_args=
34495 if $ac_cs_silent; then
34497 ac_configure_extra_args="$ac_configure_extra_args --silent"
34501 cat >>$CONFIG_STATUS <<_ACEOF
34502 if \$ac_cs_recheck; then
34503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34504 CONFIG_SHELL=$SHELL
34505 export CONFIG_SHELL
34506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34510 cat >>$CONFIG_STATUS <<\_ACEOF
34514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34515 ## Running $as_me. ##
34521 cat >>$CONFIG_STATUS <<_ACEOF
34525 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34526 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34528 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34529 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34530 LINGUAS="${LINGUAS-%UNSET%}"
34535 cat >>$CONFIG_STATUS <<\_ACEOF
34537 # Handling of arguments.
34538 for ac_config_target in $ac_config_targets
34540 case $ac_config_target in
34541 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34542 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34543 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34545 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34546 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34547 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34548 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34549 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34550 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34551 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34552 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34553 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34554 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34555 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34556 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34557 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34558 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34559 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34560 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34561 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34562 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34563 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34564 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34565 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34566 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34567 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34568 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34569 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34570 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34571 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34572 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34573 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34574 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34575 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34576 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34577 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34578 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34579 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34580 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34581 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34582 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34583 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34584 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34585 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34586 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34587 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34588 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34589 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34590 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34591 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34592 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34593 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34594 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34595 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34596 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34597 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34598 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34599 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34600 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34601 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34602 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34603 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34604 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34605 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34606 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34607 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34608 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34609 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34610 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34611 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34612 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34613 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34614 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34615 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34616 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34617 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34618 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34619 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34620 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34621 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34622 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34623 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34624 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34625 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34626 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34627 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34628 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34629 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34630 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34631 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34632 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34633 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34634 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34635 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34636 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34637 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34638 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34639 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34640 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34641 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34642 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34643 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34644 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34645 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34646 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34650 { (exit 1); exit 1; }; };;
34655 # If the user did not use the arguments to specify the items to instantiate,
34656 # then the envvar interface is used. Set only those that are not.
34657 # We use the long form for the default assignment because of an extremely
34658 # bizarre bug on SunOS 4.1.3.
34659 if $ac_need_defaults; then
34660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34662 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34665 # Have a temporary directory for convenience. Make it in the build tree
34666 # simply because there is no reason against having it here, and in addition,
34667 # creating and moving files from /tmp can sometimes cause problems.
34668 # Hook for its removal unless debugging.
34669 # Note that there is a small window in which the directory will not be cleaned:
34670 # after its creation but before its name has been assigned to `$tmp'.
34674 trap 'exit_status=$?
34675 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34677 trap '{ (exit 1); exit 1; }' 1 2 13 15
34679 # Create a (secure) tmp directory for tmp files.
34682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34683 test -n "$tmp" && test -d "$tmp"
34686 tmp=./conf$$-$RANDOM
34687 (umask 077 && mkdir "$tmp")
34690 echo "$me: cannot create a temporary directory in ." >&2
34691 { (exit 1); exit 1; }
34695 # Set up the sed scripts for CONFIG_FILES section.
34698 # No need to generate the scripts if there are no CONFIG_FILES.
34699 # This happens for instance when ./config.status config.h
34700 if test -n "$CONFIG_FILES"; then
34704 # Create sed commands to just substitute file output variables.
34706 # Remaining file output variables are in a fragment that also has non-file
34712 for ac_last_try in false false false false false :; do
34713 cat >conf$$subs.sed <<_ACEOF
34714 SHELL!$SHELL$ac_delim
34715 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34716 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34717 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34718 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34719 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34720 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34721 exec_prefix!$exec_prefix$ac_delim
34722 prefix!$prefix$ac_delim
34723 program_transform_name!$program_transform_name$ac_delim
34724 bindir!$bindir$ac_delim
34725 sbindir!$sbindir$ac_delim
34726 libexecdir!$libexecdir$ac_delim
34727 datarootdir!$datarootdir$ac_delim
34728 datadir!$datadir$ac_delim
34729 sysconfdir!$sysconfdir$ac_delim
34730 sharedstatedir!$sharedstatedir$ac_delim
34731 localstatedir!$localstatedir$ac_delim
34732 includedir!$includedir$ac_delim
34733 oldincludedir!$oldincludedir$ac_delim
34734 docdir!$docdir$ac_delim
34735 infodir!$infodir$ac_delim
34736 htmldir!$htmldir$ac_delim
34737 dvidir!$dvidir$ac_delim
34738 pdfdir!$pdfdir$ac_delim
34739 psdir!$psdir$ac_delim
34740 libdir!$libdir$ac_delim
34741 localedir!$localedir$ac_delim
34742 mandir!$mandir$ac_delim
34743 DEFS!$DEFS$ac_delim
34744 ECHO_C!$ECHO_C$ac_delim
34745 ECHO_N!$ECHO_N$ac_delim
34746 ECHO_T!$ECHO_T$ac_delim
34747 LIBS!$LIBS$ac_delim
34748 build_alias!$build_alias$ac_delim
34749 host_alias!$host_alias$ac_delim
34750 target_alias!$target_alias$ac_delim
34751 BUILD_DIR!$BUILD_DIR$ac_delim
34752 TOP_DIR!$TOP_DIR$ac_delim
34753 TRUEPRG!$TRUEPRG$ac_delim
34754 FALSEPRG!$FALSEPRG$ac_delim
34755 VERSION!$VERSION$ac_delim
34756 DATE!$DATE$ac_delim
34757 LSMDATE!$LSMDATE$ac_delim
34759 CFLAGS!$CFLAGS$ac_delim
34760 LDFLAGS!$LDFLAGS$ac_delim
34761 CPPFLAGS!$CPPFLAGS$ac_delim
34762 ac_ct_CC!$ac_ct_CC$ac_delim
34763 EXEEXT!$EXEEXT$ac_delim
34764 OBJEXT!$OBJEXT$ac_delim
34766 CXXFLAGS!$CXXFLAGS$ac_delim
34767 ac_ct_CXX!$ac_ct_CXX$ac_delim
34769 GREP!$GREP$ac_delim
34770 EGREP!$EGREP$ac_delim
34771 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34772 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34773 INSTALL_DATA!$INSTALL_DATA$ac_delim
34774 RANLIB!$RANLIB$ac_delim
34779 ECHO!$ECHO$ac_delim
34783 OPENSSL!$OPENSSL$ac_delim
34786 MKISOFS!$MKISOFS$ac_delim
34787 PYTHON!$PYTHON$ac_delim
34788 GROWISOFS!$GROWISOFS$ac_delim
34789 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34790 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34791 PKGCONFIG!$PKGCONFIG$ac_delim
34792 WXCONFIG!$WXCONFIG$ac_delim
34793 WXFLAGS!$WXFLAGS$ac_delim
34794 CDRECORD!$CDRECORD$ac_delim
34795 PIDOF!$PIDOF$ac_delim
34797 ARFLAGS!$ARFLAGS$ac_delim
34798 MAKE_SHELL!$MAKE_SHELL$ac_delim
34799 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34800 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34801 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34802 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34803 build!$build$ac_delim
34804 build_cpu!$build_cpu$ac_delim
34805 build_vendor!$build_vendor$ac_delim
34806 build_os!$build_os$ac_delim
34807 host!$host$ac_delim
34810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34812 elif $ac_last_try; then
34813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34815 { (exit 1); exit 1; }; }
34817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34822 if test -n "$ac_eof"; then
34823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34824 ac_eof=`expr $ac_eof + 1`
34827 cat >>$CONFIG_STATUS <<_ACEOF
34828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34830 /^[ ]*@MCOMMON@[ ]*$/{
34836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34837 s/^/s,@/; s/!/@,|#_!!_#|/
34840 s/'"$ac_delim"'$/,g/; t
34842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34843 ' >>$CONFIG_STATUS <conf$$subs.sed
34844 rm -f conf$$subs.sed
34845 cat >>$CONFIG_STATUS <<_ACEOF
34851 for ac_last_try in false false false false false :; do
34852 cat >conf$$subs.sed <<_ACEOF
34853 host_cpu!$host_cpu$ac_delim
34854 host_vendor!$host_vendor$ac_delim
34855 host_os!$host_os$ac_delim
34856 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34857 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34858 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34859 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34860 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34861 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34862 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34863 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34864 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34865 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34866 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34867 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34868 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34869 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34870 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34871 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34872 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34873 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34874 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34875 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34876 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34877 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34878 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34879 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34880 SET_MAKE!$SET_MAKE$ac_delim
34881 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34882 USE_NLS!$USE_NLS$ac_delim
34883 MSGFMT!$MSGFMT$ac_delim
34884 GMSGFMT!$GMSGFMT$ac_delim
34885 XGETTEXT!$XGETTEXT$ac_delim
34886 MSGMERGE!$MSGMERGE$ac_delim
34887 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34888 LIBICONV!$LIBICONV$ac_delim
34889 LTLIBICONV!$LTLIBICONV$ac_delim
34890 INTLLIBS!$INTLLIBS$ac_delim
34891 LIBINTL!$LIBINTL$ac_delim
34892 LTLIBINTL!$LTLIBINTL$ac_delim
34893 POSUB!$POSUB$ac_delim
34894 GLIBC2!$GLIBC2$ac_delim
34895 ALLOCA!$ALLOCA$ac_delim
34896 GLIBC21!$GLIBC21$ac_delim
34897 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34898 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34899 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34900 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34901 INTLBISON!$INTLBISON$ac_delim
34902 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34903 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34904 CATOBJEXT!$CATOBJEXT$ac_delim
34905 DATADIRNAME!$DATADIRNAME$ac_delim
34906 INSTOBJEXT!$INSTOBJEXT$ac_delim
34907 GENCAT!$GENCAT$ac_delim
34908 INTLOBJS!$INTLOBJS$ac_delim
34909 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34910 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34911 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34912 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34913 GNOME_LIBS!$GNOME_LIBS$ac_delim
34914 GNOME_DIR!$GNOME_DIR$ac_delim
34915 BAT_DIR!$BAT_DIR$ac_delim
34916 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34917 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34918 WX_DIR!$WX_DIR$ac_delim
34919 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34920 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34921 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34922 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34923 STATIC_FD!$STATIC_FD$ac_delim
34924 STATIC_SD!$STATIC_SD$ac_delim
34925 STATIC_DIR!$STATIC_DIR$ac_delim
34926 STATIC_CONS!$STATIC_CONS$ac_delim
34927 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34928 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34929 ALL_DIRS!$ALL_DIRS$ac_delim
34930 DIRD_DIR!$DIRD_DIR$ac_delim
34931 DIR_TOOLS!$DIR_TOOLS$ac_delim
34932 STORED_DIR!$STORED_DIR$ac_delim
34933 CONS_INC!$CONS_INC$ac_delim
34934 CONS_OBJ!$CONS_OBJ$ac_delim
34935 CONS_SRC!$CONS_SRC$ac_delim
34936 CONS_LIBS!$CONS_LIBS$ac_delim
34937 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34938 READLINE_SRC!$READLINE_SRC$ac_delim
34939 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34940 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34941 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34942 OPENSSL_INC!$OPENSSL_INC$ac_delim
34943 working_dir!$working_dir$ac_delim
34944 scriptdir!$scriptdir$ac_delim
34945 dump_email!$dump_email$ac_delim
34946 job_email!$job_email$ac_delim
34947 smtp_host!$smtp_host$ac_delim
34948 piddir!$piddir$ac_delim
34949 subsysdir!$subsysdir$ac_delim
34952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34954 elif $ac_last_try; then
34955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34957 { (exit 1); exit 1; }; }
34959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34964 if test -n "$ac_eof"; then
34965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34966 ac_eof=`expr $ac_eof + 1`
34969 cat >>$CONFIG_STATUS <<_ACEOF
34970 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34975 s/^/s,@/; s/!/@,|#_!!_#|/
34978 s/'"$ac_delim"'$/,g/; t
34980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34981 ' >>$CONFIG_STATUS <conf$$subs.sed
34982 rm -f conf$$subs.sed
34983 cat >>$CONFIG_STATUS <<_ACEOF
34989 for ac_last_try in false false false false false :; do
34990 cat >conf$$subs.sed <<_ACEOF
34991 baseport!$baseport$ac_delim
34992 dir_port!$dir_port$ac_delim
34993 fd_port!$fd_port$ac_delim
34994 sd_port!$sd_port$ac_delim
34995 dir_password!$dir_password$ac_delim
34996 fd_password!$fd_password$ac_delim
34997 sd_password!$sd_password$ac_delim
34998 mon_dir_password!$mon_dir_password$ac_delim
34999 mon_fd_password!$mon_fd_password$ac_delim
35000 mon_sd_password!$mon_sd_password$ac_delim
35001 db_name!$db_name$ac_delim
35002 db_user!$db_user$ac_delim
35003 dir_user!$dir_user$ac_delim
35004 dir_group!$dir_group$ac_delim
35005 sd_user!$sd_user$ac_delim
35006 sd_group!$sd_group$ac_delim
35007 fd_user!$fd_user$ac_delim
35008 fd_group!$fd_group$ac_delim
35009 SBINPERM!$SBINPERM$ac_delim
35010 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35011 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35012 SQL_BINDIR!$SQL_BINDIR$ac_delim
35013 cats!$cats$ac_delim
35014 DB_TYPE!$DB_TYPE$ac_delim
35015 GETCONF!$GETCONF$ac_delim
35016 XMKMF!$XMKMF$ac_delim
35017 X_CFLAGS!$X_CFLAGS$ac_delim
35018 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35019 X_LIBS!$X_LIBS$ac_delim
35020 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35021 LIBOBJS!$LIBOBJS$ac_delim
35022 FDLIBS!$FDLIBS$ac_delim
35023 DEBUG!$DEBUG$ac_delim
35024 DINCLUDE!$DINCLUDE$ac_delim
35025 DLIB!$DLIB$ac_delim
35026 DB_LIBS!$DB_LIBS$ac_delim
35027 WCFLAGS!$WCFLAGS$ac_delim
35028 WLDFLAGS!$WLDFLAGS$ac_delim
35029 WRAPLIBS!$WRAPLIBS$ac_delim
35030 OBJLIST!$OBJLIST$ac_delim
35031 hostname!$hostname$ac_delim
35032 TAPEDRIVE!$TAPEDRIVE$ac_delim
35033 PSCMD!$PSCMD$ac_delim
35034 WIN32!$WIN32$ac_delim
35035 MACOSX!$MACOSX$ac_delim
35036 DISTNAME!$DISTNAME$ac_delim
35037 DISTVER!$DISTVER$ac_delim
35038 LTLIBOBJS!$LTLIBOBJS$ac_delim
35041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35043 elif $ac_last_try; then
35044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35046 { (exit 1); exit 1; }; }
35048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35053 if test -n "$ac_eof"; then
35054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35055 ac_eof=`expr $ac_eof + 1`
35058 cat >>$CONFIG_STATUS <<_ACEOF
35059 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35064 s/^/s,@/; s/!/@,|#_!!_#|/
35067 s/'"$ac_delim"'$/,g/; t
35069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35070 ' >>$CONFIG_STATUS <conf$$subs.sed
35071 rm -f conf$$subs.sed
35072 cat >>$CONFIG_STATUS <<_ACEOF
35079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35081 # trailing colons and then remove the whole line if VPATH becomes empty
35082 # (actually we leave an empty line to preserve line numbers).
35083 if test "x$srcdir" = x.; then
35084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35085 s/:*\$(srcdir):*/:/
35086 s/:*\${srcdir}:*/:/
35088 s/^\([^=]*=[ ]*\):*/\1/
35094 cat >>$CONFIG_STATUS <<\_ACEOF
35095 fi # test -n "$CONFIG_FILES"
35098 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35101 :[FHLC]) ac_mode=$ac_tag; continue;;
35103 case $ac_mode$ac_tag in
35105 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35106 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35107 { (exit 1); exit 1; }; };;
35108 :[FH]-) ac_tag=-:-;;
35109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35126 -) ac_f="$tmp/stdin";;
35127 *) # Look for the file first in the build tree, then in the source tree
35128 # (if the path is not absolute). The absolute path cannot be DOS-style,
35129 # because $ac_f cannot contain `:'.
35133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35135 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35136 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35137 { (exit 1); exit 1; }; };;
35139 ac_file_inputs="$ac_file_inputs $ac_f"
35142 # Let's still pretend it is `configure' which instantiates (i.e., don't
35143 # use $as_me), people would be surprised to read:
35144 # /* config.h. Generated by config.status. */
35145 configure_input="Generated from "`IFS=:
35146 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35147 if test x"$ac_file" != x-; then
35148 configure_input="$ac_file. $configure_input"
35149 { echo "$as_me:$LINENO: creating $ac_file" >&5
35150 echo "$as_me: creating $ac_file" >&6;}
35154 *:-:* | *:-) cat >"$tmp/stdin";;
35159 ac_dir=`$as_dirname -- "$ac_file" ||
35160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35161 X"$ac_file" : 'X\(//\)[^/]' \| \
35162 X"$ac_file" : 'X\(//\)$' \| \
35163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35169 /^X\(\/\/\)[^/].*/{
35184 -*) as_dir=./$as_dir;;
35186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35191 *) as_qdir=$as_dir;;
35193 as_dirs="'$as_qdir' $as_dirs"
35194 as_dir=`$as_dirname -- "$as_dir" ||
35195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35196 X"$as_dir" : 'X\(//\)[^/]' \| \
35197 X"$as_dir" : 'X\(//\)$' \| \
35198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35204 /^X\(\/\/\)[^/].*/{
35217 test -d "$as_dir" && break
35219 test -z "$as_dirs" || eval "mkdir $as_dirs"
35220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35222 { (exit 1); exit 1; }; }; }
35226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35229 # A ".." for each directory in $ac_dir_suffix.
35230 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35231 case $ac_top_builddir_sub in
35232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35236 ac_abs_top_builddir=$ac_pwd
35237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35238 # for backward compatibility:
35239 ac_top_builddir=$ac_top_build_prefix
35242 .) # We are building in place.
35244 ac_top_srcdir=$ac_top_builddir_sub
35245 ac_abs_top_srcdir=$ac_pwd ;;
35246 [\\/]* | ?:[\\/]* ) # Absolute name.
35247 ac_srcdir=$srcdir$ac_dir_suffix;
35248 ac_top_srcdir=$srcdir
35249 ac_abs_top_srcdir=$srcdir ;;
35250 *) # Relative name.
35251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35252 ac_top_srcdir=$ac_top_build_prefix$srcdir
35253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35270 cat >>$CONFIG_STATUS <<\_ACEOF
35271 # If the template does not know about datarootdir, expand it.
35272 # FIXME: This hack should be removed a few years after 2.60.
35273 ac_datarootdir_hack=; ac_datarootdir_seen=
35275 case `sed -n '/datarootdir/ {
35284 ' $ac_file_inputs` in
35285 *datarootdir*) ac_datarootdir_seen=yes;;
35286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35287 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35288 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35290 cat >>$CONFIG_STATUS <<_ACEOF
35291 ac_datarootdir_hack='
35292 s&@datadir@&$datadir&g
35293 s&@docdir@&$docdir&g
35294 s&@infodir@&$infodir&g
35295 s&@localedir@&$localedir&g
35296 s&@mandir@&$mandir&g
35297 s&\\\${datarootdir}&$datarootdir&g' ;;
35301 # Neutralize VPATH when `$srcdir' = `.'.
35302 # Shell code in configure.ac might set extrasub.
35303 # FIXME: do we really want to maintain this feature?
35304 cat >>$CONFIG_STATUS <<_ACEOF
35308 cat >>$CONFIG_STATUS <<\_ACEOF
35310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35311 s&@configure_input@&$configure_input&;t t
35312 s&@top_builddir@&$ac_top_builddir_sub&;t t
35313 s&@srcdir@&$ac_srcdir&;t t
35314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35315 s&@top_srcdir@&$ac_top_srcdir&;t t
35316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35317 s&@builddir@&$ac_builddir&;t t
35318 s&@abs_builddir@&$ac_abs_builddir&;t t
35319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35320 s&@INSTALL@&$ac_INSTALL&;t t
35321 $ac_datarootdir_hack
35322 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35327 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35328 which seems to be undefined. Please make sure it is defined." >&5
35329 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35330 which seems to be undefined. Please make sure it is defined." >&2;}
35334 -) cat "$tmp/out"; rm -f "$tmp/out";;
35335 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35344 # Transform confdefs.h into a sed script `conftest.defines', that
35345 # substitutes the proper values into config.h.in to produce config.h.
35346 rm -f conftest.defines conftest.tail
35347 # First, append a space to every undef/define line, to ease matching.
35348 echo 's/$/ /' >conftest.defines
35349 # Then, protect against being on the right side of a sed subst, or in
35350 # an unquoted here document, in config.status. If some macros were
35351 # called several times there might be several #defines for the same
35352 # symbol, which is useless. But do not sort them, since the last
35353 # AC_DEFINE must be honored.
35354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35355 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35356 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35357 # PARAMS is the parameter list in the macro definition--in most cases, it's
35358 # just an empty string.
35359 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35360 ac_dB='\\)[ (].*,\\1define\\2'
35368 s/^[ ]*#[ ]*define[ ][ ]*//
35373 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35374 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35375 ' >>conftest.defines
35377 # Remove the space that was appended to ease matching.
35378 # Then replace #undef with comments. This is necessary, for
35379 # example, in the case of _POSIX_SOURCE, which is predefined and required
35380 # on some systems where configure will not decide to define it.
35381 # (The regexp can be short, since the line contains either #define or #undef.)
35383 s,^[ #]*u.*,/* & */,' >>conftest.defines
35385 # Break up conftest.defines:
35386 ac_max_sed_lines=50
35388 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35389 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35390 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35392 ac_in='$ac_file_inputs'
35393 ac_out='"$tmp/out1"'
35394 ac_nxt='"$tmp/out2"'
35398 # Write a here document:
35399 cat >>$CONFIG_STATUS <<_ACEOF
35400 # First, check the format of the line:
35401 cat >"\$tmp/defines.sed" <<\\CEOF
35402 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35403 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35407 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35409 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35410 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35411 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35412 grep . conftest.tail >/dev/null || break
35413 rm -f conftest.defines
35414 mv conftest.tail conftest.defines
35416 rm -f conftest.defines conftest.tail
35418 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35419 cat >>$CONFIG_STATUS <<\_ACEOF
35420 if test x"$ac_file" != x-; then
35421 echo "/* $configure_input */" >"$tmp/config.h"
35422 cat "$ac_result" >>"$tmp/config.h"
35423 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35425 echo "$as_me: $ac_file is unchanged" >&6;}
35428 mv "$tmp/config.h" $ac_file
35431 echo "/* $configure_input */"
35437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35438 echo "$as_me: executing $ac_file commands" >&6;}
35443 case $ac_file$ac_mode in
35445 for ac_file in $CONFIG_FILES; do
35446 # Support "outfile[:infile[:infile...]]"
35448 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35450 # PO directories have a Makefile.in generated from Makefile.in.in.
35451 case "$ac_file" in */Makefile.in)
35452 # Adjust a relative srcdir.
35453 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35454 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35455 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35456 # In autoconf-2.13 it is called $ac_given_srcdir.
35457 # In autoconf-2.50 it is called $srcdir.
35458 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35459 case "$ac_given_srcdir" in
35460 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35461 /*) top_srcdir="$ac_given_srcdir" ;;
35462 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35464 # Treat a directory as a PO directory if and only if it has a
35465 # POTFILES.in file. This allows packages to have multiple PO
35466 # directories under different names or in different locations.
35467 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35468 rm -f "$ac_dir/POTFILES"
35469 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35470 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35471 POMAKEFILEDEPS="POTFILES.in"
35472 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35473 # on $ac_dir but don't depend on user-specified configuration
35475 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35476 # The LINGUAS file contains the set of available languages.
35477 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35478 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35480 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35481 # Hide the ALL_LINGUAS assigment from automake.
35482 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35483 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35485 # The set of available languages was given in configure.in.
35486 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35489 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35490 # Compute UPDATEPOFILES
35491 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35492 # Compute DUMMYPOFILES
35493 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35495 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35496 case "$ac_given_srcdir" in
35498 *) srcdirpre='$(srcdir)/' ;;
35504 for lang in $ALL_LINGUAS; do
35505 POFILES="$POFILES $srcdirpre$lang.po"
35506 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35507 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35508 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35510 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35511 # environment variable.
35513 if test -n "$ALL_LINGUAS"; then
35514 for presentlang in $ALL_LINGUAS; do
35516 if test "%UNSET%" != "$LINGUAS"; then
35517 desiredlanguages="$LINGUAS"
35519 desiredlanguages="$ALL_LINGUAS"
35521 for desiredlang in $desiredlanguages; do
35522 # Use the presentlang catalog if desiredlang is
35523 # a. equal to presentlang, or
35524 # b. a variant of presentlang (because in this case,
35525 # presentlang can be used as a fallback for messages
35526 # which are not translated in the desiredlang catalog).
35527 case "$desiredlang" in
35528 "$presentlang"*) useit=yes;;
35531 if test $useit = yes; then
35532 INST_LINGUAS="$INST_LINGUAS $presentlang"
35537 if test -n "$INST_LINGUAS"; then
35538 for lang in $INST_LINGUAS; do
35539 CATALOGS="$CATALOGS $lang.gmo"
35542 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35543 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"
35544 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35545 if test -f "$f"; then
35547 *.orig | *.bak | *~) ;;
35548 *) cat "$f" >> "$ac_dir/Makefile" ;;
35556 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35563 { (exit 0); exit 0; }
35565 chmod +x $CONFIG_STATUS
35566 ac_clean_files=$ac_clean_files_save
35569 # configure is writing to config.log, and then calls config.status.
35570 # config.status does its own redirection, appending to config.log.
35571 # Unfortunately, on DOS this fails, as config.log is still kept open
35572 # by configure, so config.status won't be able to write to it; its
35573 # output is simply discarded. So we exec the FD to /dev/null,
35574 # effectively closing config.log, so it can be properly (re)opened and
35575 # appended to by config.status. When coming back to configure, we
35576 # need to make the FD available again.
35577 if test "$no_create" != yes; then
35579 ac_config_status_args=
35580 test "$silent" = yes &&
35581 ac_config_status_args="$ac_config_status_args --quiet"
35583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35586 # would make configure fail if this is the last instruction.
35587 $ac_cs_success || { (exit 1); exit 1; }
35592 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35593 chmod 755 dvd-handler dvd-simulator
35594 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35599 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35600 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35602 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35603 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35605 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35606 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35608 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35609 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35611 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35612 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35614 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35615 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35617 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35618 chmod 755 $c/sqlite
35621 chmod 755 src/win32/build-depkgs-mingw32
35623 if test "${support_bat}" = "yes" ; then
35625 chmod 755 install_conf_file
35630 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35631 largefile_support="yes"
35635 # A whole lot of hand springs to get the compiler version.
35636 # This is because gcc changed the output in version 3.0
35638 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35639 if test "x${CCVERSION}" = "x" ; then
35640 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35642 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35643 if test x"${CXXVERSION}" = x ; then
35644 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35647 if test "x${subsysdir}" = "x${sbindir}" ; then
35650 echo "You have set --sbindir and --with-subsys-dir"
35651 echo " both equal to: ${subsysdir} "
35652 echo " This is not permitted. Please reconfigure."
35654 echo "Aborting configuration ..."
35660 if test "x${db_type}" = "xInternal" ; then
35663 echo "You have not specified either --enable-client-only or one of the"
35664 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35665 echo " This is not permitted. Please reconfigure."
35667 echo "Aborting the configuration ..."
35674 Configuration on `date`:
35676 Host: $host -- ${DISTNAME} ${DISTVER}
35677 Bacula version: ${VERSION} (${DATE})
35678 Source code location: ${srcdir}
35679 Install binaries: ${sbindir}
35680 Install config files: ${sysconfdir}
35681 Scripts directory: ${scriptdir}
35682 Working directory: ${working_dir}
35683 PID directory: ${piddir}
35684 Subsys directory: ${subsysdir}
35685 Man directory: ${mandir}
35686 Data directory: ${datadir}
35687 C Compiler: ${CC} ${CCVERSION}
35688 C++ Compiler: ${CXX} ${CXXVERSION}
35689 Compiler flags: ${WCFLAGS} ${CFLAGS}
35690 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35692 Statically Linked Tools: ${support_static_tools}
35693 Statically Linked FD: ${support_static_fd}
35694 Statically Linked SD: ${support_static_sd}
35695 Statically Linked DIR: ${support_static_dir}
35696 Statically Linked CONS: ${support_static_cons}
35697 Database type: ${db_type}
35698 Database lib: ${DB_LIBS}
35699 Database name: ${db_name}
35700 Database user: ${db_user}
35702 Job Output Email: ${job_email}
35703 Traceback Email: ${dump_email}
35704 SMTP Host Address: ${smtp_host}
35706 Director Port: ${dir_port}
35707 File daemon Port: ${fd_port}
35708 Storage daemon Port: ${sd_port}
35710 Director User: ${dir_user}
35711 Director Group: ${dir_group}
35712 Storage Daemon User: ${sd_user}
35713 Storage DaemonGroup: ${sd_group}
35714 File Daemon User: ${fd_user}
35715 File Daemon Group: ${fd_group}
35717 SQL binaries Directory ${SQL_BINDIR}
35719 Large file support: $largefile_support
35720 Bacula conio support: ${got_conio} ${CONS_LIBS}
35721 readline support: ${got_readline} ${PRTREADLINE_SRC}
35722 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35723 TLS support: ${support_tls}
35724 Encryption support: ${support_crypto}
35725 ZLIB support: ${have_zlib}
35726 enable-smartalloc: ${support_smartalloc}
35727 enable-bat: ${support_bat}
35728 enable-gnome: ${support_gnome} ${gnome_version}
35729 enable-bwx-console: ${support_wx_console} ${wx_version}
35730 enable-tray-monitor: ${support_tray_monitor}
35731 client-only: ${build_client_only}
35732 build-dird: ${build_dird}
35733 build-stored: ${build_stored}
35734 ACL support: ${have_acl}
35735 Python support: ${support_python} ${PYTHON_LIBS}