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
760 TRAY_MONITOR_CPPFLAGS
837 ac_subst_files='MCOMMON'
838 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name=s,x,x,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980 eval enable_$ac_feature=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
995 -help | --help | --hel | --he | -h)
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1171 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package| sed 's/-/_/g'`
1177 eval with_$ac_package=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/-/_/g'`
1186 eval with_$ac_package=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 # Be sure to have absolute directory names.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249 { (exit 1); exit 1; }; }
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 { echo "$as_me: error: Working directory cannot be determined" >&2
1280 { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 { echo "$as_me: error: pwd does not report name of working directory" >&2
1283 { (exit 1); exit 1; }; }
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$0" : 'X\(//\)[^/]' \| \
1293 X"$0" : 'X\(//\)$' \| \
1294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323 { (exit 1); exit 1; }; }
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328 { (exit 1); exit 1; }; }
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --x-includes=DIR X include files are in DIR
1413 --x-libraries=DIR X library files are in DIR
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 if test -n "$ac_init_help"; then
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --disable-nls do not use Native Language Support
1429 --disable-rpath do not hardcode runtime library paths
1430 --enable-gnome enable build of gnome-console GUI disabled
1431 --enable-wx-console enable build of wxWidgets console disabled
1432 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1433 --enable-smartalloc enable smartalloc debugging support disabled
1434 --enable-static-tools enable static tape tools disabled
1435 --enable-static-fd enable static File daemon disabled
1436 --enable-static-sd enable static Storage daemon disabled
1437 --enable-static-dir enable static Director disabled
1438 --enable-static-cons enable static Console disabled
1439 --enable-client-only build client (File daemon) only disabled
1440 --enable-build-dird enable building of dird (Director) enabled
1441 --enable-build-stored enable building of stored (Storage daemon) enabled
1442 --enable-ipv6 enable ipv6 support enabled
1444 --disable-readline disable readline support disable
1446 --disable-largefile omit support for large files
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-gnu-ld assume the C compiler uses GNU ld default=no
1452 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1453 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1454 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1455 --without-libintl-prefix don't search for libintl in includedir and libdir
1456 --with-included-gettext use the GNU gettext library included here
1457 --with-readline=DIR specify readline library directory
1459 --with-python=DIR Include Python support. DIR is the Python base
1460 install directory, default is to search through
1461 a number of common places for the Python files.
1462 --with-tcp-wrappers=DIR enable tcpwrappers support
1463 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1464 --with-working-dir=PATH specify path of Bacula working directory
1465 --with-scriptdir=PATH specify path of Bacula scripts directory
1466 --with-dump-email=EMAIL dump email address
1467 --with-job-email=EMAIL job output email address
1468 --with-smtp-host=HOST SMTP mail host address
1469 --with-pid-dir=PATH specify location of Bacula pid files
1470 --with-subsys-dir=PATH specify location of Bacula subsys file
1471 --with-baseport=PORT specify base port address for daemons
1472 --with-dir-password=PASSWORD specify Director's password
1473 --with-fd-password=PASSWORD specify Client's password
1474 --with-sd-password=PASSWORD specify Storage daemon's password
1475 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1476 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1477 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1478 --with-dir-user=USER specify user for Director daemon
1479 --with-dir-group=GROUP specify group for Director daemon
1480 --with-sd-user=USER specify user for Storage daemon
1481 --with-sd-group=GROUP specify group for Storage daemon
1482 --with-fd-user=USER specify user for File daemon
1483 --with-fd-group=GROUP specify group for File daemon
1484 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1485 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
1486 base install directory, defaults to /usr/local/pgsql
1488 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
1489 install directory, default is to search through
1490 a number of common places for the MySQL files.
1492 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
1493 install directory, default is to search through
1494 a number of common places for the MySQL files.
1496 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
1497 install directory, default is to search through
1498 a number of common places for the SQLite3 files.
1500 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
1501 install directory, default is to search through
1502 a number of common places for the SQLite files.
1503 --with-x use the X Window System
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1515 WXCONFIG wx-config command. On some systems, you must set it to
1516 wx-config-2.6 to use wxWidgets 2.6.
1517 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1518 XMKMF Path to xmkmf, Makefile generator for X Window System
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.60
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.60. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1987 # Extract the first word of "$ac_prog", so it can be a program name with args.
1988 set dummy $ac_prog; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2006 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 TRUEPRG=$ac_cv_path_TRUEPRG
2018 if test -n "$TRUEPRG"; then
2019 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2020 echo "${ECHO_T}$TRUEPRG" >&6; }
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2027 test -n "$TRUEPRG" && break
2029 test -n "$TRUEPRG" || TRUEPRG=":"
2031 for ac_prog in false
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 FALSEPRG=$ac_cv_path_FALSEPRG
2064 if test -n "$FALSEPRG"; then
2065 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2066 echo "${ECHO_T}$FALSEPRG" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2073 test -n "$FALSEPRG" && break
2075 test -n "$FALSEPRG" || FALSEPRG=":"
2080 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2081 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2082 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2083 echo "configuring for bacula $VERSION ($DATE)"
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2131 if test -z "$ac_cv_prog_CC"; then
2133 # Extract the first word of "gcc", so it can be a program name with args.
2134 set dummy gcc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$ac_ct_CC"; then
2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_ac_ct_CC="gcc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2169 if test "x$ac_ct_CC" = x; then
2172 case $cross_compiling:$ac_tool_warned in
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}cc; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_CC="${ac_tool_prefix}cc"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2229 if test -z "$CC"; then
2230 # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2249 ac_prog_rejected=yes
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test $ac_prog_rejected = yes; then
2261 # We found a bogon in the path, so make sure we never use it.
2262 set dummy $ac_cv_prog_CC
2264 if test $# != 0; then
2265 # We chose a different compiler from the bogus one.
2266 # However, it has the same basename, so the bogon will be chosen
2267 # first if we set CC to just the basename; use the full file name.
2269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275 if test -n "$CC"; then
2276 { echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2285 if test -z "$CC"; then
2286 if test -n "$ac_tool_prefix"; then
2287 for ac_prog in cl.exe
2289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_CC+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 if test -n "$CC"; then
2297 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 if test -n "$CC"; then
2318 { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2321 { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2326 test -n "$CC" && break
2329 if test -z "$CC"; then
2331 for ac_prog in cl.exe
2333 # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_CC="$ac_prog"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2370 test -n "$ac_ct_CC" && break
2373 if test "x$ac_ct_CC" = x; then
2376 case $cross_compiling:$ac_tool_warned in
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2393 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
2399 # Provide some information about the compiler.
2400 echo "$as_me:$LINENO: checking for C compiler version" >&5
2401 ac_compiler=`set X $ac_compile; echo $2`
2402 { (ac_try="$ac_compiler --version >&5"
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_compiler --version >&5") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (ac_try="$ac_compiler -v >&5"
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compiler -v >&5") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (ac_try="$ac_compiler -V >&5"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_compiler -V >&5") 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 ac_clean_files_save=$ac_clean_files
2449 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2450 # Try to create an executable without -o first, disregard a.out.
2451 # It will help us diagnose broken compilers, and finding out an intuition
2453 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2454 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2455 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2457 # List of possible output files, starting from the most likely.
2458 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2459 # only as a last resort. b.out is created by i960 compilers.
2460 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2462 # The IRIX 6 linker writes into existing files which may not be
2463 # executable, retaining their permissions. Remove them first so a
2464 # subsequent execution test works.
2466 for ac_file in $ac_files
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2470 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2475 if { (ac_try="$ac_link_default"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_link_default") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; then
2485 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2486 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2487 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2488 # so that the user can short-circuit this test for compilers unknown to
2490 for ac_file in $ac_files
2492 test -f "$ac_file" || continue
2494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2497 # We found the default executable, but exeext='' is most
2501 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 # We set ac_cv_exeext here because the later test for it is not
2506 # safe: cross compilers may not add the suffix if given an `-o'
2507 # argument, so we may need to know it at that point already.
2508 # Even if this section looks crufty: it has the advantage of
2515 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&2;}
2525 { (exit 77); exit 77; }; }
2528 ac_exeext=$ac_cv_exeext
2529 { echo "$as_me:$LINENO: result: $ac_file" >&5
2530 echo "${ECHO_T}$ac_file" >&6; }
2532 # Check that the compiler produces executables we can run. If not, either
2533 # the compiler is broken, or we cross compile.
2534 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537 # If not cross compiling, check that we can run a simple program.
2538 if test "$cross_compiling" != yes; then
2539 if { ac_try='./$ac_file'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 if test "$cross_compiling" = maybe; then
2554 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555 If you meant to cross compile, use \`--host'.
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&2;}
2560 { (exit 1); exit 1; }; }
2564 { echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6; }
2567 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 # Check that the compiler produces executables we can run. If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574 echo "${ECHO_T}$cross_compiling" >&6; }
2576 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578 if { (ac_try="$ac_link"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_link") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2590 # work properly (i.e., refer to `conftest.exe'), while it won't with
2592 for ac_file in conftest.exe conftest conftest.*; do
2593 test -f "$ac_file" || continue
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest$ac_cv_exeext
2610 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2613 rm -f conftest.$ac_ext
2614 EXEEXT=$ac_cv_exeext
2616 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618 if test "${ac_cv_objext+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2636 rm -f conftest.o conftest.obj
2637 if { (ac_try="$ac_compile"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 for ac_file in conftest.o conftest.obj conftest.*; do
2648 test -f "$ac_file" || continue;
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2668 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 echo "${ECHO_T}$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2672 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2742 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2743 GCC=`test $ac_compiler_gnu = yes && echo yes`
2744 ac_test_CFLAGS=${CFLAGS+set}
2745 ac_save_CFLAGS=$CFLAGS
2746 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_g+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_save_c_werror_flag=$ac_c_werror_flag
2752 ac_c_werror_flag=yes
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785 { (case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_try") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2896 { (case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_try") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_try") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_c_werror_flag=$ac_save_c_werror_flag
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2934 if test "$ac_test_CFLAGS" = set; then
2935 CFLAGS=$ac_save_CFLAGS
2936 elif test $ac_cv_prog_cc_g = yes; then
2937 if test "$GCC" = yes; then
2943 if test "$GCC" = yes; then
2949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cc_c89+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 ac_cv_prog_cc_c89=no
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2964 #include <sys/types.h>
2965 #include <sys/stat.h>
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2980 s = g (p, va_arg (v,int));
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2986 function prototypes and stuff, but not '\xHH' hex character constants.
2987 These don't provoke an error unfortunately, instead are silently treated
2988 as 'x'. The following induces an error, until -std is added to get
2989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2990 array size at least. It's necessary to write '\x00'==0 to get something
2991 that's true only with -std. */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995 inside strings and character constants. */
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3016 CC="$ac_save_CC $ac_arg"
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cc_c89=$ac_arg
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f core conftest.err conftest.$ac_objext
3060 test "x$ac_cv_prog_cc_c89" != "xno" && break
3062 rm -f conftest.$ac_ext
3067 case "x$ac_cv_prog_cc_c89" in
3069 { echo "$as_me:$LINENO: result: none needed" >&5
3070 echo "${ECHO_T}none needed" >&6; } ;;
3072 { echo "$as_me:$LINENO: result: unsupported" >&5
3073 echo "${ECHO_T}unsupported" >&6; } ;;
3075 CC="$CC $ac_cv_prog_cc_c89"
3076 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3077 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -z "$CXX"; then
3093 if test -n "$CCC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_CXX+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$CXX"; then
3107 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 if test -n "$CXX"; then
3128 { echo "$as_me:$LINENO: result: $CXX" >&5
3129 echo "${ECHO_T}$CXX" >&6; }
3131 { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3136 test -n "$CXX" && break
3139 if test -z "$CXX"; then
3141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$ac_ct_CXX"; then
3151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CXX="$ac_prog"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3171 if test -n "$ac_ct_CXX"; then
3172 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3173 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3175 { echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6; }
3180 test -n "$ac_ct_CXX" && break
3183 if test "x$ac_ct_CXX" = x; then
3186 case $cross_compiling:$ac_tool_warned in
3188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3189 whose name does not start with the host triplet. If you think this
3190 configuration is useful to you, please write to autoconf@gnu.org." >&5
3191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3192 whose name does not start with the host triplet. If you think this
3193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3194 ac_tool_warned=yes ;;
3202 # Provide some information about the compiler.
3203 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3204 ac_compiler=`set X $ac_compile; echo $2`
3205 { (ac_try="$ac_compiler --version >&5"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compiler --version >&5") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }
3215 { (ac_try="$ac_compiler -v >&5"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compiler -v >&5") 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }
3225 { (ac_try="$ac_compiler -V >&5"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compiler -V >&5") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3274 { (case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_try") 2>&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3307 GXX=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CXXFLAGS=${CXXFLAGS+set}
3309 ac_save_CXXFLAGS=$CXXFLAGS
3310 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3311 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_cxx_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3316 ac_cxx_werror_flag=yes
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_prog_cxx_g=yes
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3404 { (case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_try") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cxx_g=yes
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3497 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3498 if test "$ac_test_CXXFLAGS" = set; then
3499 CXXFLAGS=$ac_save_CXXFLAGS
3500 elif test $ac_cv_prog_cxx_g = yes; then
3501 if test "$GXX" = yes; then
3507 if test "$GXX" = yes; then
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 if test "x$CC" != xcc; then
3520 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3521 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3523 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3524 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3526 set dummy $CC; ac_cc=`echo $2 |
3527 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3528 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 # Make sure it works both with $CC and with simple cc.
3547 # We do the test twice because some compilers refuse to overwrite an
3548 # existing .o file with -o, though they will create one.
3549 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3551 if { (case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_try") 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_try") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); };
3570 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3571 if test "x$CC" != xcc; then
3572 # Test first that cc exists at all.
3573 if { ac_try='cc -c conftest.$ac_ext >&5'
3574 { (case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_try") 2>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3585 if { (case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_try") 2>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_try") 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); };
3607 # cc exists but doesn't like -o.
3608 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3613 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3615 rm -f core conftest*
3618 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3619 { echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6; }
3622 { echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6; }
3625 cat >>confdefs.h <<\_ACEOF
3626 #define NO_MINUS_C_MINUS_O 1
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3642 if test -z "$CPP"; then
3643 if test "${ac_cv_prog_CPP+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3650 for ac_c_preproc_warn_flag in '' yes
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3665 # include <limits.h>
3667 # include <assert.h>
3671 if { (ac_try="$ac_cpp conftest.$ac_ext"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } >/dev/null; then
3684 if test -s conftest.err; then
3685 ac_cpp_err=$ac_c_preproc_warn_flag
3686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693 if test -z "$ac_cpp_err"; then
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 # Broken: fails on valid input.
3703 rm -f conftest.err conftest.$ac_ext
3705 # OK, works on sane cases. Now check whether nonexistent headers
3706 # can be detected and how.
3707 cat >conftest.$ac_ext <<_ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 #include <ac_nonexistent.h>
3715 if { (ac_try="$ac_cpp conftest.$ac_ext"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null; then
3728 if test -s conftest.err; then
3729 ac_cpp_err=$ac_c_preproc_warn_flag
3730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 if test -z "$ac_cpp_err"; then
3738 # Broken: success on invalid input.
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Passes both tests.
3749 rm -f conftest.err conftest.$ac_ext
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3766 { echo "$as_me:$LINENO: result: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 # include <limits.h>
3786 # include <assert.h>
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null; then
3803 if test -s conftest.err; then
3804 ac_cpp_err=$ac_c_preproc_warn_flag
3805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3812 if test -z "$ac_cpp_err"; then
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Broken: fails on valid input.
3822 rm -f conftest.err conftest.$ac_ext
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3834 if { (ac_try="$ac_cpp conftest.$ac_ext"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev/null; then
3847 if test -s conftest.err; then
3848 ac_cpp_err=$ac_c_preproc_warn_flag
3849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3856 if test -z "$ac_cpp_err"; then
3857 # Broken: success on invalid input.
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 # Passes both tests.
3868 rm -f conftest.err conftest.$ac_ext
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then
3876 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&2;}
3880 { (exit 1); exit 1; }; }
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3891 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_GREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 # Extract the first word of "grep ggrep" to use in msg output
3896 if test -z "$GREP"; then
3897 set dummy grep ggrep; ac_prog_name=$2
3898 if test "${ac_cv_path_GREP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_path_GREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in grep ggrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3912 # Check for GNU ac_path_GREP and select it if it is found.
3913 # Check for GNU $ac_path_GREP
3914 case `"$ac_path_GREP" --version 2>&1` in
3916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3919 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 echo 'GREP' >> "conftest.nl"
3926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 ac_count=`expr $ac_count + 1`
3929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_GREP="$ac_path_GREP"
3932 ac_path_GREP_max=$ac_count
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_GREP_found && break 3
3951 GREP="$ac_cv_path_GREP"
3952 if test -z "$GREP"; then
3953 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3955 { (exit 1); exit 1; }; }
3959 ac_cv_path_GREP=$GREP
3964 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3965 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3966 GREP="$ac_cv_path_GREP"
3969 { echo "$as_me:$LINENO: checking for egrep" >&5
3970 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3971 if test "${ac_cv_path_EGREP+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975 then ac_cv_path_EGREP="$GREP -E"
3977 # Extract the first word of "egrep" to use in msg output
3978 if test -z "$EGREP"; then
3979 set dummy egrep; ac_prog_name=$2
3980 if test "${ac_cv_path_EGREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 ac_path_EGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in egrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3994 # Check for GNU ac_path_EGREP and select it if it is found.
3995 # Check for GNU $ac_path_EGREP
3996 case `"$ac_path_EGREP" --version 2>&1` in
3998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'EGREP' >> "conftest.nl"
4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_EGREP="$ac_path_EGREP"
4014 ac_path_EGREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 $ac_path_EGREP_found && break 3
4033 EGREP="$ac_cv_path_EGREP"
4034 if test -z "$EGREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4041 ac_cv_path_EGREP=$EGREP
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4049 EGREP="$ac_cv_path_EGREP"
4052 if test $ac_cv_c_compiler_gnu = yes; then
4053 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4054 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4055 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 ac_pattern="Autoconf.*'x'"
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4070 ac_cv_prog_gcc_traditional=yes
4072 ac_cv_prog_gcc_traditional=no
4077 if test $ac_cv_prog_gcc_traditional = no; then
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4089 ac_cv_prog_gcc_traditional=yes
4095 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4096 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4097 if test $ac_cv_prog_gcc_traditional = yes; then
4098 CC="$CC -traditional"
4102 BASECC=`basename $CC`
4104 if test "x$BASECC" = xgcc; then
4105 cat >>confdefs.h <<\_ACEOF
4111 # Extract the first word of "$CXX", so it can be a program name with args.
4112 set dummy $CXX; ac_word=$2
4113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4115 if test "${ac_cv_path_CXX+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4143 if test -n "$CXX"; then
4144 { echo "$as_me:$LINENO: result: $CXX" >&5
4145 echo "${ECHO_T}$CXX" >&6; }
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4152 if test ! -e $CXX; then
4153 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4154 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4155 { (exit 1); exit 1; }; }
4158 # Find a good install program. We prefer a C program (faster),
4159 # so one script is as good as another. But avoid the broken or
4160 # incompatible versions:
4161 # SysV /etc/install, /usr/sbin/install
4162 # SunOS /usr/etc/install
4163 # IRIX /sbin/install
4165 # AmigaOS /C/install, which installs bootblocks on floppy discs
4166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4169 # OS/2's system install, which has a completely different semantic
4170 # ./install, which can be erroneously created by make from ./install.sh.
4171 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4172 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4173 if test -z "$INSTALL"; then
4174 if test "${ac_cv_path_install+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 # Account for people who put trailing slashes in PATH elements.
4184 ./ | .// | /cC/* | \
4185 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4186 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4189 # OSF1 and SCO ODT 3.0 have their own names for install.
4190 # Don't use installbsd from OSF since it installs stuff as root
4192 for ac_prog in ginstall scoinst install; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4195 if test $ac_prog = install &&
4196 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4197 # AIX install. It has an incompatible calling convention.
4199 elif test $ac_prog = install &&
4200 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4201 # program-specific install script used by HP pwplus--don't use.
4204 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4217 if test "${ac_cv_path_install+set}" = set; then
4218 INSTALL=$ac_cv_path_install
4220 # As a last resort, use the slow shell script. Don't cache a
4221 # value for INSTALL within a source directory, because that will
4222 # break other packages using the cache if that directory is
4223 # removed, or if the value is a relative name.
4224 INSTALL=$ac_install_sh
4227 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4228 echo "${ECHO_T}$INSTALL" >&6; }
4230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4231 # It thinks the first close brace ends the variable substitution.
4232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4236 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4238 if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_RANLIB+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if test -n "$RANLIB"; then
4247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 RANLIB=$ac_cv_prog_RANLIB
4267 if test -n "$RANLIB"; then
4268 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4269 echo "${ECHO_T}$RANLIB" >&6; }
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4277 if test -z "$ac_cv_prog_RANLIB"; then
4278 ac_ct_RANLIB=$RANLIB
4279 # Extract the first word of "ranlib", so it can be a program name with args.
4280 set dummy ranlib; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 if test -n "$ac_ct_RANLIB"; then
4287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_ac_ct_RANLIB="ranlib"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4307 if test -n "$ac_ct_RANLIB"; then
4308 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4309 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4315 if test "x$ac_ct_RANLIB" = x; then
4318 case $cross_compiling:$ac_tool_warned in
4320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4321 whose name does not start with the host triplet. If you think this
4322 configuration is useful to you, please write to autoconf@gnu.org." >&5
4323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4324 whose name does not start with the host triplet. If you think this
4325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4326 ac_tool_warned=yes ;;
4328 RANLIB=$ac_ct_RANLIB
4331 RANLIB="$ac_cv_prog_RANLIB"
4334 # Extract the first word of "mv", so it can be a program name with args.
4335 set dummy mv; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_path_MV+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4366 if test -n "$MV"; then
4367 { echo "$as_me:$LINENO: result: $MV" >&5
4368 echo "${ECHO_T}$MV" >&6; }
4370 { echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6; }
4375 # Extract the first word of "rm", so it can be a program name with args.
4376 set dummy rm; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_path_RM+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4407 if test -n "$RM"; then
4408 { echo "$as_me:$LINENO: result: $RM" >&5
4409 echo "${ECHO_T}$RM" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4416 # Extract the first word of "cp", so it can be a program name with args.
4417 set dummy cp; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_path_CP+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4448 if test -n "$CP"; then
4449 { echo "$as_me:$LINENO: result: $CP" >&5
4450 echo "${ECHO_T}$CP" >&6; }
4452 { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4457 # Extract the first word of "sed", so it can be a program name with args.
4458 set dummy sed; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_path_SED+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4489 if test -n "$SED"; then
4490 { echo "$as_me:$LINENO: result: $SED" >&5
4491 echo "${ECHO_T}$SED" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4498 # Extract the first word of "echo", so it can be a program name with args.
4499 set dummy echo; ac_word=$2
4500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_ECHO+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4529 ECHO=$ac_cv_path_ECHO
4530 if test -n "$ECHO"; then
4531 { echo "$as_me:$LINENO: result: $ECHO" >&5
4532 echo "${ECHO_T}$ECHO" >&6; }
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4539 # Extract the first word of "cmp", so it can be a program name with args.
4540 set dummy cmp; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_path_CMP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4571 if test -n "$CMP"; then
4572 { echo "$as_me:$LINENO: result: $CMP" >&5
4573 echo "${ECHO_T}$CMP" >&6; }
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4580 # Extract the first word of "tbl", so it can be a program name with args.
4581 set dummy tbl; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_path_TBL+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4612 if test -n "$TBL"; then
4613 { echo "$as_me:$LINENO: result: $TBL" >&5
4614 echo "${ECHO_T}$TBL" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4621 # Extract the first word of "ar", so it can be a program name with args.
4622 set dummy ar; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_path_AR+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4653 if test -n "$AR"; then
4654 { echo "$as_me:$LINENO: result: $AR" >&5
4655 echo "${ECHO_T}$AR" >&6; }
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4662 # Extract the first word of "openssl", so it can be a program name with args.
4663 set dummy openssl; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_path_OPENSSL+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4693 OPENSSL=$ac_cv_path_OPENSSL
4694 if test -n "$OPENSSL"; then
4695 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4696 echo "${ECHO_T}$OPENSSL" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 # Extract the first word of "mtx", so it can be a program name with args.
4704 set dummy mtx; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_path_MTX+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4735 if test -n "$MTX"; then
4736 { echo "$as_me:$LINENO: result: $MTX" >&5
4737 echo "${ECHO_T}$MTX" >&6; }
4739 { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4744 # Extract the first word of "dd", so it can be a program name with args.
4745 set dummy dd; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_path_DD+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4776 if test -n "$DD"; then
4777 { echo "$as_me:$LINENO: result: $DD" >&5
4778 echo "${ECHO_T}$DD" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4785 # Extract the first word of "mkisofs", so it can be a program name with args.
4786 set dummy mkisofs; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_path_MKISOFS+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4816 MKISOFS=$ac_cv_path_MKISOFS
4817 if test -n "$MKISOFS"; then
4818 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4819 echo "${ECHO_T}$MKISOFS" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 # Extract the first word of "python", so it can be a program name with args.
4827 set dummy python; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_path_PYTHON+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4857 PYTHON=$ac_cv_path_PYTHON
4858 if test -n "$PYTHON"; then
4859 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4860 echo "${ECHO_T}$PYTHON" >&6; }
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4867 # Extract the first word of "growisofs", so it can be a program name with args.
4868 set dummy growisofs; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4898 GROWISOFS=$ac_cv_path_GROWISOFS
4899 if test -n "$GROWISOFS"; then
4900 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4901 echo "${ECHO_T}$GROWISOFS" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4908 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4909 set dummy dvd+rw-mediainfo; ac_word=$2
4910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 case $DVDRWMEDIAINFO in
4917 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4939 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4940 if test -n "$DVDRWMEDIAINFO"; then
4941 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4942 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4944 { echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6; }
4949 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4950 set dummy dvd+rw-format; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 case $DVDRWFORMAT in
4958 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4980 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4981 if test -n "$DVDRWFORMAT"; then
4982 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4983 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 # Extract the first word of "pkg-config", so it can be a program name with args.
4991 set dummy pkg-config; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5021 PKGCONFIG=$ac_cv_path_PKGCONFIG
5022 if test -n "$PKGCONFIG"; then
5023 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5024 echo "${ECHO_T}$PKGCONFIG" >&6; }
5026 { echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6; }
5032 if test "x$WXCONFIG" = x; then
5035 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5036 set dummy ${WXCONFIG}; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5066 WXCONFIG=$ac_cv_path_WXCONFIG
5067 if test -n "$WXCONFIG"; then
5068 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5069 echo "${ECHO_T}$WXCONFIG" >&6; }
5071 { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5077 # Extract the first word of "cdrecord", so it can be a program name with args.
5078 set dummy cdrecord; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_CDRECORD+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5108 CDRECORD=$ac_cv_path_CDRECORD
5109 if test -n "$CDRECORD"; then
5110 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5111 echo "${ECHO_T}$CDRECORD" >&6; }
5113 { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5118 # Extract the first word of "pidof", so it can be a program name with args.
5119 set dummy pidof; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_PIDOF+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5149 PIDOF=$ac_cv_path_PIDOF
5150 if test -n "$PIDOF"; then
5151 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5152 echo "${ECHO_T}$PIDOF" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 for ac_prog in gawk mawk nawk awk
5161 # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_AWK+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 if test -n "$AWK"; then
5169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_AWK="$ac_prog"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 if test -n "$AWK"; then
5190 { echo "$as_me:$LINENO: result: $AWK" >&5
5191 echo "${ECHO_T}$AWK" >&6; }
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5198 test -n "$AWK" && break
5201 # Some AWK programs fail, so test it and warn the user
5202 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5203 { if ((prog == $2) || (("(" prog ")") == $2) ||
5204 (("" prog "") == $2) ||
5205 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5207 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5208 The regex engine of $AWK is too broken to be used you
5209 might want to install GNU AWK.
5210 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5211 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5212 The regex engine of $AWK is too broken to be used you
5213 might want to install GNU AWK.
5214 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5215 { (exit 1); exit 1; }; }
5218 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5219 set dummy $THE_AWK; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_AWK+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5250 if test -n "$AWK"; then
5251 { echo "$as_me:$LINENO: result: $AWK" >&5
5252 echo "${ECHO_T}$AWK" >&6; }
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5260 test -n "$ARFLAG" || ARFLAGS="cr"
5271 # Make sure we can run config.sub.
5272 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5273 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5274 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5275 { (exit 1); exit 1; }; }
5277 { echo "$as_me:$LINENO: checking build system type" >&5
5278 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5279 if test "${ac_cv_build+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_build_alias=$build_alias
5283 test "x$ac_build_alias" = x &&
5284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5285 test "x$ac_build_alias" = x &&
5286 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5287 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5288 { (exit 1); exit 1; }; }
5289 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5290 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5291 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5292 { (exit 1); exit 1; }; }
5295 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5296 echo "${ECHO_T}$ac_cv_build" >&6; }
5297 case $ac_cv_build in
5299 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5300 echo "$as_me: error: invalid value of canonical build" >&2;}
5301 { (exit 1); exit 1; }; };;
5304 ac_save_IFS=$IFS; IFS='-'
5310 # Remember, the first character of IFS is used to create $*,
5311 # except with old shells:
5314 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5318 { echo "$as_me:$LINENO: checking host system type" >&5
5319 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5320 if test "${ac_cv_host+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test "x$host_alias" = x; then
5324 ac_cv_host=$ac_cv_build
5326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5327 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5328 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5329 { (exit 1); exit 1; }; }
5333 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5334 echo "${ECHO_T}$ac_cv_host" >&6; }
5337 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5338 echo "$as_me: error: invalid value of canonical host" >&2;}
5339 { (exit 1); exit 1; }; };;
5342 ac_save_IFS=$IFS; IFS='-'
5348 # Remember, the first character of IFS is used to create $*,
5349 # except with old shells:
5352 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5356 *cygwin* ) CYGWIN=yes;;
5360 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5366 HAVE_SUN_OS_FALSE='#'
5368 HAVE_SUN_OS_TRUE='#'
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_SUN_OS 1
5380 HAVE_SUN_OS_FALSE='#'
5382 HAVE_SUN_OS_TRUE='#'
5387 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5393 HAVE_OSF1_OS_FALSE='#'
5395 HAVE_OSF1_OS_TRUE='#'
5398 cat >>confdefs.h <<\_ACEOF
5399 #define HAVE_OSF1_OS 1
5407 HAVE_OSF1_OS_FALSE='#'
5409 HAVE_OSF1_OS_TRUE='#'
5414 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5420 HAVE_AIX_OS_FALSE='#'
5422 HAVE_AIX_OS_TRUE='#'
5425 cat >>confdefs.h <<\_ACEOF
5426 #define HAVE_AIX_OS 1
5434 HAVE_AIX_OS_FALSE='#'
5436 HAVE_AIX_OS_TRUE='#'
5441 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5447 HAVE_HPUX_OS_FALSE='#'
5449 HAVE_HPUX_OS_TRUE='#'
5452 cat >>confdefs.h <<\_ACEOF
5453 #define HAVE_HPUX_OS 1
5461 HAVE_HPUX_OS_FALSE='#'
5463 HAVE_HPUX_OS_TRUE='#'
5468 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5474 HAVE_LINUX_OS_FALSE='#'
5476 HAVE_LINUX_OS_TRUE='#'
5477 HAVE_LINUX_OS_FALSE=
5479 cat >>confdefs.h <<\_ACEOF
5480 #define HAVE_LINUX_OS 1
5488 HAVE_LINUX_OS_FALSE='#'
5490 HAVE_LINUX_OS_TRUE='#'
5491 HAVE_LINUX_OS_FALSE=
5495 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5500 HAVE_FREEBSD_OS_TRUE=
5501 HAVE_FREEBSD_OS_FALSE='#'
5503 HAVE_FREEBSD_OS_TRUE='#'
5504 HAVE_FREEBSD_OS_FALSE=
5506 cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_FREEBSD_OS 1
5514 HAVE_FREEBSD_OS_TRUE=
5515 HAVE_FREEBSD_OS_FALSE='#'
5517 HAVE_FREEBSD_OS_TRUE='#'
5518 HAVE_FREEBSD_OS_FALSE=
5522 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5527 HAVE_NETBSD_OS_TRUE=
5528 HAVE_NETBSD_OS_FALSE='#'
5530 HAVE_NETBSD_OS_TRUE='#'
5531 HAVE_NETBSD_OS_FALSE=
5533 cat >>confdefs.h <<\_ACEOF
5534 #define HAVE_NETBSD_OS 1
5541 HAVE_NETBSD_OS_TRUE=
5542 HAVE_NETBSD_OS_FALSE='#'
5544 HAVE_NETBSD_OS_TRUE='#'
5545 HAVE_NETBSD_OS_FALSE=
5549 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5554 HAVE_OPENBSD_OS_TRUE=
5555 HAVE_OPENBSD_OS_FALSE='#'
5557 HAVE_OPENBSD_OS_TRUE='#'
5558 HAVE_OPENBSD_OS_FALSE=
5560 cat >>confdefs.h <<\_ACEOF
5561 #define HAVE_OPENBSD_OS 1
5568 HAVE_OPENBSD_OS_TRUE=
5569 HAVE_OPENBSD_OS_FALSE='#'
5571 HAVE_OPENBSD_OS_TRUE='#'
5572 HAVE_OPENBSD_OS_FALSE=
5576 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5582 HAVE_BSDI_OS_FALSE='#'
5584 HAVE_BSDI_OS_TRUE='#'
5587 cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_BSDI_OS 1
5596 HAVE_BSDI_OS_FALSE='#'
5598 HAVE_BSDI_OS_TRUE='#'
5603 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5609 HAVE_SGI_OS_FALSE='#'
5611 HAVE_SGI_OS_TRUE='#'
5614 cat >>confdefs.h <<\_ACEOF
5615 #define HAVE_SGI_OS 1
5623 HAVE_SGI_OS_FALSE='#'
5625 HAVE_SGI_OS_TRUE='#'
5630 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5636 HAVE_IRIX_OS_FALSE='#'
5638 HAVE_IRIX_OS_TRUE='#'
5641 cat >>confdefs.h <<\_ACEOF
5642 #define HAVE_IRIX_OS 1
5650 HAVE_IRIX_OS_FALSE='#'
5652 HAVE_IRIX_OS_TRUE='#'
5657 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5662 HAVE_DARWIN_OS_TRUE=
5663 HAVE_DARWIN_OS_FALSE='#'
5665 HAVE_DARWIN_OS_TRUE='#'
5666 HAVE_DARWIN_OS_FALSE=
5668 cat >>confdefs.h <<\_ACEOF
5669 #define HAVE_DARWIN_OS 1
5676 HAVE_DARWIN_OS_TRUE=
5677 HAVE_DARWIN_OS_FALSE='#'
5679 HAVE_DARWIN_OS_TRUE='#'
5680 HAVE_DARWIN_OS_FALSE=
5685 # -----------------------------------------------------------
5686 # ----------------------------------------------------------
5687 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5688 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5689 if test "x$DISTNAME" != "x"
5691 echo "distname set to $DISTNAME"
5692 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5695 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5698 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5701 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5719 elif test -f /etc/SuSE-release
5722 elif test -d /etc/SuSEconfig
5725 elif test -f /etc/mandrake-release
5728 elif test -f /etc/whitebox-release
5731 elif test -f /etc/redhat-release
5734 elif test -f /etc/gentoo-release
5737 elif test -f /etc/debian_version
5740 elif test -f /etc/slackware-version
5743 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5746 elif test -f /etc/engarde-version
5749 elif test "$CYGWIN" = yes
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_CYGWIN 1
5759 { echo "$as_me:$LINENO: result: done" >&5
5760 echo "${ECHO_T}done" >&6; }
5763 # --------------------------------------------------
5764 # Suppport for gettext (translations)
5765 # By default, $datadir is ${prefix}/share
5766 # --------------------------------------------------
5767 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5769 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5770 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 cat >conftest.make <<\_ACEOF
5776 @echo '@@@%%%=$(MAKE)=@@@%%%'
5778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5781 eval ac_cv_prog_make_${ac_make}_set=yes;;
5783 eval ac_cv_prog_make_${ac_make}_set=no;;
5787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5788 { echo "$as_me:$LINENO: result: yes" >&5
5789 echo "${ECHO_T}yes" >&6; }
5792 { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5794 SET_MAKE="MAKE=${MAKE-make}"
5800 if test -n "$ac_aux_dir"; then
5801 case "$ac_aux_dir" in
5802 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5803 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5806 if test -z "$MKINSTALLDIRS"; then
5807 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5812 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5813 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5814 # Check whether --enable-nls was given.
5815 if test "${enable_nls+set}" = set; then
5816 enableval=$enable_nls; USE_NLS=$enableval
5821 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5822 echo "${ECHO_T}$USE_NLS" >&6; }
5829 # Prepare PATH_SEPARATOR.
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832 echo "#! /bin/sh" >conf$$.sh
5833 echo "exit 0" >>conf$$.sh
5835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5843 # Find out how to test for executable files. Don't use a zero-byte file,
5844 # as systems may use methods other than mode bits to determine executability.
5845 cat >conf$$.file <<_ASEOF
5849 chmod +x conf$$.file
5850 if test -x conf$$.file >/dev/null 2>&1; then
5851 ac_executable_p="test -x"
5853 ac_executable_p="test -f"
5857 # Extract the first word of "msgfmt", so it can be a program name with args.
5858 set dummy msgfmt; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_MSGFMT+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5869 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5870 for ac_dir in $PATH; do
5872 test -z "$ac_dir" && ac_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5875 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5876 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5877 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5878 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5885 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5889 MSGFMT="$ac_cv_path_MSGFMT"
5890 if test "$MSGFMT" != ":"; then
5891 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5892 echo "${ECHO_T}$MSGFMT" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5898 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5899 set dummy gmsgfmt; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5929 GMSGFMT=$ac_cv_path_GMSGFMT
5930 if test -n "$GMSGFMT"; then
5931 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5932 echo "${ECHO_T}$GMSGFMT" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963 ac_executable_p="test -x"
5965 ac_executable_p="test -f"
5969 # Extract the first word of "xgettext", so it can be a program name with args.
5970 set dummy xgettext; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH; do
5984 test -z "$ac_dir" && ac_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5988 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5989 (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
5990 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5997 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6001 XGETTEXT="$ac_cv_path_XGETTEXT"
6002 if test "$XGETTEXT" != ":"; then
6003 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6004 echo "${ECHO_T}$XGETTEXT" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6013 # Prepare PATH_SEPARATOR.
6014 # The user is always right.
6015 if test "${PATH_SEPARATOR+set}" != set; then
6016 echo "#! /bin/sh" >conf$$.sh
6017 echo "exit 0" >>conf$$.sh
6019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6027 # Find out how to test for executable files. Don't use a zero-byte file,
6028 # as systems may use methods other than mode bits to determine executability.
6029 cat >conf$$.file <<_ASEOF
6033 chmod +x conf$$.file
6034 if test -x conf$$.file >/dev/null 2>&1; then
6035 ac_executable_p="test -x"
6037 ac_executable_p="test -f"
6041 # Extract the first word of "msgmerge", so it can be a program name with args.
6042 set dummy msgmerge; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6053 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6054 for ac_dir in $PATH; do
6056 test -z "$ac_dir" && ac_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6059 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6060 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6061 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6068 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6072 MSGMERGE="$ac_cv_path_MSGMERGE"
6073 if test "$MSGMERGE" != ":"; then
6074 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6075 echo "${ECHO_T}$MSGMERGE" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6082 if test "$GMSGFMT" != ":"; then
6083 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6084 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6087 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6088 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6089 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6094 if test "$XGETTEXT" != ":"; then
6095 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6096 (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
6099 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6100 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6106 ac_config_commands="$ac_config_commands default-1"
6110 if test "X$prefix" = "XNONE"; then
6111 acl_final_prefix="$ac_default_prefix"
6113 acl_final_prefix="$prefix"
6115 if test "X$exec_prefix" = "XNONE"; then
6116 acl_final_exec_prefix='${prefix}'
6118 acl_final_exec_prefix="$exec_prefix"
6120 acl_save_prefix="$prefix"
6121 prefix="$acl_final_prefix"
6122 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6123 prefix="$acl_save_prefix"
6126 # Check whether --with-gnu-ld was given.
6127 if test "${with_gnu_ld+set}" = set; then
6128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6133 # Prepare PATH_SEPARATOR.
6134 # The user is always right.
6135 if test "${PATH_SEPARATOR+set}" != set; then
6136 echo "#! /bin/sh" >conf$$.sh
6137 echo "exit 0" >>conf$$.sh
6139 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6147 if test "$GCC" = yes; then
6148 # Check if gcc -print-prog-name=ld gives a path.
6149 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6150 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6153 # gcc leaves a trailing carriage return which upsets mingw
6154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6159 # Accept absolute paths.
6160 [\\/]* | [A-Za-z]:[\\/]*)
6161 re_direlt='/[^/][^/]*/\.\./'
6162 # Canonicalize the path of ld
6163 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6165 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6167 test -z "$LD" && LD="$ac_prog"
6170 # If it fails, then pretend we aren't using GCC.
6174 # If it is relative, then search for the first ld in PATH.
6178 elif test "$with_gnu_ld" = yes; then
6179 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6180 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6183 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6185 if test "${acl_cv_path_LD+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 if test -z "$LD"; then
6189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6190 for ac_dir in $PATH; do
6191 test -z "$ac_dir" && ac_dir=.
6192 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6193 acl_cv_path_LD="$ac_dir/$ac_prog"
6194 # Check to see if the program is GNU ld. I'd rather use --version,
6195 # but apparently some GNU ld's only accept -v.
6196 # Break only if it was the GNU/non-GNU ld that we prefer.
6197 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6198 *GNU* | *'with BFD'*)
6199 test "$with_gnu_ld" != no && break ;;
6201 test "$with_gnu_ld" != yes && break ;;
6207 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6211 LD="$acl_cv_path_LD"
6212 if test -n "$LD"; then
6213 { echo "$as_me:$LINENO: result: $LD" >&5
6214 echo "${ECHO_T}$LD" >&6; }
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6219 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6220 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6221 { (exit 1); exit 1; }; }
6222 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6223 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6224 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6228 case `$LD -v 2>&1 </dev/null` in
6229 *GNU* | *'with BFD'*)
6230 acl_cv_prog_gnu_ld=yes ;;
6232 acl_cv_prog_gnu_ld=no ;;
6235 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6236 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6237 with_gnu_ld=$acl_cv_prog_gnu_ld
6242 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6243 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6244 if test "${acl_cv_rpath+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6249 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6255 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6256 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6258 libext="$acl_cv_libext"
6259 shlibext="$acl_cv_shlibext"
6260 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6261 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6262 hardcode_direct="$acl_cv_hardcode_direct"
6263 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6264 # Check whether --enable-rpath was given.
6265 if test "${enable_rpath+set}" = set; then
6266 enableval=$enable_rpath; :
6280 acl_save_prefix="$prefix"
6281 prefix="$acl_final_prefix"
6282 acl_save_exec_prefix="$exec_prefix"
6283 exec_prefix="$acl_final_exec_prefix"
6285 eval additional_includedir=\"$includedir\"
6286 eval additional_libdir=\"$libdir\"
6288 exec_prefix="$acl_save_exec_prefix"
6289 prefix="$acl_save_prefix"
6292 # Check whether --with-libiconv-prefix was given.
6293 if test "${with_libiconv_prefix+set}" = set; then
6294 withval=$with_libiconv_prefix;
6295 if test "X$withval" = "Xno"; then
6298 if test "X$withval" = "X"; then
6300 acl_save_prefix="$prefix"
6301 prefix="$acl_final_prefix"
6302 acl_save_exec_prefix="$exec_prefix"
6303 exec_prefix="$acl_final_exec_prefix"
6305 eval additional_includedir=\"$includedir\"
6306 eval additional_libdir=\"$libdir\"
6308 exec_prefix="$acl_save_exec_prefix"
6309 prefix="$acl_save_prefix"
6312 additional_includedir="$withval/include"
6313 additional_libdir="$withval/lib"
6324 names_already_handled=
6325 names_next_round='iconv '
6326 while test -n "$names_next_round"; do
6327 names_this_round="$names_next_round"
6329 for name in $names_this_round; do
6331 for n in $names_already_handled; do
6332 if test "$n" = "$name"; then
6337 if test -z "$already_handled"; then
6338 names_already_handled="$names_already_handled $name"
6339 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6340 eval value=\"\$HAVE_LIB$uppername\"
6341 if test -n "$value"; then
6342 if test "$value" = yes; then
6343 eval value=\"\$LIB$uppername\"
6344 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6345 eval value=\"\$LTLIB$uppername\"
6346 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6355 if test $use_additional = yes; then
6356 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6357 found_dir="$additional_libdir"
6358 found_so="$additional_libdir/lib$name.$shlibext"
6359 if test -f "$additional_libdir/lib$name.la"; then
6360 found_la="$additional_libdir/lib$name.la"
6363 if test -f "$additional_libdir/lib$name.$libext"; then
6364 found_dir="$additional_libdir"
6365 found_a="$additional_libdir/lib$name.$libext"
6366 if test -f "$additional_libdir/lib$name.la"; then
6367 found_la="$additional_libdir/lib$name.la"
6372 if test "X$found_dir" = "X"; then
6373 for x in $LDFLAGS $LTLIBICONV; do
6375 acl_save_prefix="$prefix"
6376 prefix="$acl_final_prefix"
6377 acl_save_exec_prefix="$exec_prefix"
6378 exec_prefix="$acl_final_exec_prefix"
6380 exec_prefix="$acl_save_exec_prefix"
6381 prefix="$acl_save_prefix"
6385 dir=`echo "X$x" | sed -e 's/^X-L//'`
6386 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6388 found_so="$dir/lib$name.$shlibext"
6389 if test -f "$dir/lib$name.la"; then
6390 found_la="$dir/lib$name.la"
6393 if test -f "$dir/lib$name.$libext"; then
6395 found_a="$dir/lib$name.$libext"
6396 if test -f "$dir/lib$name.la"; then
6397 found_la="$dir/lib$name.la"
6403 if test "X$found_dir" != "X"; then
6408 if test "X$found_dir" != "X"; then
6409 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6410 if test "X$found_so" != "X"; then
6411 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6415 for x in $ltrpathdirs; do
6416 if test "X$x" = "X$found_dir"; then
6421 if test -z "$haveit"; then
6422 ltrpathdirs="$ltrpathdirs $found_dir"
6424 if test "$hardcode_direct" = yes; then
6425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6427 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6428 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6430 for x in $rpathdirs; do
6431 if test "X$x" = "X$found_dir"; then
6436 if test -z "$haveit"; then
6437 rpathdirs="$rpathdirs $found_dir"
6441 for x in $LDFLAGS $LIBICONV; do
6443 acl_save_prefix="$prefix"
6444 prefix="$acl_final_prefix"
6445 acl_save_exec_prefix="$exec_prefix"
6446 exec_prefix="$acl_final_exec_prefix"
6448 exec_prefix="$acl_save_exec_prefix"
6449 prefix="$acl_save_prefix"
6451 if test "X$x" = "X-L$found_dir"; then
6456 if test -z "$haveit"; then
6457 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6459 if test "$hardcode_minus_L" != no; then
6460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6462 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6468 if test "X$found_a" != "X"; then
6469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6471 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6474 additional_includedir=
6475 case "$found_dir" in
6477 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6478 additional_includedir="$basedir/include"
6481 if test "X$additional_includedir" != "X"; then
6482 if test "X$additional_includedir" != "X/usr/include"; then
6484 if test "X$additional_includedir" = "X/usr/local/include"; then
6485 if test -n "$GCC"; then
6487 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6491 if test -z "$haveit"; then
6492 for x in $CPPFLAGS $INCICONV; do
6494 acl_save_prefix="$prefix"
6495 prefix="$acl_final_prefix"
6496 acl_save_exec_prefix="$exec_prefix"
6497 exec_prefix="$acl_final_exec_prefix"
6499 exec_prefix="$acl_save_exec_prefix"
6500 prefix="$acl_save_prefix"
6502 if test "X$x" = "X-I$additional_includedir"; then
6507 if test -z "$haveit"; then
6508 if test -d "$additional_includedir"; then
6509 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6515 if test -n "$found_la"; then
6516 save_libdir="$libdir"
6518 */* | *\\*) . "$found_la" ;;
6519 *) . "./$found_la" ;;
6521 libdir="$save_libdir"
6522 for dep in $dependency_libs; do
6525 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6526 if test "X$additional_libdir" != "X/usr/lib"; then
6528 if test "X$additional_libdir" = "X/usr/local/lib"; then
6529 if test -n "$GCC"; then
6531 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6535 if test -z "$haveit"; then
6537 for x in $LDFLAGS $LIBICONV; do
6539 acl_save_prefix="$prefix"
6540 prefix="$acl_final_prefix"
6541 acl_save_exec_prefix="$exec_prefix"
6542 exec_prefix="$acl_final_exec_prefix"
6544 exec_prefix="$acl_save_exec_prefix"
6545 prefix="$acl_save_prefix"
6547 if test "X$x" = "X-L$additional_libdir"; then
6552 if test -z "$haveit"; then
6553 if test -d "$additional_libdir"; then
6554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6558 for x in $LDFLAGS $LTLIBICONV; do
6560 acl_save_prefix="$prefix"
6561 prefix="$acl_final_prefix"
6562 acl_save_exec_prefix="$exec_prefix"
6563 exec_prefix="$acl_final_exec_prefix"
6565 exec_prefix="$acl_save_exec_prefix"
6566 prefix="$acl_save_prefix"
6568 if test "X$x" = "X-L$additional_libdir"; then
6573 if test -z "$haveit"; then
6574 if test -d "$additional_libdir"; then
6575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6582 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6583 if test "$enable_rpath" != no; then
6585 for x in $rpathdirs; do
6586 if test "X$x" = "X$dir"; then
6591 if test -z "$haveit"; then
6592 rpathdirs="$rpathdirs $dir"
6595 for x in $ltrpathdirs; do
6596 if test "X$x" = "X$dir"; then
6601 if test -z "$haveit"; then
6602 ltrpathdirs="$ltrpathdirs $dir"
6607 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6613 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6620 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6627 if test "X$rpathdirs" != "X"; then
6628 if test -n "$hardcode_libdir_separator"; then
6630 for found_dir in $rpathdirs; do
6631 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6633 acl_save_libdir="$libdir"
6635 eval flag=\"$hardcode_libdir_flag_spec\"
6636 libdir="$acl_save_libdir"
6637 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6639 for found_dir in $rpathdirs; do
6640 acl_save_libdir="$libdir"
6642 eval flag=\"$hardcode_libdir_flag_spec\"
6643 libdir="$acl_save_libdir"
6644 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6648 if test "X$ltrpathdirs" != "X"; then
6649 for found_dir in $ltrpathdirs; do
6650 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6671 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6672 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6673 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 gt_save_CPPFLAGS="$CPPFLAGS"
6677 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6678 gt_save_LIBS="$LIBS"
6679 LIBS="$LIBS -framework CoreFoundation"
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <CFPreferences.h>
6690 CFPreferencesCopyAppValue(NULL, NULL)
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (ac_try="$ac_link"
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_link") 2>conftest.er1
6704 grep -v '^ *+' conftest.er1 >conftest.err
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6710 { (case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_try") 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest$ac_exeext'
6720 { (case "(($ac_try" in
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_try") 2>&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 gt_cv_func_CFPreferencesCopyAppValue=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 gt_cv_func_CFPreferencesCopyAppValue=no
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 CPPFLAGS="$gt_save_CPPFLAGS"
6740 LIBS="$gt_save_LIBS"
6742 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6743 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6744 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6751 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6752 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6753 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 gt_save_CPPFLAGS="$CPPFLAGS"
6757 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6758 gt_save_LIBS="$LIBS"
6759 LIBS="$LIBS -framework CoreFoundation"
6760 cat >conftest.$ac_ext <<_ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <CFLocale.h>
6770 CFLocaleCopyCurrent();
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_link") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6790 { (case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_try") 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_try") 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 gt_cv_func_CFLocaleCopyCurrent=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 gt_cv_func_CFLocaleCopyCurrent=no
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 CPPFLAGS="$gt_save_CPPFLAGS"
6820 LIBS="$gt_save_LIBS"
6822 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6823 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6824 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_CFLOCALECOPYCURRENT 1
6832 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6833 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6839 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6840 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6841 # Check whether --enable-nls was given.
6842 if test "${enable_nls+set}" = set; then
6843 enableval=$enable_nls; USE_NLS=$enableval
6848 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6849 echo "${ECHO_T}$USE_NLS" >&6; }
6858 if test "$USE_NLS" = "yes"; then
6859 gt_use_preinstalled_gnugettext=no
6866 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6867 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6868 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 #include <libintl.h>
6878 extern int _nl_msg_cat_cntr;
6879 extern int *_nl_domain_bindings;
6883 bindtextdomain ("", "");
6884 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (ac_try="$ac_link"
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_link") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6904 { (case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_try") 2>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_try") 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 gt_cv_func_gnugettext1_libc=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 gt_cv_func_gnugettext1_libc=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6934 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6935 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6937 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6943 am_save_CPPFLAGS="$CPPFLAGS"
6945 for element in $INCICONV; do
6947 for x in $CPPFLAGS; do
6949 acl_save_prefix="$prefix"
6950 prefix="$acl_final_prefix"
6951 acl_save_exec_prefix="$exec_prefix"
6952 exec_prefix="$acl_final_exec_prefix"
6954 exec_prefix="$acl_save_exec_prefix"
6955 prefix="$acl_save_prefix"
6957 if test "X$x" = "X$element"; then
6962 if test -z "$haveit"; then
6963 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6968 { echo "$as_me:$LINENO: checking for iconv" >&5
6969 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6970 if test "${am_cv_func_iconv+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 am_cv_func_iconv="no, consider installing GNU libiconv"
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6987 iconv_t cd = iconv_open("","");
6988 iconv(cd,NULL,NULL,NULL,NULL);
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7009 { (case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_try") 2>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 (eval "$ac_try") 2>&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 am_cv_func_iconv=yes
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7036 rm -f core conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 if test "$am_cv_func_iconv" != yes; then
7039 am_save_LIBS="$LIBS"
7040 LIBS="$LIBS $LIBICONV"
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7052 iconv_t cd = iconv_open("","");
7053 iconv(cd,NULL,NULL,NULL,NULL);
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (ac_try="$ac_link"
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_link") 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7074 { (case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_try") 2>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_try") 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7094 am_cv_func_iconv=yes
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 LIBS="$am_save_LIBS"
7108 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7109 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7110 if test "$am_cv_func_iconv" = yes; then
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_ICONV 1
7117 if test "$am_cv_lib_iconv" = yes; then
7118 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7119 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7120 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7121 echo "${ECHO_T}$LIBICONV" >&6; }
7123 CPPFLAGS="$am_save_CPPFLAGS"
7135 acl_save_prefix="$prefix"
7136 prefix="$acl_final_prefix"
7137 acl_save_exec_prefix="$exec_prefix"
7138 exec_prefix="$acl_final_exec_prefix"
7140 eval additional_includedir=\"$includedir\"
7141 eval additional_libdir=\"$libdir\"
7143 exec_prefix="$acl_save_exec_prefix"
7144 prefix="$acl_save_prefix"
7147 # Check whether --with-libintl-prefix was given.
7148 if test "${with_libintl_prefix+set}" = set; then
7149 withval=$with_libintl_prefix;
7150 if test "X$withval" = "Xno"; then
7153 if test "X$withval" = "X"; then
7155 acl_save_prefix="$prefix"
7156 prefix="$acl_final_prefix"
7157 acl_save_exec_prefix="$exec_prefix"
7158 exec_prefix="$acl_final_exec_prefix"
7160 eval additional_includedir=\"$includedir\"
7161 eval additional_libdir=\"$libdir\"
7163 exec_prefix="$acl_save_exec_prefix"
7164 prefix="$acl_save_prefix"
7167 additional_includedir="$withval/include"
7168 additional_libdir="$withval/lib"
7179 names_already_handled=
7180 names_next_round='intl '
7181 while test -n "$names_next_round"; do
7182 names_this_round="$names_next_round"
7184 for name in $names_this_round; do
7186 for n in $names_already_handled; do
7187 if test "$n" = "$name"; then
7192 if test -z "$already_handled"; then
7193 names_already_handled="$names_already_handled $name"
7194 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7195 eval value=\"\$HAVE_LIB$uppername\"
7196 if test -n "$value"; then
7197 if test "$value" = yes; then
7198 eval value=\"\$LIB$uppername\"
7199 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7200 eval value=\"\$LTLIB$uppername\"
7201 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7210 if test $use_additional = yes; then
7211 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7212 found_dir="$additional_libdir"
7213 found_so="$additional_libdir/lib$name.$shlibext"
7214 if test -f "$additional_libdir/lib$name.la"; then
7215 found_la="$additional_libdir/lib$name.la"
7218 if test -f "$additional_libdir/lib$name.$libext"; then
7219 found_dir="$additional_libdir"
7220 found_a="$additional_libdir/lib$name.$libext"
7221 if test -f "$additional_libdir/lib$name.la"; then
7222 found_la="$additional_libdir/lib$name.la"
7227 if test "X$found_dir" = "X"; then
7228 for x in $LDFLAGS $LTLIBINTL; do
7230 acl_save_prefix="$prefix"
7231 prefix="$acl_final_prefix"
7232 acl_save_exec_prefix="$exec_prefix"
7233 exec_prefix="$acl_final_exec_prefix"
7235 exec_prefix="$acl_save_exec_prefix"
7236 prefix="$acl_save_prefix"
7240 dir=`echo "X$x" | sed -e 's/^X-L//'`
7241 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7243 found_so="$dir/lib$name.$shlibext"
7244 if test -f "$dir/lib$name.la"; then
7245 found_la="$dir/lib$name.la"
7248 if test -f "$dir/lib$name.$libext"; then
7250 found_a="$dir/lib$name.$libext"
7251 if test -f "$dir/lib$name.la"; then
7252 found_la="$dir/lib$name.la"
7258 if test "X$found_dir" != "X"; then
7263 if test "X$found_dir" != "X"; then
7264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7265 if test "X$found_so" != "X"; then
7266 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7267 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7270 for x in $ltrpathdirs; do
7271 if test "X$x" = "X$found_dir"; then
7276 if test -z "$haveit"; then
7277 ltrpathdirs="$ltrpathdirs $found_dir"
7279 if test "$hardcode_direct" = yes; then
7280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7282 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7285 for x in $rpathdirs; do
7286 if test "X$x" = "X$found_dir"; then
7291 if test -z "$haveit"; then
7292 rpathdirs="$rpathdirs $found_dir"
7296 for x in $LDFLAGS $LIBINTL; do
7298 acl_save_prefix="$prefix"
7299 prefix="$acl_final_prefix"
7300 acl_save_exec_prefix="$exec_prefix"
7301 exec_prefix="$acl_final_exec_prefix"
7303 exec_prefix="$acl_save_exec_prefix"
7304 prefix="$acl_save_prefix"
7306 if test "X$x" = "X-L$found_dir"; then
7311 if test -z "$haveit"; then
7312 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7314 if test "$hardcode_minus_L" != no; then
7315 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7317 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7323 if test "X$found_a" != "X"; then
7324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7329 additional_includedir=
7330 case "$found_dir" in
7332 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7333 additional_includedir="$basedir/include"
7336 if test "X$additional_includedir" != "X"; then
7337 if test "X$additional_includedir" != "X/usr/include"; then
7339 if test "X$additional_includedir" = "X/usr/local/include"; then
7340 if test -n "$GCC"; then
7342 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7346 if test -z "$haveit"; then
7347 for x in $CPPFLAGS $INCINTL; do
7349 acl_save_prefix="$prefix"
7350 prefix="$acl_final_prefix"
7351 acl_save_exec_prefix="$exec_prefix"
7352 exec_prefix="$acl_final_exec_prefix"
7354 exec_prefix="$acl_save_exec_prefix"
7355 prefix="$acl_save_prefix"
7357 if test "X$x" = "X-I$additional_includedir"; then
7362 if test -z "$haveit"; then
7363 if test -d "$additional_includedir"; then
7364 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7370 if test -n "$found_la"; then
7371 save_libdir="$libdir"
7373 */* | *\\*) . "$found_la" ;;
7374 *) . "./$found_la" ;;
7376 libdir="$save_libdir"
7377 for dep in $dependency_libs; do
7380 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7381 if test "X$additional_libdir" != "X/usr/lib"; then
7383 if test "X$additional_libdir" = "X/usr/local/lib"; then
7384 if test -n "$GCC"; then
7386 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7390 if test -z "$haveit"; then
7392 for x in $LDFLAGS $LIBINTL; do
7394 acl_save_prefix="$prefix"
7395 prefix="$acl_final_prefix"
7396 acl_save_exec_prefix="$exec_prefix"
7397 exec_prefix="$acl_final_exec_prefix"
7399 exec_prefix="$acl_save_exec_prefix"
7400 prefix="$acl_save_prefix"
7402 if test "X$x" = "X-L$additional_libdir"; then
7407 if test -z "$haveit"; then
7408 if test -d "$additional_libdir"; then
7409 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7413 for x in $LDFLAGS $LTLIBINTL; do
7415 acl_save_prefix="$prefix"
7416 prefix="$acl_final_prefix"
7417 acl_save_exec_prefix="$exec_prefix"
7418 exec_prefix="$acl_final_exec_prefix"
7420 exec_prefix="$acl_save_exec_prefix"
7421 prefix="$acl_save_prefix"
7423 if test "X$x" = "X-L$additional_libdir"; then
7428 if test -z "$haveit"; then
7429 if test -d "$additional_libdir"; then
7430 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7437 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7438 if test "$enable_rpath" != no; then
7440 for x in $rpathdirs; do
7441 if test "X$x" = "X$dir"; then
7446 if test -z "$haveit"; then
7447 rpathdirs="$rpathdirs $dir"
7450 for x in $ltrpathdirs; do
7451 if test "X$x" = "X$dir"; then
7456 if test -z "$haveit"; then
7457 ltrpathdirs="$ltrpathdirs $dir"
7462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7465 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7468 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7475 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7482 if test "X$rpathdirs" != "X"; then
7483 if test -n "$hardcode_libdir_separator"; then
7485 for found_dir in $rpathdirs; do
7486 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7488 acl_save_libdir="$libdir"
7490 eval flag=\"$hardcode_libdir_flag_spec\"
7491 libdir="$acl_save_libdir"
7492 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7494 for found_dir in $rpathdirs; do
7495 acl_save_libdir="$libdir"
7497 eval flag=\"$hardcode_libdir_flag_spec\"
7498 libdir="$acl_save_libdir"
7499 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7503 if test "X$ltrpathdirs" != "X"; then
7504 for found_dir in $ltrpathdirs; do
7505 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7509 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7510 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7511 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 gt_save_CPPFLAGS="$CPPFLAGS"
7515 CPPFLAGS="$CPPFLAGS $INCINTL"
7516 gt_save_LIBS="$LIBS"
7517 LIBS="$LIBS $LIBINTL"
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <libintl.h>
7525 extern int _nl_msg_cat_cntr;
7530 const char *_nl_expand_alias (const char *);
7534 bindtextdomain ("", "");
7535 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (ac_try="$ac_link"
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_link") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7555 { (case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_try") 2>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest$ac_exeext'
7565 { (case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_try") 2>&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 gt_cv_func_gnugettext1_libintl=yes
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 gt_cv_func_gnugettext1_libintl=no
7582 rm -f core conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7585 LIBS="$LIBS $LIBICONV"
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <libintl.h>
7593 extern int _nl_msg_cat_cntr;
7598 const char *_nl_expand_alias (const char *);
7602 bindtextdomain ("", "");
7603 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (ac_try="$ac_link"
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_link") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7623 { (case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_try") 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_try") 2>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 LIBINTL="$LIBINTL $LIBICONV"
7643 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7644 gt_cv_func_gnugettext1_libintl=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7653 rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7656 CPPFLAGS="$gt_save_CPPFLAGS"
7657 LIBS="$gt_save_LIBS"
7659 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7660 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7663 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7664 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7665 && test "$PACKAGE" != gettext-runtime \
7666 && test "$PACKAGE" != gettext-tools; }; then
7667 gt_use_preinstalled_gnugettext=yes
7676 if test -n "$INTL_MACOSX_LIBS"; then
7677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7679 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7680 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7684 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7685 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7687 cat >>confdefs.h <<\_ACEOF
7688 #define ENABLE_NLS 1
7696 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7697 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7698 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7699 echo "${ECHO_T}$USE_NLS" >&6; }
7700 if test "$USE_NLS" = "yes"; then
7701 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7702 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7703 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7704 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7705 gt_source="external libintl"
7710 gt_source="included intl directory"
7712 { echo "$as_me:$LINENO: result: $gt_source" >&5
7713 echo "${ECHO_T}$gt_source" >&6; }
7716 if test "$USE_NLS" = "yes"; then
7718 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7719 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7720 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7721 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7722 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7723 echo "${ECHO_T}$LIBINTL" >&6; }
7725 for element in $INCINTL; do
7727 for x in $CPPFLAGS; do
7729 acl_save_prefix="$prefix"
7730 prefix="$acl_final_prefix"
7731 acl_save_exec_prefix="$exec_prefix"
7732 exec_prefix="$acl_final_exec_prefix"
7734 exec_prefix="$acl_save_exec_prefix"
7735 prefix="$acl_save_prefix"
7737 if test "X$x" = "X$element"; then
7742 if test -z "$haveit"; then
7743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7750 cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_GETTEXT 1
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_DCGETTEXT 1
7773 if test x${prefix} = xNONE ; then
7774 if test `eval echo ${datadir}` = NONE/share ; then
7779 # ------------------------------------------------------------------
7780 # If the user has not set --prefix, we set our default to nothing.
7781 # In this case, if the user has not set --sysconfdir, we set it
7782 # to the package default of /etc/bacula. If either --prefix or
7783 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7784 # ------------------------------------------------------------------
7785 if test x${prefix} = xNONE ; then
7786 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7787 sysconfdir=/etc/bacula
7791 sysconfdir=`eval echo ${sysconfdir}`
7792 datadir=`eval echo ${datadir}`
7793 localedir=`eval echo ${datadir}/locale`
7794 cat >>confdefs.h <<_ACEOF
7795 #define LOCALEDIR "$localedir"
7798 cat >>confdefs.h <<_ACEOF
7799 #define SYSCONFDIR "$sysconfdir"
7803 # -------------------------------------------------------------------------
7804 # If the user has not set --exec-prefix, we default to ${prefix}
7805 # -------------------------------------------------------------------------
7806 if test x${exec_prefix} = xNONE ; then
7807 exec_prefix=${prefix}
7810 # ------------------------------------------------------------------
7811 # If the user has not set --sbindir, we set our default as /sbin
7812 # ------------------------------------------------------------------
7813 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7814 sbindir=${exec_prefix}/sbin
7816 sbindir=`eval echo ${sbindir}`
7818 # -------------------------------------------------------------------------
7819 # If the user has not set --mandir, we default to /usr/share/man
7820 # -------------------------------------------------------------------------
7821 if test x$mandir = x'${prefix}/man' ; then
7822 mandir=/usr/share/man
7826 # ------------------------------------------------------------------
7827 # All list of languages for which a translation exist. Each
7828 # language is separated by a space.
7829 # ------------------------------------------------------------------
7832 for ac_prog in msgfmt
7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
7835 set dummy $ac_prog; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_MSGFMT+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 MSGFMT=$ac_cv_path_MSGFMT
7865 if test -n "$MSGFMT"; then
7866 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7867 echo "${ECHO_T}$MSGFMT" >&6; }
7869 { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7874 test -n "$MSGFMT" && break
7876 test -n "$MSGFMT" || MSGFMT="no"
7878 if test "$MSGFMT" = "no"
7880 echo 'msgfmt program not found, disabling NLS !'
7882 USE_INCLUDED_LIBINTL=no
7885 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7886 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7887 if test "${ac_cv_gnu_library_2+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 #include <features.h>
7898 #ifdef __GNU_LIBRARY__
7899 #if (__GLIBC__ >= 2)
7905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7907 ac_cv_gnu_library_2=yes
7909 ac_cv_gnu_library_2=no
7916 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7917 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7919 GLIBC2="$ac_cv_gnu_library_2"
7923 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7924 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7925 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_check_lib_save_LIBS=$LIBS
7929 LIBS="-lcposix $LIBS"
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7937 /* Override any GCC internal prototype to avoid an error.
7938 Use char because int might match the return type of a GCC
7939 builtin and then its argument prototype would still apply. */
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_link") 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 ac_cv_lib_cposix_strerror=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ac_cv_lib_cposix_strerror=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7999 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8000 if test $ac_cv_lib_cposix_strerror = yes; then
8001 LIBS="$LIBS -lcposix"
8006 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8008 if test "${ac_cv_header_stdc+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest.$ac_objext'
8055 { (case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_try") 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_cv_header_stdc=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_header_stdc=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 if test $ac_cv_header_stdc = yes; then
8075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8086 $EGREP "memchr" >/dev/null 2>&1; then
8089 ac_cv_header_stdc=no
8095 if test $ac_cv_header_stdc = yes; then
8096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107 $EGREP "free" >/dev/null 2>&1; then
8110 ac_cv_header_stdc=no
8116 if test $ac_cv_header_stdc = yes; then
8117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8118 if test "$cross_compiling" = yes; then
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8129 #if ((' ' & 0x0FF) == 0x020)
8130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8133 # define ISLOWER(c) \
8134 (('a' <= (c) && (c) <= 'i') \
8135 || ('j' <= (c) && (c) <= 'r') \
8136 || ('s' <= (c) && (c) <= 'z'))
8137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 for (i = 0; i < 256; i++)
8146 if (XOR (islower (i), ISLOWER (i))
8147 || toupper (i) != TOUPPER (i))
8152 rm -f conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8174 echo "$as_me: program exited with status $ac_status" >&5
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_cv_header_stdc=no
8181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8187 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8188 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8189 if test $ac_cv_header_stdc = yes; then
8191 cat >>confdefs.h <<\_ACEOF
8192 #define STDC_HEADERS 1
8197 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8199 if test "${ac_cv_c_const+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8212 /* FIXME: Include the comments suggested by Paul. */
8214 /* Ultrix mips cc rejects this. */
8215 typedef int charset[2];
8217 /* SunOS 4.1.1 cc rejects this. */
8218 char const *const *ccp;
8220 /* NEC SVR4.0.2 mips cc rejects this. */
8221 struct point {int x, y;};
8222 static struct point const zero = {0,0};
8223 /* AIX XL C 1.02.0.0 rejects this.
8224 It does not let you subtract one const X* pointer from another in
8225 an arm of an if-expression whose if-part is not a constant
8227 const char *g = "string";
8228 ccp = &g + (g ? g-g : 0);
8229 /* HPUX 7.0 cc rejects these. */
8232 ccp = (char const *const *) p;
8233 { /* SCO 3.2v4 cc rejects this. */
8235 char const *s = 0 ? (char *) 0 : (char const *) 0;
8240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8242 const int *foo = &x[0];
8245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8246 typedef const int *iptr;
8250 { /* AIX XL C 1.02.0.0 rejects this saying
8251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8252 struct s { int j; const int *ap[3]; };
8253 struct s *b; b->j = 5;
8255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8259 return !x[0] && !zero.x;
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8311 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8312 if test $ac_cv_c_const = no; then
8314 cat >>confdefs.h <<\_ACEOF
8321 { echo "$as_me:$LINENO: checking for signed" >&5
8322 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8323 if test "${bh_cv_c_signed+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8386 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8387 if test $bh_cv_c_signed = no; then
8389 cat >>confdefs.h <<\_ACEOF
8395 { echo "$as_me:$LINENO: checking for inline" >&5
8396 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8397 if test "${ac_cv_c_inline+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 for ac_kw in inline __inline__ __inline; do
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8410 static $ac_kw foo_t static_foo () {return 0; }
8411 $ac_kw foo_t foo () {return 0; }
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8424 grep -v '^ *+' conftest.er1 >conftest.err
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430 { (case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_try") 2>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_c_inline=$ac_kw
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 test "$ac_cv_c_inline" != no && break
8462 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8463 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8466 case $ac_cv_c_inline in
8469 case $ac_cv_c_inline in
8471 *) ac_val=$ac_cv_c_inline;;
8473 cat >>confdefs.h <<_ACEOF
8475 #define inline $ac_val
8481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8492 inttypes.h stdint.h unistd.h
8494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8508 #include <$ac_header>
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest.$ac_objext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 eval "$as_ac_Header=yes"
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 eval "$as_ac_Header=no"
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555 { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 { echo "$as_me:$LINENO: checking for off_t" >&5
8568 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8569 if test "${ac_cv_type_off_t+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 $ac_includes_default
8579 typedef off_t ac__type_new_;
8583 if ((ac__type_new_ *) 0)
8585 if (sizeof (ac__type_new_))
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_try") 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_type_off_t=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8636 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8637 if test $ac_cv_type_off_t = yes; then
8641 cat >>confdefs.h <<_ACEOF
8642 #define off_t long int
8647 { echo "$as_me:$LINENO: checking for size_t" >&5
8648 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8649 if test "${ac_cv_type_size_t+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 typedef size_t ac__type_new_;
8663 if ((ac__type_new_ *) 0)
8665 if (sizeof (ac__type_new_))
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_type_size_t=yes
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 ac_cv_type_size_t=no
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8716 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8717 if test $ac_cv_type_size_t = yes; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define size_t unsigned int
8728 { echo "$as_me:$LINENO: checking for long long" >&5
8729 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_long_long+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 long long ll = 1LL; int i = 63;
8743 long long llmax = (long long) -1;
8744 return ll << i | ll >> i | llmax / ll | llmax % ll;
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8764 { (case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_try") 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_cv_type_long_long=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_cv_type_long_long=no
8791 rm -f core conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8795 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8796 if test $ac_cv_type_long_long = yes; then
8798 cat >>confdefs.h <<\_ACEOF
8799 #define HAVE_LONG_LONG 1
8805 { echo "$as_me:$LINENO: checking for long double" >&5
8806 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8807 if test "${gt_cv_c_long_double+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 if test "$GCC" = yes; then
8811 gt_cv_c_long_double=yes
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8821 long double foo = 0.0;
8822 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8823 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8833 rm -f conftest.$ac_objext
8834 if { (ac_try="$ac_compile"
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_compile") 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8848 { (case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_try") 2>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try='test -s conftest.$ac_objext'
8858 { (case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_try") 2>&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 gt_cv_c_long_double=yes
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 gt_cv_c_long_double=no
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8879 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8880 if test $gt_cv_c_long_double = yes; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_LONG_DOUBLE 1
8889 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8890 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8891 if test "${gt_cv_c_wchar_t+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 wchar_t foo = (wchar_t)'\0';
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^ *+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_try") 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8955 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8956 if test $gt_cv_c_wchar_t = yes; then
8958 cat >>confdefs.h <<\_ACEOF
8959 #define HAVE_WCHAR_T 1
8965 { echo "$as_me:$LINENO: checking for wint_t" >&5
8966 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8967 if test "${gt_cv_c_wint_t+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 cat >conftest.$ac_ext <<_ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8977 wint_t foo = (wchar_t)'\0';
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_compile") 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9001 { (case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_try") 2>&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest.$ac_objext'
9011 { (case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_try") 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9031 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9032 if test $gt_cv_c_wint_t = yes; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_WINT_T 1
9041 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9042 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9043 if test "${gl_cv_header_inttypes_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #include <inttypes.h>
9057 uintmax_t i = (uintmax_t) -1;
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077 { (case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_try") 2>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 gl_cv_header_inttypes_h=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 gl_cv_header_inttypes_h=no
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9107 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9108 if test $gl_cv_header_inttypes_h = yes; then
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9117 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9118 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9119 if test "${gl_cv_header_stdint_h+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9133 uintmax_t i = (uintmax_t) -1;
9138 rm -f conftest.$ac_objext
9139 if { (ac_try="$ac_compile"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_compile") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest.$ac_objext'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 gl_cv_header_stdint_h=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 gl_cv_header_stdint_h=no
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9183 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9184 if test $gl_cv_header_stdint_h = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_STDINT_H_WITH_UINTMAX 1
9195 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9196 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9197 if test "${gt_cv_c_intmax_t+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9209 #if HAVE_STDINT_H_WITH_UINTMAX
9212 #if HAVE_INTTYPES_H_WITH_UINTMAX
9213 #include <inttypes.h>
9224 rm -f conftest.$ac_objext
9225 if { (ac_try="$ac_compile"
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9239 { (case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_try") 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_try") 2>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 gt_cv_c_intmax_t=yes
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9269 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9270 if test $gt_cv_c_intmax_t = yes; then
9272 cat >>confdefs.h <<\_ACEOF
9273 #define HAVE_INTMAX_T 1
9280 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9281 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9282 if test "${gt_cv_func_printf_posix+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 if test "$cross_compiling" = yes; then
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9295 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9301 $EGREP "notposix" >/dev/null 2>&1; then
9302 gt_cv_func_printf_posix="guessing no"
9304 gt_cv_func_printf_posix="guessing yes"
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9319 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9320 dollar expansion (possibly an autoconf bug). */
9321 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9322 static char buf[100];
9325 sprintf (buf, format, 33, 55);
9326 return (strcmp (buf, "55 33") != 0);
9329 rm -f conftest$ac_exeext
9330 if { (ac_try="$ac_link"
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_link") 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9340 { (case "(($ac_try" in
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_try") 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 gt_cv_func_printf_posix=yes
9351 echo "$as_me: program exited with status $ac_status" >&5
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9356 gt_cv_func_printf_posix=no
9358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9364 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9365 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9366 case $gt_cv_func_printf_posix in
9369 cat >>confdefs.h <<\_ACEOF
9370 #define HAVE_POSIX_PRINTF 1
9376 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9377 # for constant arguments. Useless!
9378 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9379 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9380 if test "${ac_cv_working_alloca_h+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 cat >conftest.$ac_ext <<_ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9393 char *p = (char *) alloca (2 * sizeof (int));
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_link") 2>conftest.er1
9408 grep -v '^ *+' conftest.er1 >conftest.err
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_try") 2>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_working_alloca_h=yes
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_working_alloca_h=no
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9444 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9445 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9446 if test $ac_cv_working_alloca_h = yes; then
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_ALLOCA_H 1
9454 { echo "$as_me:$LINENO: checking for alloca" >&5
9455 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_alloca_works+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9466 # define alloca __builtin_alloca
9469 # include <malloc.h>
9470 # define alloca _alloca
9473 # include <alloca.h>
9478 # ifndef alloca /* predefined by HP cc +Olibcalls */
9489 char *p = (char *) alloca (1);
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_func_alloca_works=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_func_alloca_works=no
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9540 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9541 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9543 if test $ac_cv_func_alloca_works = yes; then
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_ALLOCA 1
9550 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9551 # that cause trouble. Some versions do not even contain alloca or
9552 # contain a buggy version. If you still want to use their alloca,
9553 # use ar to extract alloca.o from them instead of compiling alloca.c.
9555 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9557 cat >>confdefs.h <<\_ACEOF
9562 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9563 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9564 if test "${ac_cv_os_cray+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #if defined CRAY && ! defined CRAY2
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581 $EGREP "webecray" >/dev/null 2>&1; then
9589 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9590 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9591 if test $ac_cv_os_cray = yes; then
9592 for ac_func in _getb67 GETB67 getb67; do
9593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define $ac_func innocuous_$ac_func
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char $ac_func (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9629 /* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632 #if defined __stub_$ac_func || defined __stub___$ac_func
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 eval "$as_ac_var=yes"
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 eval "$as_ac_var=no"
9686 rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9689 ac_res=`eval echo '${'$as_ac_var'}'`
9690 { echo "$as_me:$LINENO: result: $ac_res" >&5
9691 echo "${ECHO_T}$ac_res" >&6; }
9692 if test `eval echo '${'$as_ac_var'}'` = yes; then
9694 cat >>confdefs.h <<_ACEOF
9695 #define CRAY_STACKSEG_END $ac_func
9704 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9705 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9706 if test "${ac_cv_c_stack_direction+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 if test "$cross_compiling" = yes; then
9710 ac_cv_c_stack_direction=0
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9720 find_stack_direction ()
9722 static char *addr = 0;
9727 return find_stack_direction ();
9730 return (&dummy > addr) ? 1 : -1;
9736 return find_stack_direction () < 0;
9739 rm -f conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_link") 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_c_stack_direction=1
9761 echo "$as_me: program exited with status $ac_status" >&5
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_c_stack_direction=-1
9768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9773 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9774 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9776 cat >>confdefs.h <<_ACEOF
9777 #define STACK_DIRECTION $ac_cv_c_stack_direction
9785 for ac_header in stdlib.h unistd.h
9787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_res=`eval echo '${'$as_ac_Header'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9798 # Is the header compilable?
9799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 $ac_includes_default
9808 #include <$ac_header>
9810 rm -f conftest.$ac_objext
9811 if { (ac_try="$ac_compile"
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_compile") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9825 { (case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_try") 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_header_compiler=yes
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_header_compiler=no
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854 echo "${ECHO_T}$ac_header_compiler" >&6; }
9856 # Is the header present?
9857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9859 cat >conftest.$ac_ext <<_ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 #include <$ac_header>
9867 if { (ac_try="$ac_cpp conftest.$ac_ext"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } >/dev/null; then
9880 if test -s conftest.err; then
9881 ac_cpp_err=$ac_c_preproc_warn_flag
9882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9889 if test -z "$ac_cpp_err"; then
9890 ac_header_preproc=yes
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_header_preproc=no
9898 rm -f conftest.err conftest.$ac_ext
9899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9900 echo "${ECHO_T}$ac_header_preproc" >&6; }
9902 # So? What about this header?
9903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9909 ac_header_preproc=yes
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 eval "$as_ac_Header=\$ac_header_preproc"
9934 ac_res=`eval echo '${'$as_ac_Header'}'`
9935 { echo "$as_me:$LINENO: result: $ac_res" >&5
9936 echo "${ECHO_T}$ac_res" >&6; }
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9949 for ac_func in getpagesize
9951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define $ac_func innocuous_$ac_func
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9973 # include <limits.h>
9975 # include <assert.h>
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_$ac_func || defined __stub___$ac_func
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017 { (case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_try") 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 eval "$as_ac_var=yes"
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 eval "$as_ac_var=no"
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10047 ac_res=`eval echo '${'$as_ac_var'}'`
10048 { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10050 if test `eval echo '${'$as_ac_var'}'` = yes; then
10051 cat >>confdefs.h <<_ACEOF
10052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10058 { echo "$as_me:$LINENO: checking for working mmap" >&5
10059 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10060 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 if test "$cross_compiling" = yes; then
10064 ac_cv_func_mmap_fixed_mapped=no
10066 cat >conftest.$ac_ext <<_ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10072 $ac_includes_default
10073 /* malloc might have been renamed as rpl_malloc. */
10076 /* Thanks to Mike Haertel and Jim Avera for this test.
10077 Here is a matrix of mmap possibilities:
10078 mmap private not fixed
10079 mmap private fixed at somewhere currently unmapped
10080 mmap private fixed at somewhere already mapped
10081 mmap shared not fixed
10082 mmap shared fixed at somewhere currently unmapped
10083 mmap shared fixed at somewhere already mapped
10084 For private mappings, we should verify that changes cannot be read()
10085 back from the file, nor mmap's back from the file at a different
10086 address. (There have been systems where private was not correctly
10087 implemented like the infamous i386 svr4.0, and systems where the
10088 VM page cache was not coherent with the file system buffer cache
10089 like early versions of FreeBSD and possibly contemporary NetBSD.)
10090 For shared mappings, we should conversely verify that changes get
10091 propagated back to all the places they're supposed to be.
10093 Grep wants private fixed already mapped.
10094 The main things grep needs to know about mmap are:
10095 * does it exist and is it safe to write into the mmap'd area
10096 * how to use it (BSD variants) */
10099 #include <sys/mman.h>
10101 #if !STDC_HEADERS && !HAVE_STDLIB_H
10105 /* This mess was copied from the GNU getpagesize.h. */
10106 #if !HAVE_GETPAGESIZE
10107 /* Assume that all systems that can run configure have sys/param.h. */
10108 # if !HAVE_SYS_PARAM_H
10109 # define HAVE_SYS_PARAM_H 1
10112 # ifdef _SC_PAGESIZE
10113 # define getpagesize() sysconf(_SC_PAGESIZE)
10114 # else /* no _SC_PAGESIZE */
10115 # if HAVE_SYS_PARAM_H
10116 # include <sys/param.h>
10117 # ifdef EXEC_PAGESIZE
10118 # define getpagesize() EXEC_PAGESIZE
10119 # else /* no EXEC_PAGESIZE */
10121 # define getpagesize() NBPG * CLSIZE
10124 # endif /* no CLSIZE */
10125 # else /* no NBPG */
10127 # define getpagesize() NBPC
10128 # else /* no NBPC */
10130 # define getpagesize() PAGESIZE
10131 # endif /* PAGESIZE */
10132 # endif /* no NBPC */
10133 # endif /* no NBPG */
10134 # endif /* no EXEC_PAGESIZE */
10135 # else /* no HAVE_SYS_PARAM_H */
10136 # define getpagesize() 8192 /* punt totally */
10137 # endif /* no HAVE_SYS_PARAM_H */
10138 # endif /* no _SC_PAGESIZE */
10140 #endif /* no HAVE_GETPAGESIZE */
10145 char *data, *data2, *data3;
10149 pagesize = getpagesize ();
10151 /* First, make a file with some known garbage in it. */
10152 data = (char *) malloc (pagesize);
10155 for (i = 0; i < pagesize; ++i)
10156 *(data + i) = rand ();
10158 fd = creat ("conftest.mmap", 0600);
10161 if (write (fd, data, pagesize) != pagesize)
10165 /* Next, try to mmap the file at a fixed address which already has
10166 something else allocated at it. If we can, also make sure that
10167 we see the same garbage. */
10168 fd = open ("conftest.mmap", O_RDWR);
10171 data2 = (char *) malloc (2 * pagesize);
10174 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10175 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10176 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10178 for (i = 0; i < pagesize; ++i)
10179 if (*(data + i) != *(data2 + i))
10182 /* Finally, make sure that changes to the mapped area do not
10183 percolate back to the file as seen by read(). (This is a bug on
10184 some variants of i386 svr4.0.) */
10185 for (i = 0; i < pagesize; ++i)
10186 *(data2 + i) = *(data2 + i) + 1;
10187 data3 = (char *) malloc (pagesize);
10190 if (read (fd, data3, pagesize) != pagesize)
10192 for (i = 0; i < pagesize; ++i)
10193 if (*(data + i) != *(data3 + i))
10199 rm -f conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_link") 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_func_mmap_fixed_mapped=yes
10221 echo "$as_me: program exited with status $ac_status" >&5
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 ( exit $ac_status )
10226 ac_cv_func_mmap_fixed_mapped=no
10228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10233 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10234 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10235 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_MMAP 1
10242 rm -f conftest.mmap
10245 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10246 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10247 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 #include <features.h>
10258 #ifdef __GNU_LIBRARY__
10259 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10267 ac_cv_gnu_library_2_1=yes
10269 ac_cv_gnu_library_2_1=no
10276 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10277 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10279 GLIBC21="$ac_cv_gnu_library_2_1"
10284 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10285 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10286 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 if test "$cross_compiling" = yes; then
10292 # Guess based on the CPU.
10293 case "$host_cpu" in
10294 alpha* | i3456786 | m68k | s390*)
10295 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10297 gt_cv_int_divbyzero_sigfpe="guessing no";;
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10308 #include <stdlib.h>
10309 #include <signal.h>
10313 sigfpe_handler (int sig)
10315 sigfpe_handler (sig) int sig;
10318 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10319 exit (sig != SIGFPE);
10329 signal (SIGFPE, sigfpe_handler);
10330 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10331 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10332 signal (SIGTRAP, sigfpe_handler);
10334 /* Linux/SPARC yields signal SIGILL. */
10335 #if defined (__sparc__) && defined (__linux__)
10336 signal (SIGILL, sigfpe_handler);
10345 rm -f conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10356 { (case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_try") 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 gt_cv_int_divbyzero_sigfpe=yes
10367 echo "$as_me: program exited with status $ac_status" >&5
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ( exit $ac_status )
10372 gt_cv_int_divbyzero_sigfpe=no
10374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10380 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10381 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10382 case "$gt_cv_int_divbyzero_sigfpe" in
10387 cat >>confdefs.h <<_ACEOF
10388 #define INTDIV0_RAISES_SIGFPE $value
10393 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10394 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10395 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 unsigned long long ull = 1ULL; int i = 63;
10408 unsigned long long ullmax = (unsigned long long) -1;
10409 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10414 rm -f conftest.$ac_objext conftest$ac_exeext
10415 if { (ac_try="$ac_link"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_link") 2>conftest.er1
10423 grep -v '^ *+' conftest.er1 >conftest.err
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10429 { (case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_try") 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest$ac_exeext'
10439 { (case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_try") 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_type_unsigned_long_long=yes
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_cv_type_unsigned_long_long=no
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10459 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10460 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10461 if test $ac_cv_type_unsigned_long_long = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_UNSIGNED_LONG_LONG 1
10472 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10474 test $ac_cv_type_unsigned_long_long = yes \
10475 && ac_type='unsigned long long' \
10476 || ac_type='unsigned long'
10478 cat >>confdefs.h <<_ACEOF
10479 #define uintmax_t $ac_type
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_UINTMAX_T 1
10491 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10492 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10493 if test "${gt_cv_header_inttypes_h+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 #include <sys/types.h>
10504 #include <inttypes.h>
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest.$ac_objext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 gt_cv_header_inttypes_h=yes
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 gt_cv_header_inttypes_h=no
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10559 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10560 if test $gt_cv_header_inttypes_h = yes; then
10562 cat >>confdefs.h <<_ACEOF
10563 #define HAVE_INTTYPES_H 1
10570 if test $gt_cv_header_inttypes_h = yes; then
10571 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10572 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10573 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <inttypes.h>
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10611 { (case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_try") 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest.$ac_objext'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 gt_cv_inttypes_pri_broken=no
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 gt_cv_inttypes_pri_broken=yes
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10642 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10644 if test "$gt_cv_inttypes_pri_broken" = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647 #define PRI_MACROS_BROKEN 1
10654 for ac_header in stdint.h
10656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664 { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10667 # Is the header compilable?
10668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 $ac_includes_default
10677 #include <$ac_header>
10679 rm -f conftest.$ac_objext
10680 if { (ac_try="$ac_compile"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_compile") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_header_compiler=yes
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_header_compiler=no
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6; }
10725 # Is the header present?
10726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 #include <$ac_header>
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10744 grep -v '^ *+' conftest.er1 >conftest.err
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } >/dev/null; then
10749 if test -s conftest.err; then
10750 ac_cpp_err=$ac_c_preproc_warn_flag
10751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10758 if test -z "$ac_cpp_err"; then
10759 ac_header_preproc=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_header_preproc=no
10767 rm -f conftest.err conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6; }
10771 # So? What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 eval "$as_ac_Header=\$ac_header_preproc"
10803 ac_res=`eval echo '${'$as_ac_Header'}'`
10804 { echo "$as_me:$LINENO: result: $ac_res" >&5
10805 echo "${ECHO_T}$ac_res" >&6; }
10808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10818 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10827 #include <limits.h>
10829 #include <stdint.h>
10836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10837 $EGREP "Found it" >/dev/null 2>&1; then
10842 if test -z "$result"; then
10843 if test "$cross_compiling" = yes; then
10844 # Depending upon the size, compute the lo and hi bounds.
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <stddef.h>
10855 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest.$ac_objext'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <stddef.h>
10908 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_compile") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10930 { (case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_try") 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest.$ac_objext'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_hi=$ac_mid; break
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 ac_lo=`expr $ac_mid + 1`
10955 if test $ac_lo -le $ac_mid; then
10959 ac_mid=`expr 2 '*' $ac_mid + 1`
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <stddef.h>
10978 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <stddef.h>
11031 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11038 rm -f conftest.$ac_objext
11039 if { (ac_try="$ac_compile"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_compile") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest.$ac_objext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_lo=$ac_mid; break
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_hi=`expr '(' $ac_mid ')' - 1`
11078 if test $ac_mid -le $ac_hi; then
11082 ac_mid=`expr 2 '*' $ac_mid`
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 # Binary search between lo and hi bounds.
11099 while test "x$ac_lo" != "x$ac_hi"; do
11100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <stddef.h>
11111 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_lo=`expr '(' $ac_mid ')' + 1`
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 ?*) res_hi=$ac_lo;;
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include <stddef.h>
11174 static long int longval () { return ~(size_t)0 / 10; }
11175 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11177 #include <stdlib.h>
11182 FILE *f = fopen ("conftest.val", "w");
11185 if ((~(size_t)0 / 10) < 0)
11187 long int i = longval ();
11188 if (i != (~(size_t)0 / 10))
11190 fprintf (f, "%ld\n", i);
11194 unsigned long int i = ulongval ();
11195 if (i != (~(size_t)0 / 10))
11197 fprintf (f, "%lu\n", i);
11199 return ferror (f) || fclose (f) != 0;
11205 rm -f conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 res_hi=`cat conftest.val`
11227 echo "$as_me: program exited with status $ac_status" >&5
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ( exit $ac_status )
11234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11237 if test "$cross_compiling" = yes; then
11238 # Depending upon the size, compute the lo and hi bounds.
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <stddef.h>
11249 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_compile") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_try") 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 #include <stddef.h>
11302 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_hi=$ac_mid; break
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_lo=`expr $ac_mid + 1`
11349 if test $ac_lo -le $ac_mid; then
11353 ac_mid=`expr 2 '*' $ac_mid + 1`
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <stddef.h>
11372 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11379 rm -f conftest.$ac_objext
11380 if { (ac_try="$ac_compile"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_compile") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11394 { (case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_try") 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_try") 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <stddef.h>
11425 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_lo=$ac_mid; break
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_hi=`expr '(' $ac_mid ')' - 1`
11472 if test $ac_mid -le $ac_hi; then
11476 ac_mid=`expr 2 '*' $ac_mid`
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492 # Binary search between lo and hi bounds.
11493 while test "x$ac_lo" != "x$ac_hi"; do
11494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <stddef.h>
11505 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11512 rm -f conftest.$ac_objext
11513 if { (ac_try="$ac_compile"
11514 case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1 >conftest.err
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11527 { (case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_try") 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_try") 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_lo=`expr '(' $ac_mid ')' + 1`
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 ?*) res_lo=$ac_lo;;
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <stddef.h>
11568 static long int longval () { return ~(size_t)0 % 10; }
11569 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11571 #include <stdlib.h>
11576 FILE *f = fopen ("conftest.val", "w");
11579 if ((~(size_t)0 % 10) < 0)
11581 long int i = longval ();
11582 if (i != (~(size_t)0 % 10))
11584 fprintf (f, "%ld\n", i);
11588 unsigned long int i = ulongval ();
11589 if (i != (~(size_t)0 % 10))
11591 fprintf (f, "%lu\n", i);
11593 return ferror (f) || fclose (f) != 0;
11599 rm -f conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_link") 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 res_lo=`cat conftest.val`
11621 echo "$as_me: program exited with status $ac_status" >&5
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ( exit $ac_status )
11628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11631 if test "$cross_compiling" = yes; then
11632 # Depending upon the size, compute the lo and hi bounds.
11633 cat >conftest.$ac_ext <<_ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 #include <stddef.h>
11643 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11650 rm -f conftest.$ac_objext
11651 if { (ac_try="$ac_compile"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_compile") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest.$ac_objext'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <stddef.h>
11696 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_compile") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1 >conftest.err
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest.$ac_objext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_try") 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 ac_hi=$ac_mid; break
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 ac_lo=`expr $ac_mid + 1`
11743 if test $ac_lo -le $ac_mid; then
11747 ac_mid=`expr 2 '*' $ac_mid + 1`
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <stddef.h>
11766 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <stddef.h>
11819 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_lo=$ac_mid; break
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_hi=`expr '(' $ac_mid ')' - 1`
11866 if test $ac_mid -le $ac_hi; then
11870 ac_mid=`expr 2 '*' $ac_mid`
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 # Binary search between lo and hi bounds.
11887 while test "x$ac_lo" != "x$ac_hi"; do
11888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 #include <stddef.h>
11899 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_compile") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11921 { (case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_try") 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest.$ac_objext'
11931 { (case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_try") 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_lo=`expr '(' $ac_mid ')' + 1`
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 ?*) fits_in_uint=$ac_lo;;
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <stddef.h>
11962 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11963 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11965 #include <stdlib.h>
11970 FILE *f = fopen ("conftest.val", "w");
11973 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11975 long int i = longval ();
11976 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11978 fprintf (f, "%ld\n", i);
11982 unsigned long int i = ulongval ();
11983 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11985 fprintf (f, "%lu\n", i);
11987 return ferror (f) || fclose (f) != 0;
11993 rm -f conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 fits_in_uint=`cat conftest.val`
12015 echo "$as_me: program exited with status $ac_status" >&5
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ( exit $ac_status )
12022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12025 if test "$fits_in_uint" = 1; then
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <stddef.h>
12034 extern unsigned long foo;
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_compile") 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12059 { (case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_try") 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_try") 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 if test -z "$result"; then
12089 if test "$fits_in_uint" = 1; then
12090 result="$res_hi$res_lo"U
12092 result="$res_hi$res_lo"UL
12095 result='~(size_t)0'
12098 { echo "$as_me:$LINENO: result: $result" >&5
12099 echo "${ECHO_T}$result" >&6; }
12100 if test "$result" != yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define SIZE_MAX $result
12112 for ac_header in stdint.h
12114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 ac_res=`eval echo '${'$as_ac_Header'}'`
12122 { echo "$as_me:$LINENO: result: $ac_res" >&5
12123 echo "${ECHO_T}$ac_res" >&6; }
12125 # Is the header compilable?
12126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 $ac_includes_default
12135 #include <$ac_header>
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compile") 2>conftest.er1
12146 grep -v '^ *+' conftest.er1 >conftest.err
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12152 { (case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_try") 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest.$ac_objext'
12162 { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_try") 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_compiler=no
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12181 echo "${ECHO_T}$ac_header_compiler" >&6; }
12183 # Is the header present?
12184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12186 cat >conftest.$ac_ext <<_ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <$ac_header>
12194 if { (ac_try="$ac_cpp conftest.$ac_ext"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12216 if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_header_preproc=no
12225 rm -f conftest.err conftest.$ac_ext
12226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227 echo "${ECHO_T}$ac_header_preproc" >&6; }
12229 # So? What about this header?
12230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 eval "$as_ac_Header=\$ac_header_preproc"
12261 ac_res=`eval echo '${'$as_ac_Header'}'`
12262 { echo "$as_me:$LINENO: result: $ac_res" >&5
12263 echo "${ECHO_T}$ac_res" >&6; }
12266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12282 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12283 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12284 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 $ac_includes_default
12294 typedef ptrdiff_t ac__type_new_;
12298 if ((ac__type_new_ *) 0)
12300 if (sizeof (ac__type_new_))
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_cv_type_ptrdiff_t=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_type_ptrdiff_t=no
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12351 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12352 if test $ac_cv_type_ptrdiff_t = yes; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define ptrdiff_t long
12373 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12374 stdlib.h string.h unistd.h sys/param.h
12376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_res=`eval echo '${'$as_ac_Header'}'`
12384 { echo "$as_me:$LINENO: result: $ac_res" >&5
12385 echo "${ECHO_T}$ac_res" >&6; }
12387 # Is the header compilable?
12388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12397 #include <$ac_header>
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_compile") 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12414 { (case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_try") 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest.$ac_objext'
12424 { (case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_try") 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_header_compiler=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_header_compiler=no
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12443 echo "${ECHO_T}$ac_header_compiler" >&6; }
12445 # Is the header present?
12446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 #include <$ac_header>
12456 if { (ac_try="$ac_cpp conftest.$ac_ext"
12457 case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } >/dev/null; then
12469 if test -s conftest.err; then
12470 ac_cpp_err=$ac_c_preproc_warn_flag
12471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12478 if test -z "$ac_cpp_err"; then
12479 ac_header_preproc=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_header_preproc=no
12487 rm -f conftest.err conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12489 echo "${ECHO_T}$ac_header_preproc" >&6; }
12491 # So? What about this header?
12492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12498 ac_header_preproc=yes
12501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 eval "$as_ac_Header=\$ac_header_preproc"
12523 ac_res=`eval echo '${'$as_ac_Header'}'`
12524 { echo "$as_me:$LINENO: result: $ac_res" >&5
12525 echo "${ECHO_T}$ac_res" >&6; }
12528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12529 cat >>confdefs.h <<_ACEOF
12530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12560 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12561 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12562 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579 #define $ac_func innocuous_$ac_func
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char $ac_func (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12587 # include <limits.h>
12589 # include <assert.h>
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12601 /* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 return $ac_func ();
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 eval "$as_ac_var=yes"
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 eval "$as_ac_var=no"
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12661 ac_res=`eval echo '${'$as_ac_var'}'`
12662 { echo "$as_me:$LINENO: result: $ac_res" >&5
12663 echo "${ECHO_T}$ac_res" >&6; }
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12674 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12675 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12676 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12691 char *p = (char *) _snprintf;
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_have_decl__snprintf=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_cv_have_decl__snprintf=no
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12743 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12744 if test $ac_cv_have_decl__snprintf = yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL__SNPRINTF $gt_value
12756 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12757 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12758 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 cat >conftest.$ac_ext <<_ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12773 char *p = (char *) _snwprintf;
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_have_decl__snwprintf=yes
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_cv_have_decl__snwprintf=no
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12825 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12826 if test $ac_cv_have_decl__snwprintf = yes; then
12832 cat >>confdefs.h <<_ACEOF
12833 #define HAVE_DECL__SNWPRINTF $gt_value
12839 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12840 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12841 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12855 #ifndef feof_unlocked
12856 char *p = (char *) feof_unlocked;
12863 rm -f conftest.$ac_objext
12864 if { (ac_try="$ac_compile"
12865 case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_compile") 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12878 { (case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_try") 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_try") 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_have_decl_feof_unlocked=yes
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_have_decl_feof_unlocked=no
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12908 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12909 if test $ac_cv_have_decl_feof_unlocked = yes; then
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12921 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12922 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12923 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 cat >conftest.$ac_ext <<_ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12937 #ifndef fgets_unlocked
12938 char *p = (char *) fgets_unlocked;
12945 rm -f conftest.$ac_objext
12946 if { (ac_try="$ac_compile"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_compile") 2>conftest.er1
12954 grep -v '^ *+' conftest.er1 >conftest.err
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 { (case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_try") 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_try") 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_have_decl_fgets_unlocked=yes
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ac_cv_have_decl_fgets_unlocked=no
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12989 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12990 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12991 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13003 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13004 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13005 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13019 #ifndef getc_unlocked
13020 char *p = (char *) getc_unlocked;
13027 rm -f conftest.$ac_objext
13028 if { (ac_try="$ac_compile"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_compile") 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } &&
13051 { ac_try='test -s conftest.$ac_objext'
13052 { (case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_try") 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_have_decl_getc_unlocked=yes
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_cv_have_decl_getc_unlocked=no
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13072 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13073 if test $ac_cv_have_decl_getc_unlocked = yes; then
13079 cat >>confdefs.h <<_ACEOF
13080 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13085 case $gt_cv_func_printf_posix in
13086 *yes) HAVE_POSIX_PRINTF=1 ;;
13087 *) HAVE_POSIX_PRINTF=0 ;;
13090 if test "$ac_cv_func_asprintf" = yes; then
13096 if test "$ac_cv_func_snprintf" = yes; then
13102 if test "$ac_cv_func_wprintf" = yes; then
13114 am_save_CPPFLAGS="$CPPFLAGS"
13116 for element in $INCICONV; do
13118 for x in $CPPFLAGS; do
13120 acl_save_prefix="$prefix"
13121 prefix="$acl_final_prefix"
13122 acl_save_exec_prefix="$exec_prefix"
13123 exec_prefix="$acl_final_exec_prefix"
13125 exec_prefix="$acl_save_exec_prefix"
13126 prefix="$acl_save_prefix"
13128 if test "X$x" = "X$element"; then
13133 if test -z "$haveit"; then
13134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13139 { echo "$as_me:$LINENO: checking for iconv" >&5
13140 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13141 if test "${am_cv_func_iconv+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 am_cv_func_iconv="no, consider installing GNU libiconv"
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 #include <stdlib.h>
13158 iconv_t cd = iconv_open("","");
13159 iconv(cd,NULL,NULL,NULL,NULL);
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 am_cv_func_iconv=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 if test "$am_cv_func_iconv" != yes; then
13210 am_save_LIBS="$LIBS"
13211 LIBS="$LIBS $LIBICONV"
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <stdlib.h>
13223 iconv_t cd = iconv_open("","");
13224 iconv(cd,NULL,NULL,NULL,NULL);
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 am_cv_lib_iconv=yes
13265 am_cv_func_iconv=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS="$am_save_LIBS"
13279 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13280 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13281 if test "$am_cv_func_iconv" = yes; then
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_ICONV 1
13288 if test "$am_cv_lib_iconv" = yes; then
13289 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13290 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13291 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13292 echo "${ECHO_T}$LIBICONV" >&6; }
13294 CPPFLAGS="$am_save_CPPFLAGS"
13301 if test "$am_cv_func_iconv" = yes; then
13302 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13303 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13304 if test "${am_cv_proto_iconv+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13315 #include <stdlib.h>
13321 #if defined(__STDC__) || defined(__cplusplus)
13322 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 am_cv_proto_iconv_arg1=""
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 am_cv_proto_iconv_arg1="const"
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 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);"
13381 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13382 { echo "$as_me:$LINENO: result: ${ac_t:-
13383 }$am_cv_proto_iconv" >&5
13384 echo "${ECHO_T}${ac_t:-
13385 }$am_cv_proto_iconv" >&6; }
13387 cat >>confdefs.h <<_ACEOF
13388 #define ICONV_CONST $am_cv_proto_iconv_arg1
13394 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13395 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13396 if test "${am_cv_langinfo_codeset+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <langinfo.h>
13409 char* cs = nl_langinfo(CODESET);
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_try") 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 am_cv_langinfo_codeset=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 am_cv_langinfo_codeset=no
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13461 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13462 if test $am_cv_langinfo_codeset = yes; then
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_LANGINFO_CODESET 1
13470 if test $ac_cv_header_locale_h = yes; then
13472 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13473 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13474 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 #include <locale.h>
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 gt_cv_val_LC_MESSAGES=yes
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 gt_cv_val_LC_MESSAGES=no
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13537 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13538 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13539 if test $gt_cv_val_LC_MESSAGES = yes; then
13541 cat >>confdefs.h <<\_ACEOF
13542 #define HAVE_LC_MESSAGES 1
13549 if test -n "$INTL_MACOSX_LIBS"; then
13550 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13553 for ac_prog in bison
13555 # Extract the first word of "$ac_prog", so it can be a program name with args.
13556 set dummy $ac_prog; ac_word=$2
13557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13559 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 if test -n "$INTLBISON"; then
13563 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_INTLBISON="$ac_prog"
13573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 INTLBISON=$ac_cv_prog_INTLBISON
13583 if test -n "$INTLBISON"; then
13584 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13585 echo "${ECHO_T}$INTLBISON" >&6; }
13587 { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13592 test -n "$INTLBISON" && break
13595 if test -z "$INTLBISON"; then
13598 { echo "$as_me:$LINENO: checking version of bison" >&5
13599 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13600 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13601 case $ac_prog_version in
13602 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13603 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13604 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13605 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13607 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13608 echo "${ECHO_T}$ac_prog_version" >&6; }
13610 if test $ac_verc_fail = yes; then
13629 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13630 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13631 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 gt_save_CPPFLAGS="$CPPFLAGS"
13635 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13636 gt_save_LIBS="$LIBS"
13637 LIBS="$LIBS -framework CoreFoundation"
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <CFPreferences.h>
13648 CFPreferencesCopyAppValue(NULL, NULL)
13653 rm -f conftest.$ac_objext conftest$ac_exeext
13654 if { (ac_try="$ac_link"
13655 case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_link") 2>conftest.er1
13662 grep -v '^ *+' conftest.er1 >conftest.err
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_try") 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 gt_cv_func_CFPreferencesCopyAppValue=yes
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13692 gt_cv_func_CFPreferencesCopyAppValue=no
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 CPPFLAGS="$gt_save_CPPFLAGS"
13698 LIBS="$gt_save_LIBS"
13700 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13701 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13702 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13709 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13710 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13711 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 gt_save_CPPFLAGS="$CPPFLAGS"
13715 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13716 gt_save_LIBS="$LIBS"
13717 LIBS="$LIBS -framework CoreFoundation"
13718 cat >conftest.$ac_ext <<_ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 #include <CFLocale.h>
13728 CFLocaleCopyCurrent();
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_try") 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest$ac_exeext'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 gt_cv_func_CFLocaleCopyCurrent=yes
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 gt_cv_func_CFLocaleCopyCurrent=no
13775 rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 CPPFLAGS="$gt_save_CPPFLAGS"
13778 LIBS="$gt_save_LIBS"
13780 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13781 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13782 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_CFLOCALECOPYCURRENT 1
13790 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13791 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13797 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13799 # Check whether --enable-nls was given.
13800 if test "${enable_nls+set}" = set; then
13801 enableval=$enable_nls; USE_NLS=$enableval
13806 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13807 echo "${ECHO_T}$USE_NLS" >&6; }
13812 BUILD_INCLUDED_LIBINTL=no
13813 USE_INCLUDED_LIBINTL=no
13819 if test "$USE_NLS" = "yes"; then
13820 gt_use_preinstalled_gnugettext=no
13822 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13823 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13825 # Check whether --with-included-gettext was given.
13826 if test "${with_included_gettext+set}" = set; then
13827 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13829 nls_cv_force_use_gnu_gettext=no
13832 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13833 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13835 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13836 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13843 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13844 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13845 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <libintl.h>
13855 extern int _nl_msg_cat_cntr;
13856 extern int *_nl_domain_bindings;
13860 bindtextdomain ("", "");
13861 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_link") 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 gt_cv_func_gnugettext1_libc=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 gt_cv_func_gnugettext1_libc=no
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13911 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13912 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13914 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13920 acl_save_prefix="$prefix"
13921 prefix="$acl_final_prefix"
13922 acl_save_exec_prefix="$exec_prefix"
13923 exec_prefix="$acl_final_exec_prefix"
13925 eval additional_includedir=\"$includedir\"
13926 eval additional_libdir=\"$libdir\"
13928 exec_prefix="$acl_save_exec_prefix"
13929 prefix="$acl_save_prefix"
13932 # Check whether --with-libintl-prefix was given.
13933 if test "${with_libintl_prefix+set}" = set; then
13934 withval=$with_libintl_prefix;
13935 if test "X$withval" = "Xno"; then
13938 if test "X$withval" = "X"; then
13940 acl_save_prefix="$prefix"
13941 prefix="$acl_final_prefix"
13942 acl_save_exec_prefix="$exec_prefix"
13943 exec_prefix="$acl_final_exec_prefix"
13945 eval additional_includedir=\"$includedir\"
13946 eval additional_libdir=\"$libdir\"
13948 exec_prefix="$acl_save_exec_prefix"
13949 prefix="$acl_save_prefix"
13952 additional_includedir="$withval/include"
13953 additional_libdir="$withval/lib"
13964 names_already_handled=
13965 names_next_round='intl '
13966 while test -n "$names_next_round"; do
13967 names_this_round="$names_next_round"
13969 for name in $names_this_round; do
13971 for n in $names_already_handled; do
13972 if test "$n" = "$name"; then
13973 already_handled=yes
13977 if test -z "$already_handled"; then
13978 names_already_handled="$names_already_handled $name"
13979 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13980 eval value=\"\$HAVE_LIB$uppername\"
13981 if test -n "$value"; then
13982 if test "$value" = yes; then
13983 eval value=\"\$LIB$uppername\"
13984 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13985 eval value=\"\$LTLIB$uppername\"
13986 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13995 if test $use_additional = yes; then
13996 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13997 found_dir="$additional_libdir"
13998 found_so="$additional_libdir/lib$name.$shlibext"
13999 if test -f "$additional_libdir/lib$name.la"; then
14000 found_la="$additional_libdir/lib$name.la"
14003 if test -f "$additional_libdir/lib$name.$libext"; then
14004 found_dir="$additional_libdir"
14005 found_a="$additional_libdir/lib$name.$libext"
14006 if test -f "$additional_libdir/lib$name.la"; then
14007 found_la="$additional_libdir/lib$name.la"
14012 if test "X$found_dir" = "X"; then
14013 for x in $LDFLAGS $LTLIBINTL; do
14015 acl_save_prefix="$prefix"
14016 prefix="$acl_final_prefix"
14017 acl_save_exec_prefix="$exec_prefix"
14018 exec_prefix="$acl_final_exec_prefix"
14020 exec_prefix="$acl_save_exec_prefix"
14021 prefix="$acl_save_prefix"
14025 dir=`echo "X$x" | sed -e 's/^X-L//'`
14026 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14028 found_so="$dir/lib$name.$shlibext"
14029 if test -f "$dir/lib$name.la"; then
14030 found_la="$dir/lib$name.la"
14033 if test -f "$dir/lib$name.$libext"; then
14035 found_a="$dir/lib$name.$libext"
14036 if test -f "$dir/lib$name.la"; then
14037 found_la="$dir/lib$name.la"
14043 if test "X$found_dir" != "X"; then
14048 if test "X$found_dir" != "X"; then
14049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14050 if test "X$found_so" != "X"; then
14051 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14052 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14055 for x in $ltrpathdirs; do
14056 if test "X$x" = "X$found_dir"; then
14061 if test -z "$haveit"; then
14062 ltrpathdirs="$ltrpathdirs $found_dir"
14064 if test "$hardcode_direct" = yes; then
14065 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14067 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14068 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14070 for x in $rpathdirs; do
14071 if test "X$x" = "X$found_dir"; then
14076 if test -z "$haveit"; then
14077 rpathdirs="$rpathdirs $found_dir"
14081 for x in $LDFLAGS $LIBINTL; do
14083 acl_save_prefix="$prefix"
14084 prefix="$acl_final_prefix"
14085 acl_save_exec_prefix="$exec_prefix"
14086 exec_prefix="$acl_final_exec_prefix"
14088 exec_prefix="$acl_save_exec_prefix"
14089 prefix="$acl_save_prefix"
14091 if test "X$x" = "X-L$found_dir"; then
14096 if test -z "$haveit"; then
14097 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14099 if test "$hardcode_minus_L" != no; then
14100 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14102 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14108 if test "X$found_a" != "X"; then
14109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14111 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14114 additional_includedir=
14115 case "$found_dir" in
14117 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14118 additional_includedir="$basedir/include"
14121 if test "X$additional_includedir" != "X"; then
14122 if test "X$additional_includedir" != "X/usr/include"; then
14124 if test "X$additional_includedir" = "X/usr/local/include"; then
14125 if test -n "$GCC"; then
14127 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14131 if test -z "$haveit"; then
14132 for x in $CPPFLAGS $INCINTL; do
14134 acl_save_prefix="$prefix"
14135 prefix="$acl_final_prefix"
14136 acl_save_exec_prefix="$exec_prefix"
14137 exec_prefix="$acl_final_exec_prefix"
14139 exec_prefix="$acl_save_exec_prefix"
14140 prefix="$acl_save_prefix"
14142 if test "X$x" = "X-I$additional_includedir"; then
14147 if test -z "$haveit"; then
14148 if test -d "$additional_includedir"; then
14149 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14155 if test -n "$found_la"; then
14156 save_libdir="$libdir"
14157 case "$found_la" in
14158 */* | *\\*) . "$found_la" ;;
14159 *) . "./$found_la" ;;
14161 libdir="$save_libdir"
14162 for dep in $dependency_libs; do
14165 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14166 if test "X$additional_libdir" != "X/usr/lib"; then
14168 if test "X$additional_libdir" = "X/usr/local/lib"; then
14169 if test -n "$GCC"; then
14171 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14175 if test -z "$haveit"; then
14177 for x in $LDFLAGS $LIBINTL; do
14179 acl_save_prefix="$prefix"
14180 prefix="$acl_final_prefix"
14181 acl_save_exec_prefix="$exec_prefix"
14182 exec_prefix="$acl_final_exec_prefix"
14184 exec_prefix="$acl_save_exec_prefix"
14185 prefix="$acl_save_prefix"
14187 if test "X$x" = "X-L$additional_libdir"; then
14192 if test -z "$haveit"; then
14193 if test -d "$additional_libdir"; then
14194 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14198 for x in $LDFLAGS $LTLIBINTL; do
14200 acl_save_prefix="$prefix"
14201 prefix="$acl_final_prefix"
14202 acl_save_exec_prefix="$exec_prefix"
14203 exec_prefix="$acl_final_exec_prefix"
14205 exec_prefix="$acl_save_exec_prefix"
14206 prefix="$acl_save_prefix"
14208 if test "X$x" = "X-L$additional_libdir"; then
14213 if test -z "$haveit"; then
14214 if test -d "$additional_libdir"; then
14215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14222 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14223 if test "$enable_rpath" != no; then
14225 for x in $rpathdirs; do
14226 if test "X$x" = "X$dir"; then
14231 if test -z "$haveit"; then
14232 rpathdirs="$rpathdirs $dir"
14235 for x in $ltrpathdirs; do
14236 if test "X$x" = "X$dir"; then
14241 if test -z "$haveit"; then
14242 ltrpathdirs="$ltrpathdirs $dir"
14247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14250 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14253 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14254 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14260 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14261 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14267 if test "X$rpathdirs" != "X"; then
14268 if test -n "$hardcode_libdir_separator"; then
14270 for found_dir in $rpathdirs; do
14271 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14273 acl_save_libdir="$libdir"
14275 eval flag=\"$hardcode_libdir_flag_spec\"
14276 libdir="$acl_save_libdir"
14277 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14279 for found_dir in $rpathdirs; do
14280 acl_save_libdir="$libdir"
14281 libdir="$found_dir"
14282 eval flag=\"$hardcode_libdir_flag_spec\"
14283 libdir="$acl_save_libdir"
14284 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14288 if test "X$ltrpathdirs" != "X"; then
14289 for found_dir in $ltrpathdirs; do
14290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14294 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14295 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14296 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 gt_save_CPPFLAGS="$CPPFLAGS"
14300 CPPFLAGS="$CPPFLAGS $INCINTL"
14301 gt_save_LIBS="$LIBS"
14302 LIBS="$LIBS $LIBINTL"
14303 cat >conftest.$ac_ext <<_ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 #include <libintl.h>
14310 extern int _nl_msg_cat_cntr;
14315 const char *_nl_expand_alias (const char *);
14319 bindtextdomain ("", "");
14320 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14340 { (case "(($ac_try" in
14341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342 *) ac_try_echo=$ac_try;;
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345 (eval "$ac_try") 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try='test -s conftest$ac_exeext'
14350 { (case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_try") 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 gt_cv_func_gnugettext1_libintl=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 gt_cv_func_gnugettext1_libintl=no
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14370 LIBS="$LIBS $LIBICONV"
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <libintl.h>
14378 extern int _nl_msg_cat_cntr;
14383 const char *_nl_expand_alias (const char *);
14387 bindtextdomain ("", "");
14388 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_link") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest$ac_exeext'
14418 { (case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_try") 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 LIBINTL="$LIBINTL $LIBICONV"
14428 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14429 gt_cv_func_gnugettext1_libintl=yes
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 CPPFLAGS="$gt_save_CPPFLAGS"
14442 LIBS="$gt_save_LIBS"
14444 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14445 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14448 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14449 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14450 && test "$PACKAGE" != gettext-runtime \
14451 && test "$PACKAGE" != gettext-tools; }; then
14452 gt_use_preinstalled_gnugettext=yes
14460 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14461 nls_cv_use_gnu_gettext=yes
14465 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14466 BUILD_INCLUDED_LIBINTL=yes
14467 USE_INCLUDED_LIBINTL=yes
14468 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14469 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14470 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14474 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14475 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14480 if test -n "$INTL_MACOSX_LIBS"; then
14481 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14482 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14483 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14484 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14488 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14489 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define ENABLE_NLS 1
14500 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14501 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14502 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14503 echo "${ECHO_T}$USE_NLS" >&6; }
14504 if test "$USE_NLS" = "yes"; then
14505 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14506 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14507 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14508 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14509 gt_source="external libintl"
14514 gt_source="included intl directory"
14516 { echo "$as_me:$LINENO: result: $gt_source" >&5
14517 echo "${ECHO_T}$gt_source" >&6; }
14520 if test "$USE_NLS" = "yes"; then
14522 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14524 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14525 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14526 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14527 echo "${ECHO_T}$LIBINTL" >&6; }
14529 for element in $INCINTL; do
14531 for x in $CPPFLAGS; do
14533 acl_save_prefix="$prefix"
14534 prefix="$acl_final_prefix"
14535 acl_save_exec_prefix="$exec_prefix"
14536 exec_prefix="$acl_final_exec_prefix"
14538 exec_prefix="$acl_save_exec_prefix"
14539 prefix="$acl_save_prefix"
14541 if test "X$x" = "X$element"; then
14546 if test -z "$haveit"; then
14547 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_GETTEXT 1
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_DCGETTEXT 1
14569 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14570 BUILD_INCLUDED_LIBINTL=yes
14577 nls_cv_header_intl=
14578 nls_cv_header_libgt=
14590 if test "$USE_INCLUDED_LIBINTL" = yes; then
14591 INTLOBJS="\$(GETTOBJS)"
14595 INTL_LIBTOOL_SUFFIX_PREFIX=
14599 INTLLIBS="$LIBINTL"
14612 support_postgresql=no
14613 support_smartalloc=yes
14614 support_readline=yes
14617 support_wx_console=no
14622 support_static_tools=no
14623 support_static_fd=no
14624 support_static_sd=no
14625 support_static_dir=no
14626 support_static_cons=no
14628 build_client_only=no
14636 # -------------------------------------------
14637 # gnome (default off)
14638 # -------------------------------------------
14639 # Check whether --enable-gnome was given.
14640 if test "${enable_gnome+set}" = set; then
14641 enableval=$enable_gnome; if test x$enableval = xyes; then
14648 if test x$support_gnome = xyes; then
14649 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14651 if test $pkg = 0; then
14652 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14653 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14654 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14655 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14660 GNOME_DIR=src/gnome2-console
14661 gnome_version="Version 2.x"
14663 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14664 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14665 { (exit 1); exit 1; }; }
14671 # -------------------------------------------
14672 # wx-console (default off)
14673 # -------------------------------------------
14674 # Check whether --enable-wx-console was given.
14675 if test "${enable_wx_console+set}" = set; then
14676 enableval=$enable_wx_console; if test x$enableval = xyes; then
14677 support_wx_console=yes
14683 if test x$support_wx_console = xyes; then
14684 abc=`$WXCONFIG $WXFLAGS --cppflags`
14686 if test $pkg = 0; then
14687 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14688 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14689 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14693 WX_DIR=src/wx-console
14696 echo "wx-config program not found. wx-console disabled."
14698 support_wx_console=no
14704 # -------------------------------------------
14705 # tray-monitor (default off)
14706 # -------------------------------------------
14707 # Check whether --enable-tray-monitor was given.
14708 if test "${enable_tray_monitor+set}" = set; then
14709 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14710 support_tray_monitor=yes
14716 if test x$support_tray_monitor = xyes; then
14717 abc=`$PKGCONFIG --exists gtk+-2.0`
14719 if test $pkg = 0; then
14720 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14721 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14724 TRAY_MONITOR_DIR=src/tray-monitor
14725 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14727 if test $pkg = 0; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_GTK_2_4 1
14737 # -------------------------------------------
14738 # smartalloc (default off)
14739 # -------------------------------------------
14740 # Check whether --enable-smartalloc was given.
14741 if test "${enable_smartalloc+set}" = set; then
14742 enableval=$enable_smartalloc; if test x$enableval = xno; then
14743 support_smartalloc=no
14748 if test x$support_smartalloc = xyes; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define SMARTALLOC 1
14755 # -------------------------------------------
14756 # static-tools (default off)
14757 # -------------------------------------------
14758 # Check whether --enable-static-tools was given.
14759 if test "${enable_static_tools+set}" = set; then
14760 enableval=$enable_static_tools; if test x$enableval = xyes; then
14761 support_static_tools=yes
14767 if test x$support_static_tools = xyes; then
14768 TTOOL_LDFLAGS="-static"
14772 # -------------------------------------------
14773 # static-fd (default off)
14774 # -------------------------------------------
14775 # Check whether --enable-static-fd was given.
14776 if test "${enable_static_fd+set}" = set; then
14777 enableval=$enable_static_fd; if test x$enableval = xyes; then
14778 support_static_fd=yes
14784 if test x$support_static_fd = xyes; then
14785 STATIC_FD="static-bacula-fd"
14789 # -------------------------------------------
14790 # static-sd (default off)
14791 # -------------------------------------------
14792 # Check whether --enable-static-sd was given.
14793 if test "${enable_static_sd+set}" = set; then
14794 enableval=$enable_static_sd; if test x$enableval = xyes; then
14795 support_static_sd=yes
14801 if test x$support_static_sd = xyes; then
14802 STATIC_SD="static-bacula-sd"
14806 # -------------------------------------------
14807 # static-dir (default off)
14808 # -------------------------------------------
14809 # Check whether --enable-static-dir was given.
14810 if test "${enable_static_dir+set}" = set; then
14811 enableval=$enable_static_dir; if test x$enableval = xyes; then
14812 support_static_dir=yes
14818 if test x$support_static_dir = xyes; then
14819 STATIC_DIR="static-bacula-dir"
14823 # -------------------------------------------
14824 # static-cons (default off)
14825 # -------------------------------------------
14826 # Check whether --enable-static-cons was given.
14827 if test "${enable_static_cons+set}" = set; then
14828 enableval=$enable_static_cons; if test x$enableval = xyes; then
14829 support_static_cons=yes
14837 if test x$support_static_cons = xyes; then
14838 STATIC_CONS="static-bconsole"
14839 STATIC_GNOME_CONS="static-gnome-console"
14840 STATIC_WX_CONS="static-wx-console"
14846 # -------------------------------------------
14847 # client_only (default off)
14848 # -------------------------------------------
14849 # Check whether --enable-client-only was given.
14850 if test "${enable_client_only+set}" = set; then
14851 enableval=$enable_client_only; if test x$enableval = xyes; then
14852 build_client_only=yes
14858 if test x$build_client_only = xno; then
14865 # -------------------------------------------
14866 # director (default on)
14867 # -------------------------------------------
14868 # Check whether --enable-build-dird was given.
14869 if test "${enable_build_dird+set}" = set; then
14870 enableval=$enable_build_dird; if test x$enableval = xno; then
14875 if test x$build_dird = xyes; then
14876 DIRD_DIR="src/dird"
14877 DIR_TOOLS="DIRTOOLS"
14880 DIR_TOOLS="NODIRTOOLS"
14885 # -------------------------------------------
14886 # stored (default on)
14887 # -------------------------------------------
14888 # Check whether --enable-build-stored was given.
14889 if test "${enable_build_stored+set}" = set; then
14890 enableval=$enable_build_stored; if test x$enableval = xno; then
14895 if test x$build_stored = xyes; then
14896 STORED_DIR="src/stored"
14902 # ---------------------------------------------------
14903 # Check for IPv6 support
14904 # ---------------------------------------------------
14905 # this allows you to turn it completely off
14907 # Check whether --enable-ipv6 was given.
14908 if test "${enable_ipv6+set}" = set; then
14909 enableval=$enable_ipv6; if test x$enableval = xno; then
14916 if test x$support_ipv6 = xyes; then
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 #include <sys/types.h>
14924 #include <sys/socket.h>
14925 #include <netinet/in.h>
14929 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_link") 2>conftest.er1
14943 grep -v '^ *+' conftest.er1 >conftest.err
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14949 { (case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_try") 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest$ac_exeext'
14959 { (case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_try") 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14976 rm -f core conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14980 if test x$support_ipv6 = xyes; then
14982 cat >>confdefs.h <<\_ACEOF
14983 #define HAVE_IPV6 1
14991 if test x$support_conio = xyes; then
14992 if test "${ac_cv_header_termcap_h+set}" = set; then
14993 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14994 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14995 if test "${ac_cv_header_termcap_h+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14999 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15001 # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15003 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 $ac_includes_default
15011 #include <termcap.h>
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_header_compiler=yes
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_header_compiler=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15061 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <termcap.h>
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev/null; then
15083 if test -s conftest.err; then
15084 ac_cpp_err=$ac_c_preproc_warn_flag
15085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15092 if test -z "$ac_cpp_err"; then
15093 ac_header_preproc=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_header_preproc=no
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15105 # So? What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15108 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
15115 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15130 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15131 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15132 if test "${ac_cv_header_termcap_h+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 ac_cv_header_termcap_h=$ac_header_preproc
15137 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15138 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15141 if test $ac_cv_header_termcap_h = yes; then
15142 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15143 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15144 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 ac_check_lib_save_LIBS=$LIBS
15148 LIBS="-ltermcap $LIBS"
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15171 rm -f conftest.$ac_objext conftest$ac_exeext
15172 if { (ac_try="$ac_link"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_link") 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15186 { (case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_try") 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest$ac_exeext'
15196 { (case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_try") 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_lib_termcap_tgetent=yes
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15210 ac_cv_lib_termcap_tgetent=no
15213 rm -f core conftest.err conftest.$ac_objext \
15214 conftest$ac_exeext conftest.$ac_ext
15215 LIBS=$ac_check_lib_save_LIBS
15217 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15218 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15219 if test $ac_cv_lib_termcap_tgetent = yes; then
15220 CONS_LIBS="-ltermcap"
15224 support_readline=no
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_CONIO 1
15232 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15233 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15234 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 ac_check_lib_save_LIBS=$LIBS
15238 LIBS="-lncurses $LIBS"
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 /* Override any GCC internal prototype to avoid an error.
15247 Use char because int might match the return type of a GCC
15248 builtin and then its argument prototype would still apply. */
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15276 { (case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_try") 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest$ac_exeext'
15286 { (case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_try") 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_lib_ncurses_tgetent=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_lib_ncurses_tgetent=no
15303 rm -f core conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15308 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15309 if test $ac_cv_lib_ncurses_tgetent = yes; then
15310 CONS_LIBS="-lncurses"
15314 support_readline=no
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_CONIO 1
15330 for ac_header in curses.h
15332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 ac_res=`eval echo '${'$as_ac_Header'}'`
15340 { echo "$as_me:$LINENO: result: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15343 # Is the header compilable?
15344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 $ac_includes_default
15353 #include <$ac_header>
15355 rm -f conftest.$ac_objext
15356 if { (ac_try="$ac_compile"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_compile") 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_try") 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_header_compiler=yes
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ac_header_compiler=no
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15399 echo "${ECHO_T}$ac_header_compiler" >&6; }
15401 # Is the header present?
15402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <$ac_header>
15412 if { (ac_try="$ac_cpp conftest.$ac_ext"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } >/dev/null; then
15425 if test -s conftest.err; then
15426 ac_cpp_err=$ac_c_preproc_warn_flag
15427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15434 if test -z "$ac_cpp_err"; then
15435 ac_header_preproc=yes
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_header_preproc=no
15443 rm -f conftest.err conftest.$ac_ext
15444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15445 echo "${ECHO_T}$ac_header_preproc" >&6; }
15447 # So? What about this header?
15448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15454 ac_header_preproc=yes
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 eval "$as_ac_Header=\$ac_header_preproc"
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15493 { echo "$as_me:$LINENO: checking for term.h" >&5
15494 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15495 if test "${ac_cv_header_term_h+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15505 #include <curses.h>
15511 rm -f conftest.$ac_objext
15512 if { (ac_try="$ac_compile"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_compile") 2>conftest.er1
15520 grep -v '^ *+' conftest.er1 >conftest.err
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15545 ac_cv_header_term_h=yes
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_cv_header_term_h=no
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15556 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15557 if test $ac_cv_header_term_h = yes; then
15558 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15559 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lcurses $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15602 { (case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_try") 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; } &&
15611 { ac_try='test -s conftest$ac_exeext'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_try") 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 ac_cv_lib_curses_tgetent=yes
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_cv_lib_curses_tgetent=no
15629 rm -f core conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15633 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15634 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15635 if test $ac_cv_lib_curses_tgetent = yes; then
15636 CONS_LIBS="-lcurses"
15640 support_readline=no
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_CONIO 1
15651 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15662 # ---------------------------------------------------
15663 # Check for readline support/directory (default off)
15664 # ---------------------------------------------------
15665 # this allows you to turn it completely off
15666 # Check whether --enable-readline was given.
15667 if test "${enable_readline+set}" = set; then
15668 enableval=$enable_readline; if test x$enableval = xno; then
15669 support_readline=no
15676 if test x$support_readline = xyes; then
15678 # Check whether --with-readline was given.
15679 if test "${with_readline+set}" = set; then
15680 withval=$with_readline;
15681 case "$with_readline" in
15684 if test -f ${with_readline}/readline.h; then
15685 CONS_INC="-I${with_readline}"
15686 CONS_LDFLAGS="-L$with_readline"
15687 elif test -f ${with_readline}/include/readline/readline.h; then
15688 CONS_INC="-I${with_readline}/include/readline"
15689 CONS_LDFLAGS="-L${with_readline}/lib"
15690 with_readline="${with_readline}/include/readline"
15692 with_readline="/usr/include/readline"
15694 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15697 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 ac_res=`eval echo '${'$as_ac_Header'}'`
15702 { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15705 # Is the header compilable?
15706 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15707 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 #include <${with_readline}/readline.h>
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_header_compiler=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_header_compiler=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15761 echo "${ECHO_T}$ac_header_compiler" >&6; }
15763 # Is the header present?
15764 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15765 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <${with_readline}/readline.h>
15774 if { (ac_try="$ac_cpp conftest.$ac_ext"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15782 grep -v '^ *+' conftest.er1 >conftest.err
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev/null; then
15787 if test -s conftest.err; then
15788 ac_cpp_err=$ac_c_preproc_warn_flag
15789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15796 if test -z "$ac_cpp_err"; then
15797 ac_header_preproc=yes
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_preproc=no
15805 rm -f conftest.err conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15807 echo "${ECHO_T}$ac_header_preproc" >&6; }
15809 # So? What about this header?
15810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15812 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15813 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15815 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15816 ac_header_preproc=yes
15819 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15820 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15822 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15824 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15826 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15830 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15834 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15835 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 eval "$as_ac_Header=\$ac_header_preproc"
15841 ac_res=`eval echo '${'$as_ac_Header'}'`
15842 { echo "$as_me:$LINENO: result: $ac_res" >&5
15843 echo "${ECHO_T}$ac_res" >&6; }
15846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15847 cat >>confdefs.h <<\_ACEOF
15848 #define HAVE_READLINE 1
15851 CONS_LIBS="-lreadline -lhistory -ltermcap"
15856 echo "readline.h not found. readline turned off ..."
15868 # check for standard readline library
15869 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15870 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15871 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15872 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15876 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15878 # Is the header compilable?
15879 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15880 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 $ac_includes_default
15888 #include </usr/include/readline/readline.h>
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15899 grep -v '^ *+' conftest.er1 >conftest.err
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_header_compiler=yes
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_header_compiler=no
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934 echo "${ECHO_T}$ac_header_compiler" >&6; }
15936 # Is the header present?
15937 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15938 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include </usr/include/readline/readline.h>
15947 if { (ac_try="$ac_cpp conftest.$ac_ext"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } >/dev/null; then
15960 if test -s conftest.err; then
15961 ac_cpp_err=$ac_c_preproc_warn_flag
15962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15969 if test -z "$ac_cpp_err"; then
15970 ac_header_preproc=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_preproc=no
15978 rm -f conftest.err conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15980 echo "${ECHO_T}$ac_header_preproc" >&6; }
15982 # So? What about this header?
15983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15985 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15986 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
15988 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
15989 ac_header_preproc=yes
15992 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
15993 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
15995 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
15997 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15999 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16001 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16003 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16007 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16008 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16009 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16014 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16015 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16018 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16019 cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_READLINE 1
16024 CONS_INC="-I/usr/include/readline"
16025 CONS_LIBS="-lreadline -ltermcap"
16029 # Did not find standard library, so try Bacula's default
16030 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16033 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 ac_res=`eval echo '${'$as_ac_Header'}'`
16038 { echo "$as_me:$LINENO: result: $ac_res" >&5
16039 echo "${ECHO_T}$ac_res" >&6; }
16041 # Is the header compilable?
16042 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16043 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 $ac_includes_default
16051 #include <${TOP_DIR}/depkgs/readline/readline.h>
16053 rm -f conftest.$ac_objext
16054 if { (ac_try="$ac_compile"
16055 case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_compile") 2>conftest.er1
16062 grep -v '^ *+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068 { (case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_try") 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest.$ac_objext'
16078 { (case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_try") 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_header_compiler=yes
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_compiler=no
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16097 echo "${ECHO_T}$ac_header_compiler" >&6; }
16099 # Is the header present?
16100 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16101 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 #include <${TOP_DIR}/depkgs/readline/readline.h>
16110 if { (ac_try="$ac_cpp conftest.$ac_ext"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } >/dev/null; then
16123 if test -s conftest.err; then
16124 ac_cpp_err=$ac_c_preproc_warn_flag
16125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16132 if test -z "$ac_cpp_err"; then
16133 ac_header_preproc=yes
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 ac_header_preproc=no
16141 rm -f conftest.err conftest.$ac_ext
16142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16143 echo "${ECHO_T}$ac_header_preproc" >&6; }
16145 # So? What about this header?
16146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16148 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16149 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16151 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16152 ac_header_preproc=yes
16155 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16156 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16158 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16160 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16164 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16166 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16170 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16171 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 eval "$as_ac_Header=\$ac_header_preproc"
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178 { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_READLINE 1
16188 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16189 CONS_LIBS="-lreadline -lhistory -ltermcap"
16190 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16191 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16195 echo "readline.h not found. readline turned off ..."
16222 # Minimal stuff for readline Makefile configuration
16225 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16226 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16227 if test "${ac_cv_header_stat_broken+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <sys/types.h>
16237 #include <sys/stat.h>
16239 #if defined S_ISBLK && defined S_IFDIR
16240 # if S_ISBLK (S_IFDIR)
16245 #if defined S_ISBLK && defined S_IFCHR
16246 # if S_ISBLK (S_IFCHR)
16251 #if defined S_ISLNK && defined S_IFREG
16252 # if S_ISLNK (S_IFREG)
16257 #if defined S_ISSOCK && defined S_IFREG
16258 # if S_ISSOCK (S_IFREG)
16264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16265 $EGREP "You lose" >/dev/null 2>&1; then
16266 ac_cv_header_stat_broken=yes
16268 ac_cv_header_stat_broken=no
16273 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16274 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16275 if test $ac_cv_header_stat_broken = yes; then
16277 cat >>confdefs.h <<\_ACEOF
16278 #define STAT_MACROS_BROKEN 1
16288 ac_header_dirent=no
16289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cat >conftest.$ac_ext <<_ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <sys/types.h>
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_compile") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329 { (case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_try") 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 eval "$as_ac_Header=yes"
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 eval "$as_ac_Header=no"
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 ac_res=`eval echo '${'$as_ac_Header'}'`
16359 { echo "$as_me:$LINENO: result: $ac_res" >&5
16360 echo "${ECHO_T}$ac_res" >&6; }
16361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16362 cat >>confdefs.h <<_ACEOF
16363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16366 ac_header_dirent=$ac_hdr; break
16370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16371 if test $ac_header_dirent = dirent.h; then
16372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16374 if test "${ac_cv_search_opendir+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 ac_func_search_save_LIBS=$LIBS
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16400 for ac_lib in '' dir; do
16401 if test -z "$ac_lib"; then
16402 ac_res="none required"
16405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422 { (case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_try") 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_cv_search_opendir=$ac_res
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16449 rm -f core conftest.err conftest.$ac_objext \
16451 if test "${ac_cv_search_opendir+set}" = set; then
16455 if test "${ac_cv_search_opendir+set}" = set; then
16458 ac_cv_search_opendir=no
16460 rm conftest.$ac_ext
16461 LIBS=$ac_func_search_save_LIBS
16463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16465 ac_res=$ac_cv_search_opendir
16466 if test "$ac_res" != no; then
16467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16472 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16474 if test "${ac_cv_search_opendir+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 ac_func_search_save_LIBS=$LIBS
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16500 for ac_lib in '' x; do
16501 if test -z "$ac_lib"; then
16502 ac_res="none required"
16505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_link") 2>conftest.er1
16516 grep -v '^ *+' conftest.er1 >conftest.err
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_try") 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_search_opendir=$ac_res
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16549 rm -f core conftest.err conftest.$ac_objext \
16551 if test "${ac_cv_search_opendir+set}" = set; then
16555 if test "${ac_cv_search_opendir+set}" = set; then
16558 ac_cv_search_opendir=no
16560 rm conftest.$ac_ext
16561 LIBS=$ac_func_search_save_LIBS
16563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16565 ac_res=$ac_cv_search_opendir
16566 if test "$ac_res" != no; then
16567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16580 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16596 #define $ac_func innocuous_$ac_func
16598 /* System header to define __stub macros and hopefully few prototypes,
16599 which can conflict with char $ac_func (); below.
16600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601 <limits.h> exists even on freestanding compilers. */
16604 # include <limits.h>
16606 # include <assert.h>
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16618 /* The GNU C library defines this for functions which it implements
16619 to always fail with ENOSYS. Some functions are actually named
16620 something starting with __ and the normal name is an alias. */
16621 #if defined __stub_$ac_func || defined __stub___$ac_func
16628 return $ac_func ();
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 eval "$as_ac_var=yes"
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 eval "$as_ac_var=no"
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16678 ac_res=`eval echo '${'$as_ac_var'}'`
16679 { echo "$as_me:$LINENO: result: $ac_res" >&5
16680 echo "${ECHO_T}$ac_res" >&6; }
16681 if test `eval echo '${'$as_ac_var'}'` = yes; then
16682 cat >>confdefs.h <<_ACEOF
16683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16691 for ac_func in nanosleep nl_langinfo
16693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16707 #define $ac_func innocuous_$ac_func
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16715 # include <limits.h>
16717 # include <assert.h>
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16729 /* The GNU C library defines this for functions which it implements
16730 to always fail with ENOSYS. Some functions are actually named
16731 something starting with __ and the normal name is an alias. */
16732 #if defined __stub_$ac_func || defined __stub___$ac_func
16739 return $ac_func ();
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759 { (case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_try") 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest$ac_exeext'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 eval "$as_ac_var=yes"
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 eval "$as_ac_var=no"
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16789 ac_res=`eval echo '${'$as_ac_var'}'`
16790 { echo "$as_me:$LINENO: result: $ac_res" >&5
16791 echo "${ECHO_T}$ac_res" >&6; }
16792 if test `eval echo '${'$as_ac_var'}'` = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16801 for ac_header in varargs.h
16803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 ac_res=`eval echo '${'$as_ac_Header'}'`
16811 { echo "$as_me:$LINENO: result: $ac_res" >&5
16812 echo "${ECHO_T}$ac_res" >&6; }
16814 # Is the header compilable?
16815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 $ac_includes_default
16824 #include <$ac_header>
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_header_compiler=yes
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_header_compiler=no
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870 echo "${ECHO_T}$ac_header_compiler" >&6; }
16872 # Is the header present?
16873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 #include <$ac_header>
16883 if { (ac_try="$ac_cpp conftest.$ac_ext"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16891 grep -v '^ *+' conftest.er1 >conftest.err
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } >/dev/null; then
16896 if test -s conftest.err; then
16897 ac_cpp_err=$ac_c_preproc_warn_flag
16898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16905 if test -z "$ac_cpp_err"; then
16906 ac_header_preproc=yes
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_header_preproc=no
16914 rm -f conftest.err conftest.$ac_ext
16915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16916 echo "${ECHO_T}$ac_header_preproc" >&6; }
16918 # So? What about this header?
16919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16925 ac_header_preproc=yes
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 eval "$as_ac_Header=\$ac_header_preproc"
16950 ac_res=`eval echo '${'$as_ac_Header'}'`
16951 { echo "$as_me:$LINENO: result: $ac_res" >&5
16952 echo "${ECHO_T}$ac_res" >&6; }
16955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956 cat >>confdefs.h <<_ACEOF
16957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16965 # End of readline/conio stuff
16966 # -----------------------------------------------------------------------
16968 # -----------------------------------------------------------------------
16969 # Check for Python support
16971 { echo "$as_me:$LINENO: checking for Python support" >&5
16972 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
16974 # Check whether --with-python was given.
16975 if test "${with_python+set}" = set; then
16976 withval=$with_python;
16979 if test "$withval" != "no"; then
16980 if test "$withval" = "yes"; then
16981 for python_root in /usr /usr/local /usr/sfw; do
16982 for ver in python2.2 python2.3 python2.4 python2.5; do
16983 if test -f $python_root/include/${ver}/Python.h; then
16984 PYTHON_INCDIR=-I$python_root/include/${ver}
16985 if test -d $python_root/lib64/${ver}/config; then
16986 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
16988 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
16994 if test x$PYTHON_INCDIR = x; then
16995 if test -f $prefix/include/Python.h; then
16996 PYTHON_INCDIR=-I$prefix/include
16997 if test -d $prefix/lib64/config; then
16998 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17000 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17003 { echo "$as_me:$LINENO: result: no" >&5
17004 echo "${ECHO_T}no" >&6; }
17005 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17006 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17007 { (exit 1); exit 1; }; }
17011 if test -f $withval/Python.h; then
17012 PYTHON_INCDIR=-I$withval
17013 PYTHON_LIBS="-L$withval/config -lpython"
17014 elif test -f $withval/include/Python.h; then
17015 PYTHON_INCDIR=-I$withval/include
17016 if test -d $withval/lib64/config; then
17017 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17019 PYTHON_LIBS="-L$withval/lib/config -lpython"
17021 elif test -f $withval/include/python/Python.h; then
17022 PYTHON_INCDIR=-I$withval/include/python
17023 if test -d $withval/lib64/python/config; then
17024 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17026 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17029 { echo "$as_me:$LINENO: result: no" >&5
17030 echo "${ECHO_T}no" >&6; }
17031 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17032 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17033 { (exit 1); exit 1; }; }
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_PYTHON 1
17040 { echo "$as_me:$LINENO: result: yes" >&5
17041 echo "${ECHO_T}yes" >&6; }
17043 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17044 echo "$as_me: checking for more Python libs" >&6;}
17045 saved_LIBS="$LIBS"; LIBS=
17046 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17047 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17048 if test "${ac_cv_search_shm_open+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 ac_func_search_save_LIBS=$LIBS
17052 cat >conftest.$ac_ext <<_ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17059 /* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17069 return shm_open ();
17074 for ac_lib in '' rt; do
17075 if test -z "$ac_lib"; then
17076 ac_res="none required"
17079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_search_shm_open=$ac_res
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17123 rm -f core conftest.err conftest.$ac_objext \
17125 if test "${ac_cv_search_shm_open+set}" = set; then
17129 if test "${ac_cv_search_shm_open+set}" = set; then
17132 ac_cv_search_shm_open=no
17134 rm conftest.$ac_ext
17135 LIBS=$ac_func_search_save_LIBS
17137 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17138 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17139 ac_res=$ac_cv_search_shm_open
17140 if test "$ac_res" != no; then
17141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17146 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17147 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_util_openpty+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lutil $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_util_openpty=yes
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_cv_lib_util_openpty=no
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17222 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17223 if test $ac_cv_lib_util_openpty = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define HAVE_LIBUTIL 1
17228 LIBS="-lutil $LIBS"
17232 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17235 { echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6; }
17241 { echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6; }
17250 # Find where sockets are (especially for Solaris)
17251 # Do this before the TCP Wrappers test since tcp wrappers
17252 # uses the socket library and some linkers are stupid.
17254 { echo "$as_me:$LINENO: checking for socket" >&5
17255 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17256 if test "${ac_cv_func_socket+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267 #define socket innocuous_socket
17269 /* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char socket (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17275 # include <limits.h>
17277 # include <assert.h>
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined __stub_socket || defined __stub___socket
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_func_socket=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_func_socket=no
17346 rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17350 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17351 if test $ac_cv_func_socket = yes; then
17352 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17353 echo "${ECHO_T}using libc's socket" >&6; }
17356 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17357 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17358 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 ac_check_lib_save_LIBS=$LIBS
17362 LIBS="-lxnet $LIBS"
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 /* Override any GCC internal prototype to avoid an error.
17371 Use char because int might match the return type of a GCC
17372 builtin and then its argument prototype would still apply. */
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_cv_lib_xnet_socket=yes
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ac_cv_lib_xnet_socket=no
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17431 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17432 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17433 if test $ac_cv_lib_xnet_socket = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define HAVE_LIBXNET 1
17438 LIBS="-lxnet $LIBS"
17443 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17444 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17445 if test "${ac_cv_lib_socket_socket+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 ac_check_lib_save_LIBS=$LIBS
17449 LIBS="-lsocket $LIBS"
17450 cat >conftest.$ac_ext <<_ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_lib_socket_socket=yes
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_lib_socket_socket=no
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$ac_check_lib_save_LIBS
17518 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17519 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17520 if test $ac_cv_lib_socket_socket = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define HAVE_LIBSOCKET 1
17525 LIBS="-lsocket $LIBS"
17530 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17531 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17532 if test "${ac_cv_lib_inet_socket+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-linet $LIBS"
17537 cat >conftest.$ac_ext <<_ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (ac_try="$ac_link"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_link") 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest$ac_exeext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_lib_inet_socket=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_lib_inet_socket=no
17601 rm -f core conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17605 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17606 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17607 if test $ac_cv_lib_inet_socket = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define HAVE_LIBINET 1
17612 LIBS="-linet $LIBS"
17620 # -----------------------------------------------------------
17621 # Check whether user wants TCP wrappers support (default off)
17622 # -----------------------------------------------------------
17626 # Check whether --with-tcp-wrappers was given.
17627 if test "${with_tcp_wrappers+set}" = set; then
17628 withval=$with_tcp_wrappers;
17629 if test "x$withval" != "xno" ; then
17631 LIBS="$saved_LIBS -lwrap"
17632 { echo "$as_me:$LINENO: checking for libwrap" >&5
17633 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17634 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17635 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17636 if test "${ac_cv_search_nanosleep+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 ac_func_search_save_LIBS=$LIBS
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17647 /* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
17657 return nanosleep ();
17662 for ac_lib in '' rt; do
17663 if test -z "$ac_lib"; then
17664 ac_res="none required"
17667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (ac_try="$ac_link"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_link") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest$ac_exeext'
17694 { (case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_try") 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_search_nanosleep=$ac_res
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17711 rm -f core conftest.err conftest.$ac_objext \
17713 if test "${ac_cv_search_nanosleep+set}" = set; then
17717 if test "${ac_cv_search_nanosleep+set}" = set; then
17720 ac_cv_search_nanosleep=no
17722 rm conftest.$ac_ext
17723 LIBS=$ac_func_search_save_LIBS
17725 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17726 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17727 ac_res=$ac_cv_search_nanosleep
17728 if test "$ac_res" != no; then
17729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 #include <sys/types.h>
17741 int deny_severity = 0;
17742 int allow_severity = 0;
17743 struct request_info *req;
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_link") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest$ac_exeext'
17777 { (case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_try") 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17787 { echo "$as_me:$LINENO: result: yes" >&5
17788 echo "${ECHO_T}yes" >&6; }
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_LIBWRAP 1
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17802 LIBS="$saved_LIBS -lwrap -lnsl"
17803 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 #include <sys/types.h>
17812 int deny_severity = 0;
17813 int allow_severity = 0;
17814 struct request_info *req;
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17858 { echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6; }
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE_LIBWRAP 1
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17873 echo "$as_me: error: *** libwrap missing" >&2;}
17874 { (exit 1); exit 1; }; }
17878 rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17891 # -----------------------------------------------------------
17892 # Check whether OpenSSL is available
17893 # -----------------------------------------------------------
17894 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17895 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17897 # Check whether --with-openssl was given.
17898 if test "${with_openssl+set}" = set; then
17899 withval=$with_openssl; with_openssl_directory=${withval}
17903 if test "x$with_openssl_directory" != "x"; then
17904 OPENSSL_LIBS="-lssl -lcrypto"
17907 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17908 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17909 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17912 saved_LIBS="${LIBS}"
17913 saved_CFLAGS="${CFLAGS}"
17914 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17915 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <openssl/ssl.h>
17927 CRYPTO_set_id_callback(NULL);
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_link") 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17968 support_crypto="yes"
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17978 rm -f core conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext conftest.$ac_ext
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 #include <openssl/evp.h>
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_openssl_sha2="yes"
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_openssl_sha2="no"
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 LIBS="${saved_LIBS}"
18043 CFLAGS="${saved_CFLAGS}"
18045 if test "$support_tls" = "yes"; then
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_OPENSSL 1
18052 cat >>confdefs.h <<\_ACEOF
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_CRYPTO 1
18063 if test "$ac_cv_openssl_sha2" = "yes"; then
18065 cat >>confdefs.h <<\_ACEOF
18066 #define HAVE_SHA2 1
18072 support_crypto="no"
18077 { echo "$as_me:$LINENO: result: $support_tls" >&5
18078 echo "${ECHO_T}$support_tls" >&6; }
18083 # -----------------------------------------------------------
18084 # Python and OpenSSL are using dlopen
18085 # -----------------------------------------------------------
18087 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18088 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18089 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18090 if test "${ac_cv_search_dlopen+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 ac_func_search_save_LIBS=$LIBS
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18101 /* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18116 for ac_lib in '' dl; do
18117 if test -z "$ac_lib"; then
18118 ac_res="none required"
18121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138 { (case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_try") 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_try") 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_search_dlopen=$ac_res
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18165 rm -f core conftest.err conftest.$ac_objext \
18167 if test "${ac_cv_search_dlopen+set}" = set; then
18171 if test "${ac_cv_search_dlopen+set}" = set; then
18174 ac_cv_search_dlopen=no
18176 rm conftest.$ac_ext
18177 LIBS=$ac_func_search_save_LIBS
18179 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18180 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18181 ac_res=$ac_cv_search_dlopen
18182 if test "$ac_res" != no; then
18183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18189 # ------------------------------------------
18190 # Where to place working dir
18191 # ------------------------------------------
18192 working_dir=`eval echo ${prefix}/var/bacula/working`
18194 # Check whether --with-working-dir was given.
18195 if test "${with_working_dir+set}" = set; then
18196 withval=$with_working_dir;
18197 if test "x$withval" != "xno" ; then
18198 working_dir=$withval
18208 # ------------------------------------------
18209 # Where to place scriptdir (script files)
18210 # ------------------------------------------
18211 scriptdir=`eval echo ${sysconfdir}`
18213 # Check whether --with-scriptdir was given.
18214 if test "${with_scriptdir+set}" = set; then
18215 withval=$with_scriptdir;
18216 if test "x$withval" != "xno" ; then
18227 # ------------------------------------------
18228 # Where to send dump email
18229 # ------------------------------------------
18230 dump_email=root@localhost
18232 # Check whether --with-dump-email was given.
18233 if test "${with_dump_email+set}" = set; then
18234 withval=$with_dump_email;
18235 if test "x$withval" != "xno" ; then
18236 dump_email=$withval
18245 # ------------------------------------------
18246 # Where to send job email
18247 # ------------------------------------------
18248 job_email=root@localhost
18250 # Check whether --with-job-email was given.
18251 if test "${with_job_email+set}" = set; then
18252 withval=$with_job_email;
18253 if test "x$withval" != "xno" ; then
18263 # ------------------------------------------
18264 # Where to find smtp host
18265 # ------------------------------------------
18266 smtp_host=localhost
18268 # Check whether --with-smtp_host was given.
18269 if test "${with_smtp_host+set}" = set; then
18270 withval=$with_smtp_host;
18271 if test "x$withval" != "xno" ; then
18282 # ------------------------------------
18283 # Where to place pid files
18284 # ------------------------------------
18287 # Check whether --with-pid-dir was given.
18288 if test "${with_pid_dir+set}" = set; then
18289 withval=$with_pid_dir;
18290 if test "x$withval" != "xno" ; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define _PATH_BACULA_PIDDIR "$piddir"
18305 # ------------------------------------
18306 # Where to place subsys "lock file"
18307 # ------------------------------------
18308 subsysdir=/var/run/subsys
18310 # Check whether --with-subsys-dir was given.
18311 if test "${with_subsys_dir+set}" = set; then
18312 withval=$with_subsys_dir;
18313 if test "x$withval" != "xno" ; then
18325 # ------------------------------------
18326 # Where to start assigning ports
18327 # ------------------------------------
18330 # Check whether --with-baseport was given.
18331 if test "${with_baseport+set}" = set; then
18332 withval=$with_baseport;
18333 if test "x$withval" != "xno" ; then
18342 dir_port=`expr $baseport`
18343 fd_port=`expr $baseport + 1`
18344 sd_port=`expr $fd_port + 1`
18351 # ------------------------------------------
18352 # Generate passwords
18353 # ------------------------------------------
18356 # Check whether --with-dir-password was given.
18357 if test "${with_dir_password+set}" = set; then
18358 withval=$with_dir_password;
18359 if test "x$withval" != "xno" ; then
18360 dir_password=$withval
18367 if test "x$dir_password" = "x" ; then
18368 if test "x$OPENSSL" = "xnone" ; then
18369 key=`autoconf/randpass 33`
18371 key=`openssl rand -base64 33`
18378 # Check whether --with-fd-password was given.
18379 if test "${with_fd_password+set}" = set; then
18380 withval=$with_fd_password;
18381 if test "x$withval" != "xno" ; then
18382 fd_password=$withval
18389 if test "x$fd_password" = "x" ; then
18390 if test "x$OPENSSL" = "xnone" ; then
18391 key=`autoconf/randpass 37`
18393 key=`openssl rand -base64 33`
18400 # Check whether --with-sd-password was given.
18401 if test "${with_sd_password+set}" = set; then
18402 withval=$with_sd_password;
18403 if test "x$withval" != "xno" ; then
18404 sd_password=$withval
18411 if test "x$sd_password" = "x" ; then
18412 if test "x$OPENSSL" = "xnone" ; then
18413 key=`autoconf/randpass 41`
18415 key=`openssl rand -base64 33`
18422 # Check whether --with-mon-dir-password was given.
18423 if test "${with_mon_dir_password+set}" = set; then
18424 withval=$with_mon_dir_password;
18425 if test "x$withval" != "xno" ; then
18426 mon_dir_password=$withval
18433 if test "x$mon_dir_password" = "x" ; then
18434 if test "x$OPENSSL" = "xnone" ; then
18435 key=`autoconf/randpass 33`
18437 key=`openssl rand -base64 33`
18439 mon_dir_password=$key
18444 # Check whether --with-mon-fd-password was given.
18445 if test "${with_mon_fd_password+set}" = set; then
18446 withval=$with_mon_fd_password;
18447 if test "x$withval" != "xno" ; then
18448 mon_fd_password=$withval
18455 if test "x$mon_fd_password" = "x" ; then
18456 if test "x$OPENSSL" = "xnone" ; then
18457 key=`autoconf/randpass 37`
18459 key=`openssl rand -base64 33`
18461 mon_fd_password=$key
18466 # Check whether --with-mon-sd-password was given.
18467 if test "${with_mon_sd_password+set}" = set; then
18468 withval=$with_mon_sd_password;
18469 if test "x$withval" != "xno" ; then
18470 mon_sd_password=$withval
18477 if test "x$mon_sd_password" = "x" ; then
18478 if test "x$OPENSSL" = "xnone" ; then
18479 key=`autoconf/randpass 41`
18481 key=`openssl rand -base64 33`
18483 mon_sd_password=$key
18495 # Handle users and groups for each daemon
18499 # Check whether --with-dir_user was given.
18500 if test "${with_dir_user+set}" = set; then
18501 withval=$with_dir_user;
18502 if test "x$withval" != "x" ; then
18512 # Check whether --with-dir_group was given.
18513 if test "${with_dir_group+set}" = set; then
18514 withval=$with_dir_group;
18515 if test "x$withval" != "x" ; then
18525 # Check whether --with-sd_user was given.
18526 if test "${with_sd_user+set}" = set; then
18527 withval=$with_sd_user;
18528 if test "x$withval" != "x" ; then
18538 # Check whether --with-sd_group was given.
18539 if test "${with_sd_group+set}" = set; then
18540 withval=$with_sd_group;
18541 if test "x$withval" != "x" ; then
18551 # Check whether --with-fd_user was given.
18552 if test "${with_fd_user+set}" = set; then
18553 withval=$with_fd_user;
18554 if test "x$withval" != "x" ; then
18564 # Check whether --with-fd_group was given.
18565 if test "${with_fd_group+set}" = set; then
18566 withval=$with_fd_group;
18567 if test "x$withval" != "x" ; then
18586 # allow setting default executable permissions
18590 # Check whether --with-sbin-perm was given.
18591 if test "${with_sbin_perm+set}" = set; then
18592 withval=$with_sbin_perm;
18593 if test "x$withval" != "x" ; then
18603 # ------------------------------------------------
18604 # Bacula check for various SQL database engines
18605 # ------------------------------------------------
18608 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18609 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18611 # Check whether --with-postgresql was given.
18612 if test "${with_postgresql+set}" = set; then
18613 withval=$with_postgresql;
18614 if test "$withval" != "no"; then
18615 if test "$db_found" = "yes"; then
18616 { echo "$as_me:$LINENO: result: error" >&5
18617 echo "${ECHO_T}error" >&6; }
18618 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18619 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18620 { (exit 1); exit 1; }; };
18622 if test "$withval" = "yes"; then
18623 PG_CONFIG=`which pg_config`
18624 if test -n "$PG_CONFIG";then
18625 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18626 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18627 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18628 elif test -f /usr/local/include/libpq-fe.h; then
18629 POSTGRESQL_INCDIR=/usr/local/include
18630 if test -d /usr/local/lib64; then
18631 POSTGRESQL_LIBDIR=/usr/local/lib64
18633 POSTGRESQL_LIBDIR=/usr/local/lib
18635 POSTGRESQL_BINDIR=/usr/local/bin
18636 elif test -f /usr/include/libpq-fe.h; then
18637 POSTGRESQL_INCDIR=/usr/include
18638 if test -d /usr/lib64; then
18639 POSTGRESQL_LIBDIR=/usr/lib64
18641 POSTGRESQL_LIBDIR=/usr/lib
18643 POSTGRESQL_BINDIR=/usr/bin
18644 elif test -f /usr/include/pgsql/libpq-fe.h; then
18645 POSTGRESQL_INCDIR=/usr/include/pgsql
18646 if test -d /usr/lib64/pgsql; then
18647 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18649 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18651 POSTGRESQL_BINDIR=/usr/bin
18652 elif test -f /usr/include/postgresql/libpq-fe.h; then
18653 POSTGRESQL_INCDIR=/usr/include/postgresql
18654 if test -d /usr/lib64/postgresql; then
18655 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18657 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18659 POSTGRESQL_BINDIR=/usr/bin
18661 { echo "$as_me:$LINENO: result: no" >&5
18662 echo "${ECHO_T}no" >&6; }
18663 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18664 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18665 { (exit 1); exit 1; }; }
18667 elif test -f $withval/include/libpq-fe.h; then
18668 POSTGRESQL_INCDIR=$withval/include
18669 POSTGRESQL_LIBDIR=$withval/lib
18670 POSTGRESQL_BINDIR=$withval/bin
18671 elif test -f $withval/include/postgresql/libpq-fe.h; then
18672 POSTGRESQL_INCDIR=$withval/include/postgresql
18673 if test -d $withval/lib64; then
18674 POSTGRESQL_LIBDIR=$withval/lib64
18676 POSTGRESQL_LIBDIR=$withval/lib
18678 POSTGRESQL_BINDIR=$withval/bin
18680 { echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6; }
18682 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18683 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18684 { (exit 1); exit 1; }; }
18686 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18687 { echo "$as_me:$LINENO: checking for crypt" >&5
18688 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18689 if test "${ac_cv_func_crypt+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define crypt innocuous_crypt
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char crypt (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_crypt || defined __stub___crypt
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_func_crypt=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_func_crypt=no
18779 rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18782 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18783 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18784 if test $ac_cv_func_crypt = yes; then
18787 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18788 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18789 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lcrypt $LIBS"
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (ac_try="$ac_link"
18818 case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_link") 2>conftest.er1
18825 grep -v '^ *+' conftest.er1 >conftest.err
18827 cat conftest.err >&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
18830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18831 { (case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_try") 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; } &&
18840 { ac_try='test -s conftest$ac_exeext'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 ac_cv_lib_crypt_crypt=yes
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 ac_cv_lib_crypt_crypt=no
18858 rm -f core conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18863 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18864 if test $ac_cv_lib_crypt_crypt = yes; then
18865 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18870 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18871 SQL_LFLAGS=$POSTGRESQL_LFLAGS
18872 SQL_BINDIR=$POSTGRESQL_BINDIR
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE_POSTGRESQL 1
18877 { echo "$as_me:$LINENO: result: yes" >&5
18878 echo "${ECHO_T}yes" >&6; }
18880 support_postgresql=yes
18884 { echo "$as_me:$LINENO: result: no" >&5
18885 echo "${ECHO_T}no" >&6; }
18890 { echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6; }
18903 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18904 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18906 # Check whether --with-mysql was given.
18907 if test "${with_mysql+set}" = set; then
18908 withval=$with_mysql;
18909 if test "$withval" != "no"; then
18910 if test "$withval" = "yes"; then
18911 if test -f /usr/local/mysql/include/mysql/mysql.h; then
18912 MYSQL_INCDIR=/usr/local/mysql/include/mysql
18913 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18914 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18916 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18918 MYSQL_BINDIR=/usr/local/mysql/bin
18919 elif test -f /usr/include/mysql/mysql.h; then
18920 MYSQL_INCDIR=/usr/include/mysql
18921 if test -f /usr/lib64/mysql/libmysqlclient.a; then
18922 MYSQL_LIBDIR=/usr/lib64/mysql
18924 MYSQL_LIBDIR=/usr/lib/mysql
18926 MYSQL_BINDIR=/usr/bin
18927 elif test -f /usr/include/mysql.h; then
18928 MYSQL_INCDIR=/usr/include
18929 if test -f /usr/lib64/libmysqlclient.a; then
18930 MYSQL_LIBDIR=/usr/lib64
18932 MYSQL_LIBDIR=/usr/lib
18934 MYSQL_BINDIR=/usr/bin
18935 elif test -f /usr/local/include/mysql/mysql.h; then
18936 MYSQL_INCDIR=/usr/local/include/mysql
18937 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18938 MYSQL_LIBDIR=/usr/local/lib64/mysql
18940 MYSQL_LIBDIR=/usr/local/lib/mysql
18942 MYSQL_BINDIR=/usr/local/bin
18943 elif test -f /usr/local/include/mysql.h; then
18944 MYSQL_INCDIR=/usr/local/include
18945 if test -f /usr/local/lib64/libmysqlclient.a; then
18946 MYSQL_LIBDIR=/usr/local/lib64
18948 MYSQL_LIBDIR=/usr/local/lib
18950 MYSQL_BINDIR=/usr/local/bin
18952 { echo "$as_me:$LINENO: result: no" >&5
18953 echo "${ECHO_T}no" >&6; }
18954 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
18955 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
18956 { (exit 1); exit 1; }; }
18959 if test -f $withval/include/mysql/mysql.h; then
18960 MYSQL_INCDIR=$withval/include/mysql
18961 if test -f $withval/lib64/mysql/libmysqlclient.a; then
18962 MYSQL_LIBDIR=$withval/lib64/mysql
18964 MYSQL_LIBDIR=$withval/lib/mysql
18966 if test -f $withval/lib/libmysqlclient.so; then
18967 MYSQL_LIBDIR=$withval/lib
18970 MYSQL_BINDIR=$withval/bin
18971 elif test -f $withval/include/mysql.h; then
18972 MYSQL_INCDIR=$withval/include
18973 if test -f "$withval/lib64/libmysqlclient.a"; then
18974 MYSQL_LIBDIR=$withval/lib64
18976 MYSQL_LIBDIR=$withval/lib
18978 MYSQL_BINDIR=$withval/bin
18980 { echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6; }
18982 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
18983 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
18984 { (exit 1); exit 1; }; }
18987 SQL_INCLUDE=-I$MYSQL_INCDIR
18988 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
18989 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
18990 cat >>confdefs.h <<\_ACEOF
18991 #define HAVE_THREAD_SAFE_MYSQL 1
18995 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
18997 SQL_BINDIR=$MYSQL_BINDIR
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_MYSQL 1
19003 { echo "$as_me:$LINENO: result: yes" >&5
19004 echo "${ECHO_T}yes" >&6; }
19011 { echo "$as_me:$LINENO: result: no" >&5
19012 echo "${ECHO_T}no" >&6; }
19020 # Check whether --with-embedded-mysql was given.
19021 if test "${with_embedded_mysql+set}" = set; then
19022 withval=$with_embedded_mysql;
19023 if test "$withval" != "no"; then
19024 if test "$withval" = "yes"; then
19025 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19026 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19027 if test -d /usr/local/mysql/lib64/mysql; then
19028 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19030 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19032 MYSQL_BINDIR=/usr/local/mysql/bin
19033 elif test -f /usr/include/mysql/mysql.h; then
19034 MYSQL_INCDIR=/usr/include/mysql
19035 if test -d /usr/lib64/mysql; then
19036 MYSQL_LIBDIR=/usr/lib64/mysql
19038 MYSQL_LIBDIR=/usr/lib/mysql
19040 MYSQL_BINDIR=/usr/bin
19041 elif test -f /usr/include/mysql.h; then
19042 MYSQL_INCDIR=/usr/include
19043 if test -d /usr/lib64; then
19044 MYSQL_LIBDIR=/usr/lib64
19046 MYSQL_LIBDIR=/usr/lib
19048 MYSQL_BINDIR=/usr/bin
19049 elif test -f /usr/local/include/mysql/mysql.h; then
19050 MYSQL_INCDIR=/usr/local/include/mysql
19051 if test -d /usr/local/lib64/mysql; then
19052 MYSQL_LIBDIR=/usr/local/lib64/mysql
19054 MYSQL_LIBDIR=/usr/local/lib/mysql
19056 MYSQL_BINDIR=/usr/local/bin
19057 elif test -f /usr/local/include/mysql.h; then
19058 MYSQL_INCDIR=/usr/local/include
19059 if test -d /usr/local/lib64; then
19060 MYSQL_LIBDIR=/usr/local/lib64
19062 MYSQL_LIBDIR=/usr/local/lib
19064 MYSQL_BINDIR=/usr/local/bin
19066 { echo "$as_me:$LINENO: result: no" >&5
19067 echo "${ECHO_T}no" >&6; }
19068 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19069 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19070 { (exit 1); exit 1; }; }
19073 if test -f $withval/include/mysql/mysql.h; then
19074 MYSQL_INCDIR=$withval/include/mysql
19075 if test -d $withval/lib64/mysql; then
19076 MYSQL_LIBDIR=$withval/lib64/mysql
19078 MYSQL_LIBDIR=$withval/lib/mysql
19080 MYSQL_BINDIR=$withval/bin
19081 elif test -f $withval/include/mysql.h; then
19082 MYSQL_INCDIR=$withval/include
19083 if test -d $withval/lib64; then
19084 MYSQL_LIBDIR=$withval/lib64
19086 MYSQL_LIBDIR=$withval/lib
19088 MYSQL_BINDIR=$withval/bin
19090 { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19092 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19093 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19094 { (exit 1); exit 1; }; }
19097 SQL_INCLUDE=-I$MYSQL_INCDIR
19098 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19099 SQL_BINDIR=$MYSQL_BINDIR
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_MYSQL 1
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_EMBEDDED_MYSQL 1
19109 { echo "$as_me:$LINENO: result: yes" >&5
19110 echo "${ECHO_T}yes" >&6; }
19117 { echo "$as_me:$LINENO: result: no" >&5
19118 echo "${ECHO_T}no" >&6; }
19134 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19135 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19137 # Check whether --with-sqlite3 was given.
19138 if test "${with_sqlite3+set}" = set; then
19139 withval=$with_sqlite3;
19140 if test "$withval" != "no"; then
19141 if test "$withval" = "yes"; then
19142 if test -f /usr/local/include/sqlite3.h; then
19143 SQLITE_INCDIR=/usr/local/include
19144 if test -d /usr/local/lib64; then
19145 SQLITE_LIBDIR=/usr/local/lib64
19147 SQLITE_LIBDIR=/usr/local/lib
19149 SQLITE_BINDIR=/usr/local/bin
19150 elif test -f /usr/include/sqlite3.h; then
19151 SQLITE_INCDIR=/usr/include
19152 if test -d /usr/lib64; then
19153 SQLITE_LIBDIR=/usr/lib64
19155 SQLITE_LIBDIR=/usr/lib
19157 SQLITE_BINDIR=/usr/bin
19158 elif test -f $prefix/include/sqlite3.h; then
19159 SQLITE_INCDIR=$prefix/include
19160 if test -d $prefix/lib64; then
19161 SQLITE_LIBDIR=$prefix/lib64
19163 SQLITE_LIBDIR=$prefix/lib
19165 SQLITE_BINDIR=$prefix/bin
19167 { echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6; }
19169 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19170 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19171 { (exit 1); exit 1; }; }
19174 if test -f $withval/sqlite3.h; then
19175 SQLITE_INCDIR=$withval
19176 SQLITE_LIBDIR=$withval
19177 SQLITE_BINDIR=$withval
19178 elif test -f $withval/include/sqlite3.h; then
19179 SQLITE_INCDIR=$withval/include
19180 if test -d $withval/lib64; then
19181 SQLITE_LIBDIR=$withval/lib64
19183 SQLITE_LIBDIR=$withval/lib
19185 SQLITE_BINDIR=$withval/bin
19187 { echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6; }
19189 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19190 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19191 { (exit 1); exit 1; }; }
19194 SQL_INCLUDE=-I$SQLITE_INCDIR
19195 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19196 SQL_BINDIR=$SQLITE_BINDIR
19198 cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_SQLITE3 1
19202 { echo "$as_me:$LINENO: result: yes" >&5
19203 echo "${ECHO_T}yes" >&6; }
19205 support_sqlite3=yes
19210 { echo "$as_me:$LINENO: result: no" >&5
19211 echo "${ECHO_T}no" >&6; }
19216 { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19229 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19230 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19232 # Check whether --with-sqlite was given.
19233 if test "${with_sqlite+set}" = set; then
19234 withval=$with_sqlite;
19235 if test "$withval" != "no"; then
19236 if test "$withval" = "yes"; then
19237 if test -f /usr/local/include/sqlite.h; then
19238 SQLITE_INCDIR=/usr/local/include
19239 if test -d /usr/local/lib64; then
19240 SQLITE_LIBDIR=/usr/local/lib64
19242 SQLITE_LIBDIR=/usr/local/lib
19244 SQLITE_BINDIR=/usr/local/bin
19245 elif test -f /usr/include/sqlite.h; then
19246 SQLITE_INCDIR=/usr/include
19247 if test -d /usr/lib64; then
19248 SQLITE_LIBDIR=/usr/lib64
19250 SQLITE_LIBDIR=/usr/lib
19252 SQLITE_BINDIR=/usr/bin
19253 elif test -f $prefix/include/sqlite.h; then
19254 SQLITE_INCDIR=$prefix/include
19255 if test -d $prefix/lib64; then
19256 SQLITE_LIBDIR=$prefix/lib64
19258 SQLITE_LIBDIR=$prefix/lib
19260 SQLITE_BINDIR=$prefix/bin
19262 { echo "$as_me:$LINENO: result: no" >&5
19263 echo "${ECHO_T}no" >&6; }
19264 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19265 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19266 { (exit 1); exit 1; }; }
19269 if test -f $withval/sqlite.h; then
19270 SQLITE_INCDIR=$withval
19271 SQLITE_LIBDIR=$withval
19272 SQLITE_BINDIR=$withval
19273 elif test -f $withval/include/sqlite.h; then
19274 SQLITE_INCDIR=$withval/include
19275 if test -d $withval/lib64; then
19276 SQLITE_LIBDIR=$withval/lib64
19278 SQLITE_LIBDIR=$withval/lib
19280 SQLITE_BINDIR=$withval/bin
19282 { echo "$as_me:$LINENO: result: no" >&5
19283 echo "${ECHO_T}no" >&6; }
19284 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19285 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19286 { (exit 1); exit 1; }; }
19289 SQL_INCLUDE=-I$SQLITE_INCDIR
19290 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19291 SQL_BINDIR=$SQLITE_BINDIR
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE_SQLITE 1
19297 { echo "$as_me:$LINENO: result: yes" >&5
19298 echo "${ECHO_T}yes" >&6; }
19305 { echo "$as_me:$LINENO: result: no" >&5
19306 echo "${ECHO_T}no" >&6; }
19311 { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19325 cat >>confdefs.h <<\_ACEOF
19326 #define PROTOTYPES 1
19330 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19331 if test -z "$CCOPTS"; then
19332 CCOPTS='-g -O2 -Wall'
19340 largefile_support="no"
19342 # Check whether --enable-largefile was given.
19343 if test "${enable_largefile+set}" = set; then
19344 enableval=$enable_largefile;
19347 if test "$enable_largefile" != no; then
19348 if test -n "$ac_tool_prefix"; then
19349 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19350 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19353 if test "${ac_cv_prog_GETCONF+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 if test -n "$GETCONF"; then
19357 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 for as_dir in $PATH
19363 test -z "$as_dir" && as_dir=.
19364 for ac_exec_ext in '' $ac_executable_extensions; do
19365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19366 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19376 GETCONF=$ac_cv_prog_GETCONF
19377 if test -n "$GETCONF"; then
19378 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19379 echo "${ECHO_T}$GETCONF" >&6; }
19381 { echo "$as_me:$LINENO: result: no" >&5
19382 echo "${ECHO_T}no" >&6; }
19387 if test -z "$ac_cv_prog_GETCONF"; then
19388 ac_ct_GETCONF=$GETCONF
19389 # Extract the first word of "getconf", so it can be a program name with args.
19390 set dummy getconf; ac_word=$2
19391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19393 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 if test -n "$ac_ct_GETCONF"; then
19397 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400 for as_dir in $PATH
19403 test -z "$as_dir" && as_dir=.
19404 for ac_exec_ext in '' $ac_executable_extensions; do
19405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19406 ac_cv_prog_ac_ct_GETCONF="getconf"
19407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19416 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19417 if test -n "$ac_ct_GETCONF"; then
19418 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19419 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19421 { echo "$as_me:$LINENO: result: no" >&5
19422 echo "${ECHO_T}no" >&6; }
19425 if test "x$ac_ct_GETCONF" = x; then
19428 case $cross_compiling:$ac_tool_warned in
19430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19431 whose name does not start with the host triplet. If you think this
19432 configuration is useful to you, please write to autoconf@gnu.org." >&5
19433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19434 whose name does not start with the host triplet. If you think this
19435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19436 ac_tool_warned=yes ;;
19438 GETCONF=$ac_ct_GETCONF
19441 GETCONF="$ac_cv_prog_GETCONF"
19444 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19445 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19446 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19450 ac_cv_sys_largefile_CFLAGS=no
19452 # IRIX 6.2 and later require cc -n32.
19453 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19454 if test "$GCC" != yes; then
19455 ac_cv_sys_largefile_CFLAGS=-n32
19458 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489 { (case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_try") 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest$ac_exeext'
19499 { (case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_try") 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_cv_sys_largefile_CFLAGS=no
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19522 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19523 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19524 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19525 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19526 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19530 ac_cv_sys_largefile_LDFLAGS=no
19534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19535 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19536 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19537 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19538 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19542 ac_cv_sys_largefile_LIBS=no
19546 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19547 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19549 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19552 -D_FILE_OFFSET_BITS=*) ;;
19553 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19554 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19559 case "$CPPFLAGS" in
19560 '') CPPFLAGS="$ac_flag" ;;
19561 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19569 '') CFLAGS="$ac_flag" ;;
19570 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19575 case "$ac_cv_sys_largefile_LDFLAGS" in
19579 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19580 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19583 case "$ac_cv_sys_largefile_LIBS" in
19587 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19588 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19591 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19592 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19593 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 ac_cv_sys_file_offset_bits=no
19597 ac_cv_sys_file_offset_bits=64
19598 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19600 -D_FILE_OFFSET_BITS)
19601 ac_cv_sys_file_offset_bits=1 ;;
19602 -D_FILE_OFFSET_BITS=*)
19603 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19608 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19609 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19610 if test "$ac_cv_sys_file_offset_bits" != no; then
19612 cat >>confdefs.h <<_ACEOF
19613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19617 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19618 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19619 if test "${ac_cv_sys_largefile_source+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_cv_sys_largefile_source=no
19623 ac_cv_sys_largefile_source=1
19624 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19626 -D_LARGEFILE_SOURCE)
19627 ac_cv_sys_largefile_source=1 ;;
19628 -D_LARGEFILE_SOURCE=*)
19629 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19635 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19636 if test "$ac_cv_sys_largefile_source" != no; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19643 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19644 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19645 if test "${ac_cv_sys_large_files+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 ac_cv_sys_large_files=no
19649 ac_cv_sys_large_files=1
19650 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19653 ac_cv_sys_large_files=1 ;;
19655 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19660 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19661 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19662 if test "$ac_cv_sys_large_files" != no; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define _LARGE_FILES $ac_cv_sys_large_files
19673 { echo "$as_me:$LINENO: checking for X" >&5
19674 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19677 # Check whether --with-x was given.
19678 if test "${with_x+set}" = set; then
19682 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19683 if test "x$with_x" = xno; then
19684 # The user explicitly disabled X.
19687 case $x_includes,$x_libraries in #(
19688 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19689 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19690 { (exit 1); exit 1; }; };; #(
19691 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 # One or both of the vars are not set, and there is no cached value.
19695 ac_x_includes=no ac_x_libraries=no
19696 rm -f -r conftest.dir
19697 if mkdir conftest.dir; then
19699 cat >Imakefile <<'_ACEOF'
19701 @echo incroot='${INCROOT}'
19703 @echo usrlibdir='${USRLIBDIR}'
19705 @echo libdir='${LIBDIR}'
19707 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19708 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19709 for ac_var in incroot usrlibdir libdir; do
19710 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19712 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19713 for ac_extension in a so sl; do
19714 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19715 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19716 ac_im_usrlibdir=$ac_im_libdir; break
19719 # Screen out bogus values from the imake configuration. They are
19720 # bogus both because they are the default anyway, and because
19721 # using them would break gcc on systems where it needs fixed includes.
19722 case $ac_im_incroot in
19723 /usr/include) ac_x_includes= ;;
19724 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19726 case $ac_im_usrlibdir in
19727 /usr/lib | /lib) ;;
19728 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19732 rm -f -r conftest.dir
19735 # Standard set of common directories for X headers.
19736 # Check X11 before X11Rn because it is often a symlink to the current release.
19748 /usr/local/X11/include
19749 /usr/local/X11R6/include
19750 /usr/local/X11R5/include
19751 /usr/local/X11R4/include
19753 /usr/local/include/X11
19754 /usr/local/include/X11R6
19755 /usr/local/include/X11R5
19756 /usr/local/include/X11R4
19760 /usr/XFree86/include/X11
19764 /usr/unsupported/include
19765 /usr/athena/include
19766 /usr/local/x11r5/include
19767 /usr/lpp/Xamples/include
19769 /usr/openwin/include
19770 /usr/openwin/share/include'
19772 if test "$ac_x_includes" = no; then
19773 # Guess where to find include files, by looking for Xlib.h.
19774 # First, try using that file with no special directory specified.
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 #include <X11/Xlib.h>
19783 if { (ac_try="$ac_cpp conftest.$ac_ext"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } >/dev/null; then
19796 if test -s conftest.err; then
19797 ac_cpp_err=$ac_c_preproc_warn_flag
19798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19805 if test -z "$ac_cpp_err"; then
19806 # We can compile using X headers with no special include directory.
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 for ac_dir in $ac_x_header_dirs; do
19813 if test -r "$ac_dir/X11/Xlib.h"; then
19814 ac_x_includes=$ac_dir
19820 rm -f conftest.err conftest.$ac_ext
19821 fi # $ac_x_includes = no
19823 if test "$ac_x_libraries" = no; then
19824 # Check for the libraries.
19825 # See if we find them without any special options.
19826 # Don't add to $LIBS permanently.
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 #include <X11/Xlib.h>
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_link") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } &&
19858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest$ac_exeext'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19879 # We can link X programs with no special library path.
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19886 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19888 # Don't even attempt the hair of trying to link an X program!
19889 for ac_extension in a so sl; do
19890 if test -r "$ac_dir/libXt.$ac_extension"; then
19891 ac_x_libraries=$ac_dir
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 fi # $ac_x_libraries = no
19902 case $ac_x_includes,$ac_x_libraries in #(
19903 no,* | *,no | *\'*)
19904 # Didn't find X, or a directory has "'" in its name.
19905 ac_cv_have_x="have_x=no";; #(
19907 # Record where we found X for the cache.
19908 ac_cv_have_x="have_x=yes\
19909 ac_x_includes='$ac_x_includes'\
19910 ac_x_libraries='$ac_x_libraries'"
19916 eval "$ac_cv_have_x"
19919 if test "$have_x" != yes; then
19920 { echo "$as_me:$LINENO: result: $have_x" >&5
19921 echo "${ECHO_T}$have_x" >&6; }
19924 # If each of the values was on the command line, it overrides each guess.
19925 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19926 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19927 # Update the cache value to reflect the command line values.
19928 ac_cv_have_x="have_x=yes\
19929 ac_x_includes='$x_includes'\
19930 ac_x_libraries='$x_libraries'"
19931 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19932 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19935 if test "$no_x" = yes; then
19936 # Not all programs may use this symbol, but it does not hurt to define it.
19938 cat >>confdefs.h <<\_ACEOF
19939 #define X_DISPLAY_MISSING 1
19942 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19944 if test -n "$x_includes"; then
19945 X_CFLAGS="$X_CFLAGS -I$x_includes"
19948 # It would also be nice to do this for all -L options, not just this one.
19949 if test -n "$x_libraries"; then
19950 X_LIBS="$X_LIBS -L$x_libraries"
19951 # For Solaris; some versions of Sun CC require a space after -R and
19952 # others require no space. Words are not sufficient . . . .
19953 case `(uname -sr) 2>/dev/null` in
19955 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19956 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19957 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19973 rm -f conftest.$ac_objext conftest$ac_exeext
19974 if { (ac_try="$ac_link"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_link") 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest$ac_exeext'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20015 rm -f core conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
20017 if test $ac_R_nospace = yes; then
20018 { echo "$as_me:$LINENO: result: no" >&5
20019 echo "${ECHO_T}no" >&6; }
20020 X_LIBS="$X_LIBS -R$x_libraries"
20022 LIBS="$ac_xsave_LIBS -R $x_libraries"
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20038 rm -f conftest.$ac_objext conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_link") 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest$ac_exeext'
20063 { (case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_try") 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20080 rm -f core conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20082 if test $ac_R_space = yes; then
20083 { echo "$as_me:$LINENO: result: yes" >&5
20084 echo "${ECHO_T}yes" >&6; }
20085 X_LIBS="$X_LIBS -R $x_libraries"
20087 { echo "$as_me:$LINENO: result: neither works" >&5
20088 echo "${ECHO_T}neither works" >&6; }
20091 LIBS=$ac_xsave_LIBS
20095 # Check for system-dependent libraries X programs must link with.
20096 # Do this before checking for the system-independent R6 libraries
20097 # (-lICE), since we may need -lsocket or whatever for X linking.
20099 if test "$ISC" = yes; then
20100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20102 # Martyn Johnson says this is needed for Ultrix, if the X
20103 # libraries were built with DECnet support. And Karl Berry says
20104 # the Alpha needs dnet_stub (dnet does not exist).
20105 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20113 /* Override any GCC internal prototype to avoid an error.
20114 Use char because int might match the return type of a GCC
20115 builtin and then its argument prototype would still apply. */
20119 char XOpenDisplay ();
20123 return XOpenDisplay ();
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_link") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-ldnet $LIBS"
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20191 return dnet_ntoa ();
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211 { (case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_try") 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_lib_dnet_dnet_ntoa=yes
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ac_cv_lib_dnet_dnet_ntoa=no
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20242 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20243 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20244 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20248 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20249 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20250 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-ldnet_stub $LIBS"
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* Override any GCC internal prototype to avoid an error.
20264 Use char because int might match the return type of a GCC
20265 builtin and then its argument prototype would still apply. */
20273 return dnet_ntoa ();
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_link") 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest$ac_exeext'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_lib_dnet_stub_dnet_ntoa=no
20320 rm -f core conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20325 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20326 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20333 rm -f core conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
20335 LIBS="$ac_xsave_LIBS"
20337 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20338 # to get the SysV transport functions.
20339 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20341 # The nsl library prevents programs from opening the X display
20342 # on Irix 5.2, according to T.E. Dickey.
20343 # The functions gethostbyname, getservbyname, and inet_addr are
20344 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20345 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20346 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20347 if test "${ac_cv_func_gethostbyname+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20358 #define gethostbyname innocuous_gethostbyname
20360 /* System header to define __stub macros and hopefully few prototypes,
20361 which can conflict with char gethostbyname (); below.
20362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20363 <limits.h> exists even on freestanding compilers. */
20366 # include <limits.h>
20368 # include <assert.h>
20371 #undef gethostbyname
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20379 char gethostbyname ();
20380 /* The GNU C library defines this for functions which it implements
20381 to always fail with ENOSYS. Some functions are actually named
20382 something starting with __ and the normal name is an alias. */
20383 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20390 return gethostbyname ();
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410 { (case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_try") 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest$ac_exeext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_func_gethostbyname=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_cv_func_gethostbyname=no
20437 rm -f core conftest.err conftest.$ac_objext \
20438 conftest$ac_exeext conftest.$ac_ext
20440 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20441 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20443 if test $ac_cv_func_gethostbyname = no; then
20444 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20445 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_check_lib_save_LIBS=$LIBS
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20464 char gethostbyname ();
20468 return gethostbyname ();
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_lib_nsl_gethostbyname=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_lib_nsl_gethostbyname=no
20515 rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20520 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20521 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20525 if test $ac_cv_lib_nsl_gethostbyname = no; then
20526 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20527 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20528 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_check_lib_save_LIBS=$LIBS
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20546 char gethostbyname ();
20550 return gethostbyname ();
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 ac_cv_lib_bsd_gethostbyname=yes
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_cv_lib_bsd_gethostbyname=no
20597 rm -f core conftest.err conftest.$ac_objext \
20598 conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20601 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20602 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20603 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20611 # socket/setsockopt and other routines are undefined under SCO ODT
20612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20613 # on later versions), says Simon Leinen: it contains gethostby*
20614 # variants that don't use the name server (or something). -lsocket
20615 # must be given before -lnsl if both are needed. We assume that
20616 # if connect needs -lnsl, so does gethostbyname.
20617 { echo "$as_me:$LINENO: checking for connect" >&5
20618 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20619 if test "${ac_cv_func_connect+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20630 #define connect innocuous_connect
20632 /* System header to define __stub macros and hopefully few prototypes,
20633 which can conflict with char connect (); below.
20634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635 <limits.h> exists even on freestanding compilers. */
20638 # include <limits.h>
20640 # include <assert.h>
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20652 /* The GNU C library defines this for functions which it implements
20653 to always fail with ENOSYS. Some functions are actually named
20654 something starting with __ and the normal name is an alias. */
20655 #if defined __stub_connect || defined __stub___connect
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_link") 2>conftest.er1
20676 grep -v '^ *+' conftest.er1 >conftest.err
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_try") 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest$ac_exeext'
20692 { (case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_try") 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_func_connect=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_cv_func_connect=no
20709 rm -f core conftest.err conftest.$ac_objext \
20710 conftest$ac_exeext conftest.$ac_ext
20712 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20713 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20715 if test $ac_cv_func_connect = no; then
20716 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20717 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20718 if test "${ac_cv_lib_socket_connect+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 ac_check_lib_save_LIBS=$LIBS
20722 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20730 /* Override any GCC internal prototype to avoid an error.
20731 Use char because int might match the return type of a GCC
20732 builtin and then its argument prototype would still apply. */
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (ac_try="$ac_link"
20747 case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_link") 2>conftest.er1
20754 grep -v '^ *+' conftest.er1 >conftest.err
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } &&
20759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20760 { (case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_try") 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_try") 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_lib_socket_connect=yes
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_cv_lib_socket_connect=no
20787 rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS
20791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20792 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20793 if test $ac_cv_lib_socket_connect = yes; then
20794 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20799 # Guillermo Gomez says -lposix is necessary on A/UX.
20800 { echo "$as_me:$LINENO: checking for remove" >&5
20801 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20802 if test "${ac_cv_func_remove+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20811 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20813 #define remove innocuous_remove
20815 /* System header to define __stub macros and hopefully few prototypes,
20816 which can conflict with char remove (); below.
20817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20818 <limits.h> exists even on freestanding compilers. */
20821 # include <limits.h>
20823 # include <assert.h>
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20835 /* The GNU C library defines this for functions which it implements
20836 to always fail with ENOSYS. Some functions are actually named
20837 something starting with __ and the normal name is an alias. */
20838 #if defined __stub_remove || defined __stub___remove
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865 { (case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_try") 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest$ac_exeext'
20875 { (case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_try") 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_func_remove=yes
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_func_remove=no
20892 rm -f core conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20895 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20896 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20898 if test $ac_cv_func_remove = no; then
20899 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20900 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20901 if test "${ac_cv_lib_posix_remove+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 ac_check_lib_save_LIBS=$LIBS
20905 LIBS="-lposix $LIBS"
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20913 /* Override any GCC internal prototype to avoid an error.
20914 Use char because int might match the return type of a GCC
20915 builtin and then its argument prototype would still apply. */
20928 rm -f conftest.$ac_objext conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_link") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20943 { (case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_try") 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest$ac_exeext'
20953 { (case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_try") 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 ac_cv_lib_posix_remove=yes
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20967 ac_cv_lib_posix_remove=no
20970 rm -f core conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
20972 LIBS=$ac_check_lib_save_LIBS
20974 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20975 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20976 if test $ac_cv_lib_posix_remove = yes; then
20977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20982 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20983 { echo "$as_me:$LINENO: checking for shmat" >&5
20984 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20985 if test "${ac_cv_func_shmat+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20996 #define shmat innocuous_shmat
20998 /* System header to define __stub macros and hopefully few prototypes,
20999 which can conflict with char shmat (); below.
21000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21001 <limits.h> exists even on freestanding compilers. */
21004 # include <limits.h>
21006 # include <assert.h>
21011 /* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21018 /* The GNU C library defines this for functions which it implements
21019 to always fail with ENOSYS. Some functions are actually named
21020 something starting with __ and the normal name is an alias. */
21021 #if defined __stub_shmat || defined __stub___shmat
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21048 { (case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_try") 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest$ac_exeext'
21058 { (case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_try") 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_func_shmat=yes
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 ac_cv_func_shmat=no
21075 rm -f core conftest.err conftest.$ac_objext \
21076 conftest$ac_exeext conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21079 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21081 if test $ac_cv_func_shmat = no; then
21082 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21083 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21084 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 ac_check_lib_save_LIBS=$LIBS
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (ac_try="$ac_link"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_link") 2>conftest.er1
21120 grep -v '^ *+' conftest.er1 >conftest.err
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
21125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest$ac_exeext'
21136 { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; }; then
21145 ac_cv_lib_ipc_shmat=yes
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_lib_ipc_shmat=no
21153 rm -f core conftest.err conftest.$ac_objext \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21158 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21159 if test $ac_cv_lib_ipc_shmat = yes; then
21160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21166 # Check for libraries that X11R6 Xt/Xaw programs need.
21167 ac_save_LDFLAGS=$LDFLAGS
21168 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21169 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21170 # check for ICE first), but we must link in the order -lSM -lICE or
21171 # we get undefined symbols. So assume we have SM if we have ICE.
21172 # These have to be linked with before -lX11, unlike the other
21173 # libraries we check for below, so use a different variable.
21174 # John Interrante, Karl Berry
21175 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21176 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21177 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_check_lib_save_LIBS=$LIBS
21181 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 /* Override any GCC internal prototype to avoid an error.
21190 Use char because int might match the return type of a GCC
21191 builtin and then its argument prototype would still apply. */
21195 char IceConnectionNumber ();
21199 return IceConnectionNumber ();
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (ac_try="$ac_link"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_link") 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21219 { (case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_try") 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest$ac_exeext'
21229 { (case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_lib_ICE_IceConnectionNumber=yes
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ac_cv_lib_ICE_IceConnectionNumber=no
21246 rm -f core conftest.err conftest.$ac_objext \
21247 conftest$ac_exeext conftest.$ac_ext
21248 LIBS=$ac_check_lib_save_LIBS
21250 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21251 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21252 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21253 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21256 LDFLAGS=$ac_save_LDFLAGS
21318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_res=`eval echo '${'$as_ac_Header'}'`
21326 { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21329 # Is the header compilable?
21330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21332 cat >conftest.$ac_ext <<_ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 $ac_includes_default
21339 #include <$ac_header>
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21356 { (case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_try") 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } &&
21365 { ac_try='test -s conftest.$ac_objext'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_header_compiler=yes
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_header_compiler=no
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21385 echo "${ECHO_T}$ac_header_compiler" >&6; }
21387 # Is the header present?
21388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21390 cat >conftest.$ac_ext <<_ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 #include <$ac_header>
21398 if { (ac_try="$ac_cpp conftest.$ac_ext"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } >/dev/null; then
21411 if test -s conftest.err; then
21412 ac_cpp_err=$ac_c_preproc_warn_flag
21413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21420 if test -z "$ac_cpp_err"; then
21421 ac_header_preproc=yes
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_header_preproc=no
21429 rm -f conftest.err conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21431 echo "${ECHO_T}$ac_header_preproc" >&6; }
21433 # So? What about this header?
21434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21440 ac_header_preproc=yes
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 eval "$as_ac_Header=\$ac_header_preproc"
21465 ac_res=`eval echo '${'$as_ac_Header'}'`
21466 { echo "$as_me:$LINENO: result: $ac_res" >&5
21467 echo "${ECHO_T}$ac_res" >&6; }
21470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21471 cat >>confdefs.h <<_ACEOF
21472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21479 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21481 if test "${ac_cv_header_stdc+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 #include <stdlib.h>
21491 #include <stdarg.h>
21492 #include <string.h>
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_compile") 2>conftest.er1
21512 grep -v '^ *+' conftest.er1 >conftest.err
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
21517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21518 { (case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_try") 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest.$ac_objext'
21528 { (case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_try") 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21537 ac_cv_header_stdc=yes
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ac_cv_header_stdc=no
21545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 if test $ac_cv_header_stdc = yes; then
21548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 #include <string.h>
21558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21559 $EGREP "memchr" >/dev/null 2>&1; then
21562 ac_cv_header_stdc=no
21568 if test $ac_cv_header_stdc = yes; then
21569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21570 cat >conftest.$ac_ext <<_ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h. */
21576 #include <stdlib.h>
21579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21580 $EGREP "free" >/dev/null 2>&1; then
21583 ac_cv_header_stdc=no
21589 if test $ac_cv_header_stdc = yes; then
21590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21591 if test "$cross_compiling" = yes; then
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 #include <stdlib.h>
21602 #if ((' ' & 0x0FF) == 0x020)
21603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21606 # define ISLOWER(c) \
21607 (('a' <= (c) && (c) <= 'i') \
21608 || ('j' <= (c) && (c) <= 'r') \
21609 || ('s' <= (c) && (c) <= 'z'))
21610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21618 for (i = 0; i < 256; i++)
21619 if (XOR (islower (i), ISLOWER (i))
21620 || toupper (i) != TOUPPER (i))
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_link") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21647 echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ( exit $ac_status )
21652 ac_cv_header_stdc=no
21654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21661 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21662 if test $ac_cv_header_stdc = yes; then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define STDC_HEADERS 1
21670 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21671 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21672 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 #include <sys/types.h>
21685 return makedev(0, 0);
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (ac_try="$ac_link"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_link") 2>conftest.er1
21699 grep -v '^ *+' conftest.er1 >conftest.err
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
21704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21705 { (case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_try") 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest$ac_exeext'
21715 { (case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_try") 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_cv_header_sys_types_h_makedev=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ac_cv_header_sys_types_h_makedev=no
21732 rm -f core conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21737 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21739 if test $ac_cv_header_sys_types_h_makedev = no; then
21740 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21741 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21742 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21743 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21746 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21747 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21749 # Is the header compilable?
21750 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21751 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 $ac_includes_default
21759 #include <sys/mkdev.h>
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21776 { (case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_try") 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
21786 { (case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_try") 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_header_compiler=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_header_compiler=no
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21805 echo "${ECHO_T}$ac_header_compiler" >&6; }
21807 # Is the header present?
21808 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21809 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21810 cat >conftest.$ac_ext <<_ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 #include <sys/mkdev.h>
21818 if { (ac_try="$ac_cpp conftest.$ac_ext"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } >/dev/null; then
21831 if test -s conftest.err; then
21832 ac_cpp_err=$ac_c_preproc_warn_flag
21833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21840 if test -z "$ac_cpp_err"; then
21841 ac_header_preproc=yes
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_preproc=no
21849 rm -f conftest.err conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21851 echo "${ECHO_T}$ac_header_preproc" >&6; }
21853 # So? What about this header?
21854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21856 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21857 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21858 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21859 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21860 ac_header_preproc=yes
21863 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21864 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
21866 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21868 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
21870 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21872 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21874 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21878 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 ac_cv_header_sys_mkdev_h=$ac_header_preproc
21885 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21886 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21889 if test $ac_cv_header_sys_mkdev_h = yes; then
21891 cat >>confdefs.h <<\_ACEOF
21892 #define MAJOR_IN_MKDEV 1
21899 if test $ac_cv_header_sys_mkdev_h = no; then
21900 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21901 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21907 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21909 # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21911 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 #include <sys/sysmacros.h>
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
21935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21936 { (case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_try") 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } &&
21945 { ac_try='test -s conftest.$ac_objext'
21946 { (case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_try") 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_header_compiler=yes
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ac_header_compiler=no
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
21969 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 #include <sys/sysmacros.h>
21978 if { (ac_try="$ac_cpp conftest.$ac_ext"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } >/dev/null; then
21991 if test -s conftest.err; then
21992 ac_cpp_err=$ac_c_preproc_warn_flag
21993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22000 if test -z "$ac_cpp_err"; then
22001 ac_header_preproc=yes
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_header_preproc=no
22009 rm -f conftest.err conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6; }
22013 # So? What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22016 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22020 ac_header_preproc=yes
22023 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22038 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22039 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22040 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22045 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22046 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22049 if test $ac_cv_header_sys_sysmacros_h = yes; then
22051 cat >>confdefs.h <<\_ACEOF
22052 #define MAJOR_IN_SYSMACROS 1
22066 ac_header_dirent=no
22067 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22068 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22069 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22070 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080 #include <sys/types.h>
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_compile") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22107 { (case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_try") 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
22117 { (case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122 (eval "$ac_try") 2>&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 eval "$as_ac_Header=yes"
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 eval "$as_ac_Header=no"
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 ac_res=`eval echo '${'$as_ac_Header'}'`
22137 { echo "$as_me:$LINENO: result: $ac_res" >&5
22138 echo "${ECHO_T}$ac_res" >&6; }
22139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22140 cat >>confdefs.h <<_ACEOF
22141 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22144 ac_header_dirent=$ac_hdr; break
22148 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22149 if test $ac_header_dirent = dirent.h; then
22150 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22151 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22152 if test "${ac_cv_search_opendir+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 ac_func_search_save_LIBS=$LIBS
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22163 /* Override any GCC internal prototype to avoid an error.
22164 Use char because int might match the return type of a GCC
22165 builtin and then its argument prototype would still apply. */
22178 for ac_lib in '' dir; do
22179 if test -z "$ac_lib"; then
22180 ac_res="none required"
22183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_link") 2>conftest.er1
22194 grep -v '^ *+' conftest.er1 >conftest.err
22196 cat conftest.err >&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } &&
22199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22200 { (case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_try") 2>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try='test -s conftest$ac_exeext'
22210 { (case "(($ac_try" in
22211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212 *) ac_try_echo=$ac_try;;
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215 (eval "$ac_try") 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 ac_cv_search_opendir=$ac_res
22221 echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22227 rm -f core conftest.err conftest.$ac_objext \
22229 if test "${ac_cv_search_opendir+set}" = set; then
22233 if test "${ac_cv_search_opendir+set}" = set; then
22236 ac_cv_search_opendir=no
22238 rm conftest.$ac_ext
22239 LIBS=$ac_func_search_save_LIBS
22241 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22242 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22243 ac_res=$ac_cv_search_opendir
22244 if test "$ac_res" != no; then
22245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
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 '' x; 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"
22351 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22352 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22353 if test "${ac_cv_header_stat_broken+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 #include <sys/types.h>
22363 #include <sys/stat.h>
22365 #if defined S_ISBLK && defined S_IFDIR
22366 # if S_ISBLK (S_IFDIR)
22371 #if defined S_ISBLK && defined S_IFCHR
22372 # if S_ISBLK (S_IFCHR)
22377 #if defined S_ISLNK && defined S_IFREG
22378 # if S_ISLNK (S_IFREG)
22383 #if defined S_ISSOCK && defined S_IFREG
22384 # if S_ISSOCK (S_IFREG)
22390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22391 $EGREP "You lose" >/dev/null 2>&1; then
22392 ac_cv_header_stat_broken=yes
22394 ac_cv_header_stat_broken=no
22399 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22400 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22401 if test $ac_cv_header_stat_broken = yes; then
22403 cat >>confdefs.h <<\_ACEOF
22404 #define STAT_MACROS_BROKEN 1
22409 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22410 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22411 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 #include <sys/types.h>
22421 #include <sys/wait.h>
22422 #ifndef WEXITSTATUS
22423 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22426 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22434 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22439 rm -f conftest.$ac_objext
22440 if { (ac_try="$ac_compile"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_compile") 2>conftest.er1
22448 grep -v '^ *+' conftest.er1 >conftest.err
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } &&
22453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; } &&
22463 { ac_try='test -s conftest.$ac_objext'
22464 { (case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_try") 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 ac_cv_header_sys_wait_h=yes
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_cv_header_sys_wait_h=no
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22484 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22485 if test $ac_cv_header_sys_wait_h = yes; then
22487 cat >>confdefs.h <<\_ACEOF
22488 #define HAVE_SYS_WAIT_H 1
22493 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22495 if test "${ac_cv_header_time+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 cat >conftest.$ac_ext <<_ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 #include <sys/types.h>
22505 #include <sys/time.h>
22511 if ((struct tm *) 0)
22517 rm -f conftest.$ac_objext
22518 if { (ac_try="$ac_compile"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_compile") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22532 { (case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_try") 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; } &&
22541 { ac_try='test -s conftest.$ac_objext'
22542 { (case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_try") 2>&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; }; then
22551 ac_cv_header_time=yes
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_cv_header_time=no
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22562 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22563 if test $ac_cv_header_time = yes; then
22565 cat >>confdefs.h <<\_ACEOF
22566 #define TIME_WITH_SYS_TIME 1
22571 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22572 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22573 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 $ac_includes_default
22586 static struct stat ac_aggr;
22587 if (ac_aggr.st_blksize)
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_compile") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22608 { (case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_try") 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest.$ac_objext'
22618 { (case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_try") 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_member_struct_stat_st_blksize=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 $ac_includes_default
22642 static struct stat ac_aggr;
22643 if (sizeof ac_aggr.st_blksize)
22649 rm -f conftest.$ac_objext
22650 if { (ac_try="$ac_compile"
22651 case "(($ac_try" in
22652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22653 *) ac_try_echo=$ac_try;;
22655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22656 (eval "$ac_compile") 2>conftest.er1
22658 grep -v '^ *+' conftest.er1 >conftest.err
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } &&
22663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22664 { (case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_try") 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; } &&
22673 { ac_try='test -s conftest.$ac_objext'
22674 { (case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_try") 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; }; then
22683 ac_cv_member_struct_stat_st_blksize=yes
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ac_cv_member_struct_stat_st_blksize=no
22691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22697 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22698 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22700 cat >>confdefs.h <<_ACEOF
22701 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_ST_BLKSIZE 1
22712 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22713 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22714 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 $ac_includes_default
22727 static struct stat ac_aggr;
22728 if (ac_aggr.st_blocks)
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } &&
22748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22749 { (case "(($ac_try" in
22750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751 *) ac_try_echo=$ac_try;;
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754 (eval "$ac_try") 2>&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; } &&
22758 { ac_try='test -s conftest.$ac_objext'
22759 { (case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_try") 2>&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 ac_cv_member_struct_stat_st_blocks=yes
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 $ac_includes_default
22783 static struct stat ac_aggr;
22784 if (sizeof ac_aggr.st_blocks)
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_compile") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } &&
22804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22805 { (case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_try") 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest.$ac_objext'
22815 { (case "(($ac_try" in
22816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817 *) ac_try_echo=$ac_try;;
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820 (eval "$ac_try") 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 ac_cv_member_struct_stat_st_blocks=yes
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 ac_cv_member_struct_stat_st_blocks=no
22832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22838 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22839 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22841 cat >>confdefs.h <<_ACEOF
22842 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_ST_BLOCKS 1
22851 case " $LIBOBJS " in
22852 *" fileblocks.$ac_objext "* ) ;;
22853 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22860 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22861 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22862 if test "${ac_cv_struct_tm+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 #include <sys/types.h>
22877 struct tm *tp; tp->tm_sec;
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22891 grep -v '^ *+' conftest.er1 >conftest.err
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22897 { (case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_try") 2>&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest.$ac_objext'
22907 { (case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_try") 2>&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 ac_cv_struct_tm=time.h
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_cv_struct_tm=sys/time.h
22924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22927 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22928 if test $ac_cv_struct_tm = sys/time.h; then
22930 cat >>confdefs.h <<\_ACEOF
22931 #define TM_IN_SYS_TIME 1
22936 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22937 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22938 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 #include <sys/types.h>
22948 #include <$ac_cv_struct_tm>
22954 static struct tm ac_aggr;
22955 if (ac_aggr.tm_zone)
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22970 grep -v '^ *+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } &&
22975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22976 { (case "(($ac_try" in
22977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981 (eval "$ac_try") 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest.$ac_objext'
22986 { (case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_try") 2>&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; }; then
22995 ac_cv_member_struct_tm_tm_zone=yes
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 #include <sys/types.h>
23007 #include <$ac_cv_struct_tm>
23013 static struct tm ac_aggr;
23014 if (sizeof ac_aggr.tm_zone)
23020 rm -f conftest.$ac_objext
23021 if { (ac_try="$ac_compile"
23022 case "(($ac_try" in
23023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024 *) ac_try_echo=$ac_try;;
23026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23027 (eval "$ac_compile") 2>conftest.er1
23029 grep -v '^ *+' conftest.er1 >conftest.err
23031 cat conftest.err >&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } &&
23034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23035 { (case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_try") 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; } &&
23044 { ac_try='test -s conftest.$ac_objext'
23045 { (case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_try") 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 ac_cv_member_struct_tm_tm_zone=yes
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23059 ac_cv_member_struct_tm_tm_zone=no
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23068 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23069 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_STRUCT_TM_TM_ZONE 1
23078 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_TM_ZONE 1
23085 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23086 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23087 if test "${ac_cv_have_decl_tzname+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23102 char *p = (char *) tzname;
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } &&
23124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125 { (case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_try") 2>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23144 ac_cv_have_decl_tzname=yes
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_have_decl_tzname=no
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23155 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23156 if test $ac_cv_have_decl_tzname = yes; then
23158 cat >>confdefs.h <<_ACEOF
23159 #define HAVE_DECL_TZNAME 1
23164 cat >>confdefs.h <<_ACEOF
23165 #define HAVE_DECL_TZNAME 0
23172 { echo "$as_me:$LINENO: checking for tzname" >&5
23173 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23174 if test "${ac_cv_var_tzname+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23184 #if !HAVE_DECL_TZNAME
23185 extern char *tzname[];
23191 return tzname[0][0];
23196 rm -f conftest.$ac_objext conftest$ac_exeext
23197 if { (ac_try="$ac_link"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_link") 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } &&
23210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_try") 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; } &&
23220 { ac_try='test -s conftest$ac_exeext'
23221 { (case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_try") 2>&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 ac_cv_var_tzname=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ac_cv_var_tzname=no
23238 rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23241 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23242 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23243 if test $ac_cv_var_tzname = yes; then
23245 cat >>confdefs.h <<\_ACEOF
23246 #define HAVE_TZNAME 1
23253 { echo "$as_me:$LINENO: checking for utime.h" >&5
23254 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23255 if test "${ba_cv_header_utime_h+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23265 #include <sys/types.h>
23275 rm -f conftest.$ac_objext
23276 if { (ac_try="$ac_compile"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23290 { (case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295 (eval "$ac_try") 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_try") 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 ba_cv_header_utime_h=yes
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 ba_cv_header_utime_h=no
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23319 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23320 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23321 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_UTIME_H 1
23326 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23327 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23328 if test "${ba_cv_header_socklen_t+set}" = set; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23338 #include <sys/types.h>
23339 #include <sys/socket.h>
23348 rm -f conftest.$ac_objext
23349 if { (ac_try="$ac_compile"
23350 case "(($ac_try" in
23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352 *) ac_try_echo=$ac_try;;
23354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1 >conftest.err
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); } &&
23362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; } &&
23372 { ac_try='test -s conftest.$ac_objext'
23373 { (case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_try") 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 ba_cv_header_socklen_t=yes
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ba_cv_header_socklen_t=no
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23393 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23394 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_SOCKLEN_T 1
23399 { echo "$as_me:$LINENO: checking for bigendian" >&5
23400 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23401 if test "${ba_cv_bigendian+set}" = set; then
23402 echo $ECHO_N "(cached) $ECHO_C" >&6
23404 if test "$cross_compiling" = yes; then
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23415 rm -f conftest$ac_exeext
23416 if { (ac_try="$ac_link"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_link") 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23426 { (case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_try") 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 ba_cv_bigendian=yes
23437 echo "$as_me: program exited with status $ac_status" >&5
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441 ( exit $ac_status )
23444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23450 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23451 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_BIGENDIAN 1
23457 ac_cpp='$CXXCPP $CPPFLAGS'
23458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23463 { echo "$as_me:$LINENO: checking for typeof" >&5
23464 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23465 if test "${ba_cv_have_typeof+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 if test "$cross_compiling" = yes; then
23469 ba_cv_have_typeof=no
23471 cat >conftest.$ac_ext <<_ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23477 main(){char *a = 0; a = (typeof a)a;}
23479 rm -f conftest$ac_exeext
23480 if { (ac_try="$ac_link"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_link") 2>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23490 { (case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_try") 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23499 ba_cv_have_typeof=yes
23501 echo "$as_me: program exited with status $ac_status" >&5
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ( exit $ac_status )
23506 ba_cv_have_typeof=no
23508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23513 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23514 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23515 test $ba_cv_have_typeof = yes &&
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_TYPEOF 1
23521 ac_cpp='$CPP $CPPFLAGS'
23522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23527 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23529 if test "${ac_cv_c_const+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23542 /* FIXME: Include the comments suggested by Paul. */
23543 #ifndef __cplusplus
23544 /* Ultrix mips cc rejects this. */
23545 typedef int charset[2];
23547 /* SunOS 4.1.1 cc rejects this. */
23548 char const *const *ccp;
23550 /* NEC SVR4.0.2 mips cc rejects this. */
23551 struct point {int x, y;};
23552 static struct point const zero = {0,0};
23553 /* AIX XL C 1.02.0.0 rejects this.
23554 It does not let you subtract one const X* pointer from another in
23555 an arm of an if-expression whose if-part is not a constant
23557 const char *g = "string";
23558 ccp = &g + (g ? g-g : 0);
23559 /* HPUX 7.0 cc rejects these. */
23562 ccp = (char const *const *) p;
23563 { /* SCO 3.2v4 cc rejects this. */
23565 char const *s = 0 ? (char *) 0 : (char const *) 0;
23570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23571 int x[] = {25, 17};
23572 const int *foo = &x[0];
23575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23576 typedef const int *iptr;
23580 { /* AIX XL C 1.02.0.0 rejects this saying
23581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23582 struct s { int j; const int *ap[3]; };
23583 struct s *b; b->j = 5;
23585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23586 const int foo = 10;
23587 if (!foo) return 0;
23589 return !x[0] && !zero.x;
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_compile") 2>conftest.er1
23605 grep -v '^ *+' conftest.er1 >conftest.err
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
23610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23611 { (case "(($ac_try" in
23612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613 *) ac_try_echo=$ac_try;;
23615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23616 (eval "$ac_try") 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest.$ac_objext'
23621 { (case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_try") 2>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; }; then
23632 echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23641 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23642 if test $ac_cv_c_const = no; then
23644 cat >>confdefs.h <<\_ACEOF
23652 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23653 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23655 # The order of these tests is important.
23656 cat >conftest.$ac_ext <<_ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 #include <sys/statvfs.h>
23663 #include <sys/fstyp.h>
23665 if { (ac_try="$ac_cpp conftest.$ac_ext"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23673 grep -v '^ *+' conftest.er1 >conftest.err
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } >/dev/null; then
23678 if test -s conftest.err; then
23679 ac_cpp_err=$ac_c_preproc_warn_flag
23680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23687 if test -z "$ac_cpp_err"; then
23688 cat >>confdefs.h <<\_ACEOF
23689 #define FSTYPE_STATVFS 1
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23699 rm -f conftest.err conftest.$ac_ext
23700 if test $fstype = no; then
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 #include <sys/statfs.h>
23708 #include <sys/fstyp.h>
23710 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } >/dev/null; then
23723 if test -s conftest.err; then
23724 ac_cpp_err=$ac_c_preproc_warn_flag
23725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23732 if test -z "$ac_cpp_err"; then
23733 cat >>confdefs.h <<\_ACEOF
23734 #define FSTYPE_USG_STATFS 1
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23744 rm -f conftest.err conftest.$ac_ext
23746 if test $fstype = no; then
23747 cat >conftest.$ac_ext <<_ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 #include <sys/statfs.h>
23754 #include <sys/vmount.h>
23756 if { (ac_try="$ac_cpp conftest.$ac_ext"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } >/dev/null; then
23769 if test -s conftest.err; then
23770 ac_cpp_err=$ac_c_preproc_warn_flag
23771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23778 if test -z "$ac_cpp_err"; then
23779 cat >>confdefs.h <<\_ACEOF
23780 #define FSTYPE_AIX_STATFS 1
23784 echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23790 rm -f conftest.err conftest.$ac_ext
23792 if test $fstype = no; then
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23799 #include <mntent.h>
23801 if { (ac_try="$ac_cpp conftest.$ac_ext"
23802 case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } >/dev/null; then
23814 if test -s conftest.err; then
23815 ac_cpp_err=$ac_c_preproc_warn_flag
23816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23823 if test -z "$ac_cpp_err"; then
23824 cat >>confdefs.h <<\_ACEOF
23825 #define FSTYPE_MNTENT 1
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23835 rm -f conftest.err conftest.$ac_ext
23837 if test $fstype = no; then
23838 cat >conftest.$ac_ext <<_ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23844 #include <sys/mount.h>
23847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23848 $EGREP "f_type;" >/dev/null 2>&1; then
23849 cat >>confdefs.h <<\_ACEOF
23850 #define FSTYPE_STATFS 1
23857 if test $fstype = no; then
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 #include <sys/mount.h>
23865 #include <sys/fs_types.h>
23867 if { (ac_try="$ac_cpp conftest.$ac_ext"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23875 grep -v '^ *+' conftest.er1 >conftest.err
23877 cat conftest.err >&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } >/dev/null; then
23880 if test -s conftest.err; then
23881 ac_cpp_err=$ac_c_preproc_warn_flag
23882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23889 if test -z "$ac_cpp_err"; then
23890 cat >>confdefs.h <<\_ACEOF
23891 #define FSTYPE_GETMNT 1
23895 echo "$as_me: failed program was:" >&5
23896 sed 's/^/| /' conftest.$ac_ext >&5
23901 rm -f conftest.err conftest.$ac_ext
23903 { echo "$as_me:$LINENO: result: $fstype" >&5
23904 echo "${ECHO_T}$fstype" >&6; }
23906 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23907 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23908 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23909 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23913 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23915 # Is the header compilable?
23916 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23917 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23918 cat >conftest.$ac_ext <<_ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 $ac_includes_default
23925 #include <sys/statvfs.h>
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934 (eval "$ac_compile") 2>conftest.er1
23936 grep -v '^ *+' conftest.er1 >conftest.err
23938 cat conftest.err >&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } &&
23941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23942 { (case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947 (eval "$ac_try") 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; } &&
23951 { ac_try='test -s conftest.$ac_objext'
23952 { (case "(($ac_try" in
23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_try") 2>&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 ac_header_compiler=yes
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 ac_header_compiler=no
23969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23971 echo "${ECHO_T}$ac_header_compiler" >&6; }
23973 # Is the header present?
23974 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
23975 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 #include <sys/statvfs.h>
23984 if { (ac_try="$ac_cpp conftest.$ac_ext"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23992 grep -v '^ *+' conftest.er1 >conftest.err
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } >/dev/null; then
23997 if test -s conftest.err; then
23998 ac_cpp_err=$ac_c_preproc_warn_flag
23999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24006 if test -z "$ac_cpp_err"; then
24007 ac_header_preproc=yes
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24012 ac_header_preproc=no
24015 rm -f conftest.err conftest.$ac_ext
24016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24017 echo "${ECHO_T}$ac_header_preproc" >&6; }
24019 # So? What about this header?
24020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24022 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24023 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24024 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24025 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24026 ac_header_preproc=yes
24029 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24030 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24032 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24034 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24036 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24038 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24039 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24040 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24044 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24045 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24046 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24052 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24055 if test $ac_cv_header_sys_statvfs_h = yes; then
24057 cat >>confdefs.h <<\_ACEOF
24058 #define HAVE_SYS_STATVFS_H 1
24065 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24066 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24067 if test "${ac_cv_type_signal+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 cat >conftest.$ac_ext <<_ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 #include <sys/types.h>
24077 #include <signal.h>
24082 return *(signal (0, 0)) (0) == 1;
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24096 grep -v '^ *+' conftest.er1 >conftest.err
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } &&
24101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24102 { (case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_try") 2>&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; } &&
24111 { ac_try='test -s conftest.$ac_objext'
24112 { (case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117 (eval "$ac_try") 2>&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; }; then
24121 ac_cv_type_signal=int
24123 echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24126 ac_cv_type_signal=void
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24132 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24134 cat >>confdefs.h <<_ACEOF
24135 #define RETSIGTYPE $ac_cv_type_signal
24140 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24141 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24142 if test "${bash_cv_signal_vintage+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 #include <signal.h>
24158 struct sigaction sa;
24159 sigemptyset(&ss); sigsuspend(&ss);
24160 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24161 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24167 rm -f conftest.$ac_objext conftest$ac_exeext
24168 if { (ac_try="$ac_link"
24169 case "(($ac_try" in
24170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171 *) ac_try_echo=$ac_try;;
24173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24174 (eval "$ac_link") 2>conftest.er1
24176 grep -v '^ *+' conftest.er1 >conftest.err
24178 cat conftest.err >&5
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); } &&
24181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24182 { (case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_try") 2>&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; } &&
24191 { ac_try='test -s conftest$ac_exeext'
24192 { (case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_try") 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24201 bash_cv_signal_vintage="posix"
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <signal.h>
24218 int mask = sigmask(SIGINT);
24219 sigsetmask(mask); sigblock(mask); sigpause(mask);
24225 rm -f conftest.$ac_objext conftest$ac_exeext
24226 if { (ac_try="$ac_link"
24227 case "(($ac_try" in
24228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229 *) ac_try_echo=$ac_try;;
24231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24232 (eval "$ac_link") 2>conftest.er1
24234 grep -v '^ *+' conftest.er1 >conftest.err
24236 cat conftest.err >&5
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); } &&
24239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24240 { (case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245 (eval "$ac_try") 2>&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; } &&
24249 { ac_try='test -s conftest$ac_exeext'
24250 { (case "(($ac_try" in
24251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255 (eval "$ac_try") 2>&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 bash_cv_signal_vintage="4.2bsd"
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24265 cat >conftest.$ac_ext <<_ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24272 #include <signal.h>
24273 RETSIGTYPE foo() { }
24278 int mask = sigmask(SIGINT);
24279 sigset(SIGINT, foo); sigrelse(SIGINT);
24280 sighold(SIGINT); sigpause(SIGINT);
24286 rm -f conftest.$ac_objext conftest$ac_exeext
24287 if { (ac_try="$ac_link"
24288 case "(($ac_try" in
24289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290 *) ac_try_echo=$ac_try;;
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293 (eval "$ac_link") 2>conftest.er1
24295 grep -v '^ *+' conftest.er1 >conftest.err
24297 cat conftest.err >&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } &&
24300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24301 { (case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306 (eval "$ac_try") 2>&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; } &&
24310 { ac_try='test -s conftest$ac_exeext'
24311 { (case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316 (eval "$ac_try") 2>&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24320 bash_cv_signal_vintage="svr3"
24322 echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24325 bash_cv_signal_vintage="v7"
24329 rm -f core conftest.err conftest.$ac_objext \
24330 conftest$ac_exeext conftest.$ac_ext
24334 rm -f core conftest.err conftest.$ac_objext \
24335 conftest$ac_exeext conftest.$ac_ext
24339 rm -f core conftest.err conftest.$ac_objext \
24340 conftest$ac_exeext conftest.$ac_ext
24344 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24345 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24346 if test "$bash_cv_signal_vintage" = "posix"; then
24347 cat >>confdefs.h <<\_ACEOF
24348 #define HAVE_POSIX_SIGNALS 1
24351 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24352 cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_BSD_SIGNALS 1
24356 elif test "$bash_cv_signal_vintage" = "svr3"; then
24357 cat >>confdefs.h <<\_ACEOF
24358 #define HAVE_USG_SIGHOLD 1
24363 { echo "$as_me:$LINENO: checking for mode_t" >&5
24364 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24365 if test "${ac_cv_type_mode_t+set}" = set; then
24366 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24374 $ac_includes_default
24375 typedef mode_t ac__type_new_;
24379 if ((ac__type_new_ *) 0)
24381 if (sizeof (ac__type_new_))
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391 *) ac_try_echo=$ac_try;;
24393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394 (eval "$ac_compile") 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
24401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24402 { (case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_try") 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; } &&
24411 { ac_try='test -s conftest.$ac_objext'
24412 { (case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_try") 2>&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); }; }; then
24421 ac_cv_type_mode_t=yes
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24426 ac_cv_type_mode_t=no
24429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24432 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24433 if test $ac_cv_type_mode_t = yes; then
24437 cat >>confdefs.h <<_ACEOF
24443 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24444 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24445 if test "${ac_cv_type_uid_t+set}" = set; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 #include <sys/types.h>
24457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24458 $EGREP "uid_t" >/dev/null 2>&1; then
24459 ac_cv_type_uid_t=yes
24461 ac_cv_type_uid_t=no
24466 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24468 if test $ac_cv_type_uid_t = no; then
24470 cat >>confdefs.h <<\_ACEOF
24475 cat >>confdefs.h <<\_ACEOF
24481 { echo "$as_me:$LINENO: checking for size_t" >&5
24482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24483 if test "${ac_cv_type_size_t+set}" = set; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24493 typedef size_t ac__type_new_;
24497 if ((ac__type_new_ *) 0)
24499 if (sizeof (ac__type_new_))
24505 rm -f conftest.$ac_objext
24506 if { (ac_try="$ac_compile"
24507 case "(($ac_try" in
24508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509 *) ac_try_echo=$ac_try;;
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512 (eval "$ac_compile") 2>conftest.er1
24514 grep -v '^ *+' conftest.er1 >conftest.err
24516 cat conftest.err >&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } &&
24519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24520 { (case "(($ac_try" in
24521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24522 *) ac_try_echo=$ac_try;;
24524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24525 (eval "$ac_try") 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; } &&
24529 { ac_try='test -s conftest.$ac_objext'
24530 { (case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535 (eval "$ac_try") 2>&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
24539 ac_cv_type_size_t=yes
24541 echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24544 ac_cv_type_size_t=no
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24549 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24550 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24551 if test $ac_cv_type_size_t = yes; then
24555 cat >>confdefs.h <<_ACEOF
24556 #define size_t unsigned int
24561 { echo "$as_me:$LINENO: checking for pid_t" >&5
24562 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24563 if test "${ac_cv_type_pid_t+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24566 cat >conftest.$ac_ext <<_ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24573 typedef pid_t ac__type_new_;
24577 if ((ac__type_new_ *) 0)
24579 if (sizeof (ac__type_new_))
24585 rm -f conftest.$ac_objext
24586 if { (ac_try="$ac_compile"
24587 case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_compile") 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24600 { (case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_try") 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; } &&
24609 { ac_try='test -s conftest.$ac_objext'
24610 { (case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615 (eval "$ac_try") 2>&5
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_type_pid_t=yes
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 ac_cv_type_pid_t=no
24627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24629 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24631 if test $ac_cv_type_pid_t = yes; then
24635 cat >>confdefs.h <<_ACEOF
24641 { echo "$as_me:$LINENO: checking for off_t" >&5
24642 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24643 if test "${ac_cv_type_off_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652 $ac_includes_default
24653 typedef off_t ac__type_new_;
24657 if ((ac__type_new_ *) 0)
24659 if (sizeof (ac__type_new_))
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1 >conftest.err
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } &&
24679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; } &&
24689 { ac_try='test -s conftest.$ac_objext'
24690 { (case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_try") 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_type_off_t=yes
24701 echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24704 ac_cv_type_off_t=no
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24710 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24711 if test $ac_cv_type_off_t = yes; then
24715 cat >>confdefs.h <<_ACEOF
24716 #define off_t long int
24721 { echo "$as_me:$LINENO: checking for ino_t" >&5
24722 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24723 if test "${ac_cv_type_ino_t+set}" = set; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24732 $ac_includes_default
24733 typedef ino_t ac__type_new_;
24737 if ((ac__type_new_ *) 0)
24739 if (sizeof (ac__type_new_))
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_compile") 2>conftest.er1
24754 grep -v '^ *+' conftest.er1 >conftest.err
24756 cat conftest.err >&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } &&
24759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24760 { (case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_try") 2>&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; } &&
24769 { ac_try='test -s conftest.$ac_objext'
24770 { (case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775 (eval "$ac_try") 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_cv_type_ino_t=yes
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 ac_cv_type_ino_t=no
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24790 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24791 if test $ac_cv_type_ino_t = yes; then
24795 cat >>confdefs.h <<_ACEOF
24796 #define ino_t unsigned long
24801 { echo "$as_me:$LINENO: checking for dev_t" >&5
24802 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24803 if test "${ac_cv_type_dev_t+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24806 cat >conftest.$ac_ext <<_ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 $ac_includes_default
24813 typedef dev_t ac__type_new_;
24817 if ((ac__type_new_ *) 0)
24819 if (sizeof (ac__type_new_))
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832 (eval "$ac_compile") 2>conftest.er1
24834 grep -v '^ *+' conftest.er1 >conftest.err
24836 cat conftest.err >&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } &&
24839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24840 { (case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_try") 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest.$ac_objext'
24850 { (case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_try") 2>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; }; then
24859 ac_cv_type_dev_t=yes
24861 echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 ac_cv_type_dev_t=no
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24870 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24871 if test $ac_cv_type_dev_t = yes; then
24875 cat >>confdefs.h <<_ACEOF
24876 #define dev_t unsigned long
24881 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24882 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24883 if test "${ac_cv_type_daddr_t+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 $ac_includes_default
24893 typedef daddr_t ac__type_new_;
24897 if ((ac__type_new_ *) 0)
24899 if (sizeof (ac__type_new_))
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912 (eval "$ac_compile") 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } &&
24919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24920 { (case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_try") 2>&5
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; } &&
24929 { ac_try='test -s conftest.$ac_objext'
24930 { (case "(($ac_try" in
24931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24932 *) ac_try_echo=$ac_try;;
24934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24935 (eval "$ac_try") 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_cv_type_daddr_t=yes
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ac_cv_type_daddr_t=no
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24950 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
24951 if test $ac_cv_type_daddr_t = yes; then
24955 cat >>confdefs.h <<_ACEOF
24956 #define daddr_t long
24961 { echo "$as_me:$LINENO: checking for major_t" >&5
24962 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
24963 if test "${ac_cv_type_major_t+set}" = set; then
24964 echo $ECHO_N "(cached) $ECHO_C" >&6
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24972 $ac_includes_default
24973 typedef major_t ac__type_new_;
24977 if ((ac__type_new_ *) 0)
24979 if (sizeof (ac__type_new_))
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_compile") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000 { (case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_try") 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest.$ac_objext'
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_try") 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25019 ac_cv_type_major_t=yes
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 ac_cv_type_major_t=no
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25030 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25031 if test $ac_cv_type_major_t = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define major_t int
25041 { echo "$as_me:$LINENO: checking for minor_t" >&5
25042 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25043 if test "${ac_cv_type_minor_t+set}" = set; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 cat >conftest.$ac_ext <<_ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 $ac_includes_default
25053 typedef minor_t ac__type_new_;
25057 if ((ac__type_new_ *) 0)
25059 if (sizeof (ac__type_new_))
25065 rm -f conftest.$ac_objext
25066 if { (ac_try="$ac_compile"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_compile") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } &&
25079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25080 { (case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_try") 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; } &&
25089 { ac_try='test -s conftest.$ac_objext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095 (eval "$ac_try") 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_type_minor_t=yes
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25104 ac_cv_type_minor_t=no
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25109 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25110 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25111 if test $ac_cv_type_minor_t = yes; then
25115 cat >>confdefs.h <<_ACEOF
25116 #define minor_t int
25121 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25122 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25123 if test "${ac_cv_type_ssize_t+set}" = set; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 $ac_includes_default
25133 typedef ssize_t ac__type_new_;
25137 if ((ac__type_new_ *) 0)
25139 if (sizeof (ac__type_new_))
25145 rm -f conftest.$ac_objext
25146 if { (ac_try="$ac_compile"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152 (eval "$ac_compile") 2>conftest.er1
25154 grep -v '^ *+' conftest.er1 >conftest.err
25156 cat conftest.err >&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } &&
25159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25160 { (case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_try") 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try='test -s conftest.$ac_objext'
25170 { (case "(($ac_try" in
25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172 *) ac_try_echo=$ac_try;;
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175 (eval "$ac_try") 2>&5
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_type_ssize_t=yes
25181 echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25184 ac_cv_type_ssize_t=no
25187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25190 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25191 if test $ac_cv_type_ssize_t = yes; then
25195 cat >>confdefs.h <<_ACEOF
25196 #define ssize_t int
25201 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25202 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25203 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25204 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 $ac_includes_default
25216 static struct stat ac_aggr;
25217 if (ac_aggr.st_blocks)
25223 rm -f conftest.$ac_objext
25224 if { (ac_try="$ac_compile"
25225 case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230 (eval "$ac_compile") 2>conftest.er1
25232 grep -v '^ *+' conftest.er1 >conftest.err
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25238 { (case "(($ac_try" in
25239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_try") 2>&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; } &&
25247 { ac_try='test -s conftest.$ac_objext'
25248 { (case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253 (eval "$ac_try") 2>&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; }; then
25257 ac_cv_member_struct_stat_st_blocks=yes
25259 echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25262 cat >conftest.$ac_ext <<_ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25272 static struct stat ac_aggr;
25273 if (sizeof ac_aggr.st_blocks)
25279 rm -f conftest.$ac_objext
25280 if { (ac_try="$ac_compile"
25281 case "(($ac_try" in
25282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25283 *) ac_try_echo=$ac_try;;
25285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25286 (eval "$ac_compile") 2>conftest.er1
25288 grep -v '^ *+' conftest.er1 >conftest.err
25290 cat conftest.err >&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
25293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25294 { (case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_try") 2>&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; } &&
25303 { ac_try='test -s conftest.$ac_objext'
25304 { (case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_try") 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_member_struct_stat_st_blocks=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ac_cv_member_struct_stat_st_blocks=no
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25327 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25328 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_ST_BLOCKS 1
25340 case " $LIBOBJS " in
25341 *" fileblocks.$ac_objext "* ) ;;
25342 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25349 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25350 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25351 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25354 cat >conftest.$ac_ext <<_ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h. */
25360 $ac_includes_default
25364 static struct stat ac_aggr;
25365 if (ac_aggr.st_rdev)
25371 rm -f conftest.$ac_objext
25372 if { (ac_try="$ac_compile"
25373 case "(($ac_try" in
25374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25375 *) ac_try_echo=$ac_try;;
25377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25378 (eval "$ac_compile") 2>conftest.er1
25380 grep -v '^ *+' conftest.er1 >conftest.err
25382 cat conftest.err >&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25386 { (case "(($ac_try" in
25387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388 *) ac_try_echo=$ac_try;;
25390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391 (eval "$ac_try") 2>&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; } &&
25395 { ac_try='test -s conftest.$ac_objext'
25396 { (case "(($ac_try" in
25397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398 *) ac_try_echo=$ac_try;;
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401 (eval "$ac_try") 2>&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 ac_cv_member_struct_stat_st_rdev=yes
25407 echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 $ac_includes_default
25420 static struct stat ac_aggr;
25421 if (sizeof ac_aggr.st_rdev)
25427 rm -f conftest.$ac_objext
25428 if { (ac_try="$ac_compile"
25429 case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_compile") 2>conftest.er1
25436 grep -v '^ *+' conftest.er1 >conftest.err
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } &&
25441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25442 { (case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447 (eval "$ac_try") 2>&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; } &&
25451 { ac_try='test -s conftest.$ac_objext'
25452 { (case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_try") 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ac_cv_member_struct_stat_st_rdev=yes
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ac_cv_member_struct_stat_st_rdev=no
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25475 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25476 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25478 cat >>confdefs.h <<_ACEOF
25479 #define HAVE_STRUCT_STAT_ST_RDEV 1
25483 cat >>confdefs.h <<\_ACEOF
25484 #define HAVE_ST_RDEV 1
25490 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25492 if test "${ac_cv_struct_tm+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 #include <sys/types.h>
25507 struct tm *tp; tp->tm_sec;
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_compile") 2>conftest.er1
25521 grep -v '^ *+' conftest.er1 >conftest.err
25523 cat conftest.err >&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } &&
25526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25527 { (case "(($ac_try" in
25528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529 *) ac_try_echo=$ac_try;;
25531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25532 (eval "$ac_try") 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; } &&
25536 { ac_try='test -s conftest.$ac_objext'
25537 { (case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_try") 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_struct_tm=time.h
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_cv_struct_tm=sys/time.h
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25557 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25558 if test $ac_cv_struct_tm = sys/time.h; then
25560 cat >>confdefs.h <<\_ACEOF
25561 #define TM_IN_SYS_TIME 1
25566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25568 if test "${ac_cv_c_const+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25571 cat >conftest.$ac_ext <<_ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25581 /* FIXME: Include the comments suggested by Paul. */
25582 #ifndef __cplusplus
25583 /* Ultrix mips cc rejects this. */
25584 typedef int charset[2];
25586 /* SunOS 4.1.1 cc rejects this. */
25587 char const *const *ccp;
25589 /* NEC SVR4.0.2 mips cc rejects this. */
25590 struct point {int x, y;};
25591 static struct point const zero = {0,0};
25592 /* AIX XL C 1.02.0.0 rejects this.
25593 It does not let you subtract one const X* pointer from another in
25594 an arm of an if-expression whose if-part is not a constant
25596 const char *g = "string";
25597 ccp = &g + (g ? g-g : 0);
25598 /* HPUX 7.0 cc rejects these. */
25601 ccp = (char const *const *) p;
25602 { /* SCO 3.2v4 cc rejects this. */
25604 char const *s = 0 ? (char *) 0 : (char const *) 0;
25609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25610 int x[] = {25, 17};
25611 const int *foo = &x[0];
25614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25615 typedef const int *iptr;
25619 { /* AIX XL C 1.02.0.0 rejects this saying
25620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25621 struct s { int j; const int *ap[3]; };
25622 struct s *b; b->j = 5;
25624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25625 const int foo = 10;
25626 if (!foo) return 0;
25628 return !x[0] && !zero.x;
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25650 { (case "(($ac_try" in
25651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652 *) ac_try_echo=$ac_try;;
25654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655 (eval "$ac_try") 2>&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; } &&
25659 { ac_try='test -s conftest.$ac_objext'
25660 { (case "(($ac_try" in
25661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25662 *) ac_try_echo=$ac_try;;
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665 (eval "$ac_try") 2>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25680 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25681 if test $ac_cv_c_const = no; then
25683 cat >>confdefs.h <<\_ACEOF
25691 { echo "$as_me:$LINENO: checking for char" >&5
25692 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25693 if test "${ac_cv_type_char+set}" = set; then
25694 echo $ECHO_N "(cached) $ECHO_C" >&6
25696 cat >conftest.$ac_ext <<_ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h. */
25702 $ac_includes_default
25703 typedef char ac__type_new_;
25707 if ((ac__type_new_ *) 0)
25709 if (sizeof (ac__type_new_))
25715 rm -f conftest.$ac_objext
25716 if { (ac_try="$ac_compile"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_compile") 2>conftest.er1
25724 grep -v '^ *+' conftest.er1 >conftest.err
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
25729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25730 { (case "(($ac_try" in
25731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732 *) ac_try_echo=$ac_try;;
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735 (eval "$ac_try") 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_try") 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_type_char=yes
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25760 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25762 { echo "$as_me:$LINENO: checking size of char" >&5
25763 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25764 if test "${ac_cv_sizeof_char+set}" = set; then
25765 echo $ECHO_N "(cached) $ECHO_C" >&6
25767 if test "$ac_cv_type_char" = yes; then
25768 # The cast to long int works around a bug in the HP C Compiler
25769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25771 # This bug is HP SR number 8606223364.
25772 if test "$cross_compiling" = yes; then
25773 # Depending upon the size, compute the lo and hi bounds.
25774 cat >conftest.$ac_ext <<_ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25780 $ac_includes_default
25781 typedef char ac__type_sizeof_;
25785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25792 rm -f conftest.$ac_objext
25793 if { (ac_try="$ac_compile"
25794 case "(($ac_try" in
25795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25796 *) ac_try_echo=$ac_try;;
25798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25799 (eval "$ac_compile") 2>conftest.er1
25801 grep -v '^ *+' conftest.er1 >conftest.err
25803 cat conftest.err >&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); } &&
25806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25807 { (case "(($ac_try" in
25808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25809 *) ac_try_echo=$ac_try;;
25811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25812 (eval "$ac_try") 2>&5
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; } &&
25816 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); }; }; then
25828 cat >conftest.$ac_ext <<_ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 $ac_includes_default
25835 typedef char ac__type_sizeof_;
25839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25846 rm -f conftest.$ac_objext
25847 if { (ac_try="$ac_compile"
25848 case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853 (eval "$ac_compile") 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } &&
25860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25861 { (case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_try") 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (case "(($ac_try" in
25872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873 *) ac_try_echo=$ac_try;;
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876 (eval "$ac_try") 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_hi=$ac_mid; break
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 ac_lo=`expr $ac_mid + 1`
25886 if test $ac_lo -le $ac_mid; then
25890 ac_mid=`expr 2 '*' $ac_mid + 1`
25893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25899 cat >conftest.$ac_ext <<_ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25905 $ac_includes_default
25906 typedef char ac__type_sizeof_;
25910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25917 rm -f conftest.$ac_objext
25918 if { (ac_try="$ac_compile"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_compile") 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
25931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25932 { (case "(($ac_try" in
25933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25934 *) ac_try_echo=$ac_try;;
25936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25937 (eval "$ac_try") 2>&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; } &&
25941 { ac_try='test -s conftest.$ac_objext'
25942 { (case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_try") 2>&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 $ac_includes_default
25960 typedef char ac__type_sizeof_;
25964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25971 rm -f conftest.$ac_objext
25972 if { (ac_try="$ac_compile"
25973 case "(($ac_try" in
25974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975 *) ac_try_echo=$ac_try;;
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978 (eval "$ac_compile") 2>conftest.er1
25980 grep -v '^ *+' conftest.er1 >conftest.err
25982 cat conftest.err >&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
25985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25986 { (case "(($ac_try" in
25987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988 *) ac_try_echo=$ac_try;;
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991 (eval "$ac_try") 2>&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; } &&
25995 { ac_try='test -s conftest.$ac_objext'
25996 { (case "(($ac_try" in
25997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998 *) ac_try_echo=$ac_try;;
26000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26001 (eval "$ac_try") 2>&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); }; }; then
26005 ac_lo=$ac_mid; break
26007 echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26010 ac_hi=`expr '(' $ac_mid ')' - 1`
26011 if test $ac_mid -le $ac_hi; then
26015 ac_mid=`expr 2 '*' $ac_mid`
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031 # Binary search between lo and hi bounds.
26032 while test "x$ac_lo" != "x$ac_hi"; do
26033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26034 cat >conftest.$ac_ext <<_ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26040 $ac_includes_default
26041 typedef char ac__type_sizeof_;
26045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056 *) ac_try_echo=$ac_try;;
26058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26059 (eval "$ac_compile") 2>conftest.er1
26061 grep -v '^ *+' conftest.er1 >conftest.err
26063 cat conftest.err >&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
26066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26067 { (case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_try") 2>&5
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; } &&
26076 { ac_try='test -s conftest.$ac_objext'
26077 { (case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082 (eval "$ac_try") 2>&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ac_lo=`expr '(' $ac_mid ')' + 1`
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 ?*) ac_cv_sizeof_char=$ac_lo;;
26098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26099 See \`config.log' for more details." >&5
26100 echo "$as_me: error: cannot compute sizeof (char)
26101 See \`config.log' for more details." >&2;}
26102 { (exit 77); exit 77; }; } ;;
26105 cat >conftest.$ac_ext <<_ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 $ac_includes_default
26112 typedef char ac__type_sizeof_;
26113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26116 #include <stdlib.h>
26121 FILE *f = fopen ("conftest.val", "w");
26124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26126 long int i = longval ();
26127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26129 fprintf (f, "%ld\n", i);
26133 unsigned long int i = ulongval ();
26134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26136 fprintf (f, "%lu\n", i);
26138 return ferror (f) || fclose (f) != 0;
26144 rm -f conftest$ac_exeext
26145 if { (ac_try="$ac_link"
26146 case "(($ac_try" in
26147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148 *) ac_try_echo=$ac_try;;
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151 (eval "$ac_link") 2>&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26155 { (case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_try") 2>&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_cv_sizeof_char=`cat conftest.val`
26166 echo "$as_me: program exited with status $ac_status" >&5
26167 echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26170 ( exit $ac_status )
26171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26172 See \`config.log' for more details." >&5
26173 echo "$as_me: error: cannot compute sizeof (char)
26174 See \`config.log' for more details." >&2;}
26175 { (exit 77); exit 77; }; }
26177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26181 ac_cv_sizeof_char=0
26184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26185 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26186 cat >>confdefs.h <<_ACEOF
26187 #define SIZEOF_CHAR $ac_cv_sizeof_char
26191 { echo "$as_me:$LINENO: checking for short int" >&5
26192 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26193 if test "${ac_cv_type_short_int+set}" = set; then
26194 echo $ECHO_N "(cached) $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 $ac_includes_default
26203 typedef short int ac__type_new_;
26207 if ((ac__type_new_ *) 0)
26209 if (sizeof (ac__type_new_))
26215 rm -f conftest.$ac_objext
26216 if { (ac_try="$ac_compile"
26217 case "(($ac_try" in
26218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219 *) ac_try_echo=$ac_try;;
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222 (eval "$ac_compile") 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } &&
26229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26230 { (case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_try") 2>&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; } &&
26239 { ac_try='test -s conftest.$ac_objext'
26240 { (case "(($ac_try" in
26241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242 *) ac_try_echo=$ac_try;;
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245 (eval "$ac_try") 2>&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; }; then
26249 ac_cv_type_short_int=yes
26251 echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26254 ac_cv_type_short_int=no
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26260 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26262 { echo "$as_me:$LINENO: checking size of short int" >&5
26263 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26264 if test "${ac_cv_sizeof_short_int+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26267 if test "$ac_cv_type_short_int" = yes; then
26268 # The cast to long int works around a bug in the HP C Compiler
26269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26271 # This bug is HP SR number 8606223364.
26272 if test "$cross_compiling" = yes; then
26273 # Depending upon the size, compute the lo and hi bounds.
26274 cat >conftest.$ac_ext <<_ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 $ac_includes_default
26281 typedef short int ac__type_sizeof_;
26285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26292 rm -f conftest.$ac_objext
26293 if { (ac_try="$ac_compile"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299 (eval "$ac_compile") 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26307 { (case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_try") 2>&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26328 cat >conftest.$ac_ext <<_ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26334 $ac_includes_default
26335 typedef short int ac__type_sizeof_;
26339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26346 rm -f conftest.$ac_objext
26347 if { (ac_try="$ac_compile"
26348 case "(($ac_try" in
26349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350 *) ac_try_echo=$ac_try;;
26352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26353 (eval "$ac_compile") 2>conftest.er1
26355 grep -v '^ *+' conftest.er1 >conftest.err
26357 cat conftest.err >&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } &&
26360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26361 { (case "(($ac_try" in
26362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363 *) ac_try_echo=$ac_try;;
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366 (eval "$ac_try") 2>&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; } &&
26370 { ac_try='test -s conftest.$ac_objext'
26371 { (case "(($ac_try" in
26372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373 *) ac_try_echo=$ac_try;;
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376 (eval "$ac_try") 2>&5
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; }; then
26380 ac_hi=$ac_mid; break
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26385 ac_lo=`expr $ac_mid + 1`
26386 if test $ac_lo -le $ac_mid; then
26390 ac_mid=`expr 2 '*' $ac_mid + 1`
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396 echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26399 cat >conftest.$ac_ext <<_ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26405 $ac_includes_default
26406 typedef short int ac__type_sizeof_;
26410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424 (eval "$ac_compile") 2>conftest.er1
26426 grep -v '^ *+' conftest.er1 >conftest.err
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } &&
26431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26432 { (case "(($ac_try" in
26433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 *) ac_try_echo=$ac_try;;
26436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437 (eval "$ac_try") 2>&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); }; } &&
26441 { ac_try='test -s conftest.$ac_objext'
26442 { (case "(($ac_try" in
26443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26444 *) ac_try_echo=$ac_try;;
26446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26447 (eval "$ac_try") 2>&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; }; then
26453 cat >conftest.$ac_ext <<_ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26459 $ac_includes_default
26460 typedef short int ac__type_sizeof_;
26464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_compile") 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26486 { (case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_try") 2>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (case "(($ac_try" in
26497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498 *) ac_try_echo=$ac_try;;
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501 (eval "$ac_try") 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_lo=$ac_mid; break
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_hi=`expr '(' $ac_mid ')' - 1`
26511 if test $ac_mid -le $ac_hi; then
26515 ac_mid=`expr 2 '*' $ac_mid`
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 # Binary search between lo and hi bounds.
26532 while test "x$ac_lo" != "x$ac_hi"; do
26533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 $ac_includes_default
26541 typedef short int ac__type_sizeof_;
26545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26552 rm -f conftest.$ac_objext
26553 if { (ac_try="$ac_compile"
26554 case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559 (eval "$ac_compile") 2>conftest.er1
26561 grep -v '^ *+' conftest.er1 >conftest.err
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
26566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26567 { (case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_try") 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; } &&
26576 { ac_try='test -s conftest.$ac_objext'
26577 { (case "(($ac_try" in
26578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579 *) ac_try_echo=$ac_try;;
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582 (eval "$ac_try") 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ac_lo=`expr '(' $ac_mid ')' + 1`
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26599 See \`config.log' for more details." >&5
26600 echo "$as_me: error: cannot compute sizeof (short int)
26601 See \`config.log' for more details." >&2;}
26602 { (exit 77); exit 77; }; } ;;
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26611 $ac_includes_default
26612 typedef short int ac__type_sizeof_;
26613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26616 #include <stdlib.h>
26621 FILE *f = fopen ("conftest.val", "w");
26624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26626 long int i = longval ();
26627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26629 fprintf (f, "%ld\n", i);
26633 unsigned long int i = ulongval ();
26634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26636 fprintf (f, "%lu\n", i);
26638 return ferror (f) || fclose (f) != 0;
26644 rm -f conftest$ac_exeext
26645 if { (ac_try="$ac_link"
26646 case "(($ac_try" in
26647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648 *) ac_try_echo=$ac_try;;
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651 (eval "$ac_link") 2>&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26655 { (case "(($ac_try" in
26656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657 *) ac_try_echo=$ac_try;;
26659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660 (eval "$ac_try") 2>&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; }; then
26664 ac_cv_sizeof_short_int=`cat conftest.val`
26666 echo "$as_me: program exited with status $ac_status" >&5
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ( exit $ac_status )
26671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26672 See \`config.log' for more details." >&5
26673 echo "$as_me: error: cannot compute sizeof (short int)
26674 See \`config.log' for more details." >&2;}
26675 { (exit 77); exit 77; }; }
26677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26681 ac_cv_sizeof_short_int=0
26684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26685 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26686 cat >>confdefs.h <<_ACEOF
26687 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26691 { echo "$as_me:$LINENO: checking for int" >&5
26692 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26693 if test "${ac_cv_type_int+set}" = set; then
26694 echo $ECHO_N "(cached) $ECHO_C" >&6
26696 cat >conftest.$ac_ext <<_ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h. */
26702 $ac_includes_default
26703 typedef int ac__type_new_;
26707 if ((ac__type_new_ *) 0)
26709 if (sizeof (ac__type_new_))
26715 rm -f conftest.$ac_objext
26716 if { (ac_try="$ac_compile"
26717 case "(($ac_try" in
26718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26719 *) ac_try_echo=$ac_try;;
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722 (eval "$ac_compile") 2>conftest.er1
26724 grep -v '^ *+' conftest.er1 >conftest.err
26726 cat conftest.err >&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
26729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26730 { (case "(($ac_try" in
26731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_try") 2>&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; } &&
26739 { ac_try='test -s conftest.$ac_objext'
26740 { (case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_try") 2>&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26751 echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26759 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26760 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26762 { echo "$as_me:$LINENO: checking size of int" >&5
26763 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26764 if test "${ac_cv_sizeof_int+set}" = set; then
26765 echo $ECHO_N "(cached) $ECHO_C" >&6
26767 if test "$ac_cv_type_int" = yes; then
26768 # The cast to long int works around a bug in the HP C Compiler
26769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26771 # This bug is HP SR number 8606223364.
26772 if test "$cross_compiling" = yes; then
26773 # Depending upon the size, compute the lo and hi bounds.
26774 cat >conftest.$ac_ext <<_ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 $ac_includes_default
26781 typedef int ac__type_sizeof_;
26785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26792 rm -f conftest.$ac_objext
26793 if { (ac_try="$ac_compile"
26794 case "(($ac_try" in
26795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796 *) ac_try_echo=$ac_try;;
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799 (eval "$ac_compile") 2>conftest.er1
26801 grep -v '^ *+' conftest.er1 >conftest.err
26803 cat conftest.err >&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); } &&
26806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26807 { (case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_try") 2>&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; } &&
26816 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26828 cat >conftest.$ac_ext <<_ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 $ac_includes_default
26835 typedef int ac__type_sizeof_;
26839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26846 rm -f conftest.$ac_objext
26847 if { (ac_try="$ac_compile"
26848 case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_compile") 2>conftest.er1
26855 grep -v '^ *+' conftest.er1 >conftest.err
26857 cat conftest.err >&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } &&
26860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26861 { (case "(($ac_try" in
26862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863 *) ac_try_echo=$ac_try;;
26865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866 (eval "$ac_try") 2>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; } &&
26870 { ac_try='test -s conftest.$ac_objext'
26871 { (case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_try") 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880 ac_hi=$ac_mid; break
26882 echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26885 ac_lo=`expr $ac_mid + 1`
26886 if test $ac_lo -le $ac_mid; then
26890 ac_mid=`expr 2 '*' $ac_mid + 1`
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 $ac_includes_default
26906 typedef int ac__type_sizeof_;
26910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26917 rm -f conftest.$ac_objext
26918 if { (ac_try="$ac_compile"
26919 case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_compile") 2>conftest.er1
26926 grep -v '^ *+' conftest.er1 >conftest.err
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } &&
26931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26932 { (case "(($ac_try" in
26933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934 *) ac_try_echo=$ac_try;;
26936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937 (eval "$ac_try") 2>&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); }; } &&
26941 { ac_try='test -s conftest.$ac_objext'
26942 { (case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_try") 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; }; then
26953 cat >conftest.$ac_ext <<_ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26959 $ac_includes_default
26960 typedef int ac__type_sizeof_;
26964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26971 rm -f conftest.$ac_objext
26972 if { (ac_try="$ac_compile"
26973 case "(($ac_try" in
26974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975 *) ac_try_echo=$ac_try;;
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978 (eval "$ac_compile") 2>conftest.er1
26980 grep -v '^ *+' conftest.er1 >conftest.err
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } &&
26985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26986 { (case "(($ac_try" in
26987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988 *) ac_try_echo=$ac_try;;
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991 (eval "$ac_try") 2>&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; } &&
26995 { ac_try='test -s conftest.$ac_objext'
26996 { (case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_try") 2>&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
27005 ac_lo=$ac_mid; break
27007 echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27010 ac_hi=`expr '(' $ac_mid ')' - 1`
27011 if test $ac_mid -le $ac_hi; then
27015 ac_mid=`expr 2 '*' $ac_mid`
27018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021 echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 # Binary search between lo and hi bounds.
27032 while test "x$ac_lo" != "x$ac_hi"; do
27033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 $ac_includes_default
27041 typedef int ac__type_sizeof_;
27045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_compile") 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
27066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27067 { (case "(($ac_try" in
27068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069 *) ac_try_echo=$ac_try;;
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072 (eval "$ac_try") 2>&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest.$ac_objext'
27077 { (case "(($ac_try" in
27078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27079 *) ac_try_echo=$ac_try;;
27081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27082 (eval "$ac_try") 2>&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27088 echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27091 ac_lo=`expr '(' $ac_mid ')' + 1`
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27097 ?*) ac_cv_sizeof_int=$ac_lo;;
27098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27099 See \`config.log' for more details." >&5
27100 echo "$as_me: error: cannot compute sizeof (int)
27101 See \`config.log' for more details." >&2;}
27102 { (exit 77); exit 77; }; } ;;
27105 cat >conftest.$ac_ext <<_ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 $ac_includes_default
27112 typedef int ac__type_sizeof_;
27113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27116 #include <stdlib.h>
27121 FILE *f = fopen ("conftest.val", "w");
27124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27126 long int i = longval ();
27127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27129 fprintf (f, "%ld\n", i);
27133 unsigned long int i = ulongval ();
27134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27136 fprintf (f, "%lu\n", i);
27138 return ferror (f) || fclose (f) != 0;
27144 rm -f conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148 *) ac_try_echo=$ac_try;;
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151 (eval "$ac_link") 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27155 { (case "(($ac_try" in
27156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157 *) ac_try_echo=$ac_try;;
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_try") 2>&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); }; }; then
27164 ac_cv_sizeof_int=`cat conftest.val`
27166 echo "$as_me: program exited with status $ac_status" >&5
27167 echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27170 ( exit $ac_status )
27171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27172 See \`config.log' for more details." >&5
27173 echo "$as_me: error: cannot compute sizeof (int)
27174 See \`config.log' for more details." >&2;}
27175 { (exit 77); exit 77; }; }
27177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27185 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27186 cat >>confdefs.h <<_ACEOF
27187 #define SIZEOF_INT $ac_cv_sizeof_int
27191 { echo "$as_me:$LINENO: checking for long int" >&5
27192 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27193 if test "${ac_cv_type_long_int+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 $ac_includes_default
27203 typedef long int ac__type_new_;
27207 if ((ac__type_new_ *) 0)
27209 if (sizeof (ac__type_new_))
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219 *) ac_try_echo=$ac_try;;
27221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27222 (eval "$ac_compile") 2>conftest.er1
27224 grep -v '^ *+' conftest.er1 >conftest.err
27226 cat conftest.err >&5
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); } &&
27229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27230 { (case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235 (eval "$ac_try") 2>&5
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; } &&
27239 { ac_try='test -s conftest.$ac_objext'
27240 { (case "(($ac_try" in
27241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242 *) ac_try_echo=$ac_try;;
27244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245 (eval "$ac_try") 2>&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249 ac_cv_type_long_int=yes
27251 echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 ac_cv_type_long_int=no
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27260 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27262 { echo "$as_me:$LINENO: checking size of long int" >&5
27263 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27264 if test "${ac_cv_sizeof_long_int+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 if test "$ac_cv_type_long_int" = yes; then
27268 # The cast to long int works around a bug in the HP C Compiler
27269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27271 # This bug is HP SR number 8606223364.
27272 if test "$cross_compiling" = yes; then
27273 # Depending upon the size, compute the lo and hi bounds.
27274 cat >conftest.$ac_ext <<_ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27280 $ac_includes_default
27281 typedef long int ac__type_sizeof_;
27285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27292 rm -f conftest.$ac_objext
27293 if { (ac_try="$ac_compile"
27294 case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_compile") 2>conftest.er1
27301 grep -v '^ *+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_try") 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27328 cat >conftest.$ac_ext <<_ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h. */
27334 $ac_includes_default
27335 typedef long int ac__type_sizeof_;
27339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27346 rm -f conftest.$ac_objext
27347 if { (ac_try="$ac_compile"
27348 case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_compile") 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
27360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27361 { (case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_try") 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; } &&
27370 { ac_try='test -s conftest.$ac_objext'
27371 { (case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_try") 2>&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 ac_hi=$ac_mid; break
27382 echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27385 ac_lo=`expr $ac_mid + 1`
27386 if test $ac_lo -le $ac_mid; then
27390 ac_mid=`expr 2 '*' $ac_mid + 1`
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396 echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 $ac_includes_default
27406 typedef long int ac__type_sizeof_;
27410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27417 rm -f conftest.$ac_objext
27418 if { (ac_try="$ac_compile"
27419 case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_compile") 2>conftest.er1
27426 grep -v '^ *+' conftest.er1 >conftest.err
27428 cat conftest.err >&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
27431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432 { (case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_try") 2>&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; } &&
27441 { ac_try='test -s conftest.$ac_objext'
27442 { (case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447 (eval "$ac_try") 2>&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27453 cat >conftest.$ac_ext <<_ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h. */
27459 $ac_includes_default
27460 typedef long int ac__type_sizeof_;
27464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27471 rm -f conftest.$ac_objext
27472 if { (ac_try="$ac_compile"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_compile") 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest.$ac_objext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_lo=$ac_mid; break
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ac_hi=`expr '(' $ac_mid ')' - 1`
27511 if test $ac_mid -le $ac_hi; then
27515 ac_mid=`expr 2 '*' $ac_mid`
27518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27531 # Binary search between lo and hi bounds.
27532 while test "x$ac_lo" != "x$ac_hi"; do
27533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 $ac_includes_default
27541 typedef long int ac__type_sizeof_;
27545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27552 rm -f conftest.$ac_objext
27553 if { (ac_try="$ac_compile"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_compile") 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest.$ac_objext'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_lo=`expr '(' $ac_mid ')' + 1`
27594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27599 See \`config.log' for more details." >&5
27600 echo "$as_me: error: cannot compute sizeof (long int)
27601 See \`config.log' for more details." >&2;}
27602 { (exit 77); exit 77; }; } ;;
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 $ac_includes_default
27612 typedef long int ac__type_sizeof_;
27613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27616 #include <stdlib.h>
27621 FILE *f = fopen ("conftest.val", "w");
27624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27626 long int i = longval ();
27627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27629 fprintf (f, "%ld\n", i);
27633 unsigned long int i = ulongval ();
27634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27636 fprintf (f, "%lu\n", i);
27638 return ferror (f) || fclose (f) != 0;
27644 rm -f conftest$ac_exeext
27645 if { (ac_try="$ac_link"
27646 case "(($ac_try" in
27647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648 *) ac_try_echo=$ac_try;;
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651 (eval "$ac_link") 2>&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27655 { (case "(($ac_try" in
27656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657 *) ac_try_echo=$ac_try;;
27659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660 (eval "$ac_try") 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 ac_cv_sizeof_long_int=`cat conftest.val`
27666 echo "$as_me: program exited with status $ac_status" >&5
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 ( exit $ac_status )
27671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27672 See \`config.log' for more details." >&5
27673 echo "$as_me: error: cannot compute sizeof (long int)
27674 See \`config.log' for more details." >&2;}
27675 { (exit 77); exit 77; }; }
27677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27681 ac_cv_sizeof_long_int=0
27684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27685 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27686 cat >>confdefs.h <<_ACEOF
27687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27691 { echo "$as_me:$LINENO: checking for long long int" >&5
27692 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27693 if test "${ac_cv_type_long_long_int+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27696 cat >conftest.$ac_ext <<_ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h. */
27702 $ac_includes_default
27703 typedef long long int ac__type_new_;
27707 if ((ac__type_new_ *) 0)
27709 if (sizeof (ac__type_new_))
27715 rm -f conftest.$ac_objext
27716 if { (ac_try="$ac_compile"
27717 case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_compile") 2>conftest.er1
27724 grep -v '^ *+' conftest.er1 >conftest.err
27726 cat conftest.err >&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } &&
27729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27730 { (case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_try") 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; } &&
27739 { ac_try='test -s conftest.$ac_objext'
27740 { (case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_try") 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); }; }; then
27749 ac_cv_type_long_long_int=yes
27751 echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27754 ac_cv_type_long_long_int=no
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27759 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27760 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27762 { echo "$as_me:$LINENO: checking size of long long int" >&5
27763 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27764 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27767 if test "$ac_cv_type_long_long_int" = yes; then
27768 # The cast to long int works around a bug in the HP C Compiler
27769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27771 # This bug is HP SR number 8606223364.
27772 if test "$cross_compiling" = yes; then
27773 # Depending upon the size, compute the lo and hi bounds.
27774 cat >conftest.$ac_ext <<_ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h. */
27780 $ac_includes_default
27781 typedef long long int ac__type_sizeof_;
27785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27792 rm -f conftest.$ac_objext
27793 if { (ac_try="$ac_compile"
27794 case "(($ac_try" in
27795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796 *) ac_try_echo=$ac_try;;
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799 (eval "$ac_compile") 2>conftest.er1
27801 grep -v '^ *+' conftest.er1 >conftest.err
27803 cat conftest.err >&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } &&
27806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27807 { (case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_try") 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27828 cat >conftest.$ac_ext <<_ACEOF
27831 cat confdefs.h >>conftest.$ac_ext
27832 cat >>conftest.$ac_ext <<_ACEOF
27833 /* end confdefs.h. */
27834 $ac_includes_default
27835 typedef long long int ac__type_sizeof_;
27839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
27848 case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853 (eval "$ac_compile") 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
27860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest.$ac_objext'
27871 { (case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_try") 2>&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
27880 ac_hi=$ac_mid; break
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27885 ac_lo=`expr $ac_mid + 1`
27886 if test $ac_lo -le $ac_mid; then
27890 ac_mid=`expr 2 '*' $ac_mid + 1`
27893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27905 $ac_includes_default
27906 typedef long long int ac__type_sizeof_;
27910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_compile") 2>conftest.er1
27926 grep -v '^ *+' conftest.er1 >conftest.err
27928 cat conftest.err >&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } &&
27931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27932 { (case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_try") 2>&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; } &&
27941 { ac_try='test -s conftest.$ac_objext'
27942 { (case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_try") 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; }; then
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 $ac_includes_default
27960 typedef long long int ac__type_sizeof_;
27964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_compile") 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest.$ac_objext'
27996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_lo=$ac_mid; break
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 ac_hi=`expr '(' $ac_mid ')' - 1`
28011 if test $ac_mid -le $ac_hi; then
28015 ac_mid=`expr 2 '*' $ac_mid`
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28021 echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28031 # Binary search between lo and hi bounds.
28032 while test "x$ac_lo" != "x$ac_hi"; do
28033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28040 $ac_includes_default
28041 typedef long long int ac__type_sizeof_;
28045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_compile") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest.$ac_objext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ac_lo=`expr '(' $ac_mid ')' + 1`
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28097 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28099 See \`config.log' for more details." >&5
28100 echo "$as_me: error: cannot compute sizeof (long long int)
28101 See \`config.log' for more details." >&2;}
28102 { (exit 77); exit 77; }; } ;;
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 $ac_includes_default
28112 typedef long long int ac__type_sizeof_;
28113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28116 #include <stdlib.h>
28121 FILE *f = fopen ("conftest.val", "w");
28124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28126 long int i = longval ();
28127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28129 fprintf (f, "%ld\n", i);
28133 unsigned long int i = ulongval ();
28134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28136 fprintf (f, "%lu\n", i);
28138 return ferror (f) || fclose (f) != 0;
28144 rm -f conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_link") 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28155 { (case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_try") 2>&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; }; then
28164 ac_cv_sizeof_long_long_int=`cat conftest.val`
28166 echo "$as_me: program exited with status $ac_status" >&5
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28170 ( exit $ac_status )
28171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28172 See \`config.log' for more details." >&5
28173 echo "$as_me: error: cannot compute sizeof (long long int)
28174 See \`config.log' for more details." >&2;}
28175 { (exit 77); exit 77; }; }
28177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28181 ac_cv_sizeof_long_long_int=0
28184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28185 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28186 cat >>confdefs.h <<_ACEOF
28187 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28191 { echo "$as_me:$LINENO: checking for int *" >&5
28192 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28193 if test "${ac_cv_type_int_p+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28202 $ac_includes_default
28203 typedef int * ac__type_new_;
28207 if ((ac__type_new_ *) 0)
28209 if (sizeof (ac__type_new_))
28215 rm -f conftest.$ac_objext
28216 if { (ac_try="$ac_compile"
28217 case "(($ac_try" in
28218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219 *) ac_try_echo=$ac_try;;
28221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28222 (eval "$ac_compile") 2>conftest.er1
28224 grep -v '^ *+' conftest.er1 >conftest.err
28226 cat conftest.err >&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
28229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28230 { (case "(($ac_try" in
28231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232 *) ac_try_echo=$ac_try;;
28234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28235 (eval "$ac_try") 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; } &&
28239 { ac_try='test -s conftest.$ac_objext'
28240 { (case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_try") 2>&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; }; then
28249 ac_cv_type_int_p=yes
28251 echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 ac_cv_type_int_p=no
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28259 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28260 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28262 { echo "$as_me:$LINENO: checking size of int *" >&5
28263 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28264 if test "${ac_cv_sizeof_int_p+set}" = set; then
28265 echo $ECHO_N "(cached) $ECHO_C" >&6
28267 if test "$ac_cv_type_int_p" = yes; then
28268 # The cast to long int works around a bug in the HP C Compiler
28269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28271 # This bug is HP SR number 8606223364.
28272 if test "$cross_compiling" = yes; then
28273 # Depending upon the size, compute the lo and hi bounds.
28274 cat >conftest.$ac_ext <<_ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h. */
28280 $ac_includes_default
28281 typedef int * ac__type_sizeof_;
28285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28292 rm -f conftest.$ac_objext
28293 if { (ac_try="$ac_compile"
28294 case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_compile") 2>conftest.er1
28301 grep -v '^ *+' conftest.er1 >conftest.err
28303 cat conftest.err >&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } &&
28306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28307 { (case "(($ac_try" in
28308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309 *) ac_try_echo=$ac_try;;
28311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312 (eval "$ac_try") 2>&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; } &&
28316 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); }; }; then
28328 cat >conftest.$ac_ext <<_ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h. */
28334 $ac_includes_default
28335 typedef int * ac__type_sizeof_;
28339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28346 rm -f conftest.$ac_objext
28347 if { (ac_try="$ac_compile"
28348 case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_compile") 2>conftest.er1
28355 grep -v '^ *+' conftest.er1 >conftest.err
28357 cat conftest.err >&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } &&
28360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; } &&
28370 { ac_try='test -s conftest.$ac_objext'
28371 { (case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_try") 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28380 ac_hi=$ac_mid; break
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 ac_lo=`expr $ac_mid + 1`
28386 if test $ac_lo -le $ac_mid; then
28390 ac_mid=`expr 2 '*' $ac_mid + 1`
28393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28396 echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28399 cat >conftest.$ac_ext <<_ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h. */
28405 $ac_includes_default
28406 typedef int * ac__type_sizeof_;
28410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28417 rm -f conftest.$ac_objext
28418 if { (ac_try="$ac_compile"
28419 case "(($ac_try" in
28420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421 *) ac_try_echo=$ac_try;;
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424 (eval "$ac_compile") 2>conftest.er1
28426 grep -v '^ *+' conftest.er1 >conftest.err
28428 cat conftest.err >&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
28431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28432 { (case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_try") 2>&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; } &&
28441 { ac_try='test -s conftest.$ac_objext'
28442 { (case "(($ac_try" in
28443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444 *) ac_try_echo=$ac_try;;
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447 (eval "$ac_try") 2>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28453 cat >conftest.$ac_ext <<_ACEOF
28456 cat confdefs.h >>conftest.$ac_ext
28457 cat >>conftest.$ac_ext <<_ACEOF
28458 /* end confdefs.h. */
28459 $ac_includes_default
28460 typedef int * ac__type_sizeof_;
28464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_compile") 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_try") 2>&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; } &&
28495 { ac_try='test -s conftest.$ac_objext'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_lo=$ac_mid; break
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_hi=`expr '(' $ac_mid ')' - 1`
28511 if test $ac_mid -le $ac_hi; then
28515 ac_mid=`expr 2 '*' $ac_mid`
28518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531 # Binary search between lo and hi bounds.
28532 while test "x$ac_lo" != "x$ac_hi"; do
28533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28534 cat >conftest.$ac_ext <<_ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 $ac_includes_default
28541 typedef int * ac__type_sizeof_;
28545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_compile") 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28567 { (case "(($ac_try" in
28568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569 *) ac_try_echo=$ac_try;;
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572 (eval "$ac_try") 2>&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; } &&
28576 { ac_try='test -s conftest.$ac_objext'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28588 echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ac_lo=`expr '(' $ac_mid ')' + 1`
28594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28599 See \`config.log' for more details." >&5
28600 echo "$as_me: error: cannot compute sizeof (int *)
28601 See \`config.log' for more details." >&2;}
28602 { (exit 77); exit 77; }; } ;;
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 $ac_includes_default
28612 typedef int * ac__type_sizeof_;
28613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28616 #include <stdlib.h>
28621 FILE *f = fopen ("conftest.val", "w");
28624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28626 long int i = longval ();
28627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28629 fprintf (f, "%ld\n", i);
28633 unsigned long int i = ulongval ();
28634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28636 fprintf (f, "%lu\n", i);
28638 return ferror (f) || fclose (f) != 0;
28644 rm -f conftest$ac_exeext
28645 if { (ac_try="$ac_link"
28646 case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_link") 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28655 { (case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_try") 2>&5
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; }; then
28664 ac_cv_sizeof_int_p=`cat conftest.val`
28666 echo "$as_me: program exited with status $ac_status" >&5
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ( exit $ac_status )
28671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28672 See \`config.log' for more details." >&5
28673 echo "$as_me: error: cannot compute sizeof (int *)
28674 See \`config.log' for more details." >&2;}
28675 { (exit 77); exit 77; }; }
28677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28681 ac_cv_sizeof_int_p=0
28684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28685 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28686 cat >>confdefs.h <<_ACEOF
28687 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28692 # Check for sys/types.h types
28693 { echo "$as_me:$LINENO: checking for u_int type" >&5
28694 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28695 if test "${ac_cv_have_u_int+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 cat >conftest.$ac_ext <<_ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h. */
28705 #include <sys/types.h>
28714 rm -f conftest.$ac_objext
28715 if { (ac_try="$ac_compile"
28716 case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_compile") 2>conftest.er1
28723 grep -v '^ *+' conftest.er1 >conftest.err
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest.$ac_objext'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_have_u_int="yes"
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28753 ac_cv_have_u_int="no"
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28761 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28762 if test "x$ac_cv_have_u_int" = "xyes" ; then
28763 cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_U_INT 1
28770 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28771 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28772 if test "${ac_cv_have_intmax_t+set}" = set; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28776 cat >conftest.$ac_ext <<_ACEOF
28779 cat confdefs.h >>conftest.$ac_ext
28780 cat >>conftest.$ac_ext <<_ACEOF
28781 /* end confdefs.h. */
28782 #include <sys/types.h>
28791 rm -f conftest.$ac_objext
28792 if { (ac_try="$ac_compile"
28793 case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798 (eval "$ac_compile") 2>conftest.er1
28800 grep -v '^ *+' conftest.er1 >conftest.err
28802 cat conftest.err >&5
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } &&
28805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28806 { (case "(($ac_try" in
28807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808 *) ac_try_echo=$ac_try;;
28810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811 (eval "$ac_try") 2>&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; } &&
28815 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); }; }; then
28825 ac_cv_have_intmax_t="yes"
28827 echo "$as_me: failed program was:" >&5
28828 sed 's/^/| /' conftest.$ac_ext >&5
28831 cat >conftest.$ac_ext <<_ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 #include <stdint.h>
28846 rm -f conftest.$ac_objext
28847 if { (ac_try="$ac_compile"
28848 case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_compile") 2>conftest.er1
28855 grep -v '^ *+' conftest.er1 >conftest.err
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
28860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28861 { (case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_try") 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; } &&
28870 { ac_try='test -s conftest.$ac_objext'
28871 { (case "(($ac_try" in
28872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873 *) ac_try_echo=$ac_try;;
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876 (eval "$ac_try") 2>&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; }; then
28880 ac_cv_have_intmax_t="yes"
28882 echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28885 ac_cv_have_intmax_t="no"
28889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28899 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28900 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28901 cat >>confdefs.h <<\_ACEOF
28902 #define HAVE_INTMAX_T 1
28909 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28910 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28911 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28912 echo $ECHO_N "(cached) $ECHO_C" >&6
28915 cat >conftest.$ac_ext <<_ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h. */
28921 #include <sys/types.h>
28925 u_intmax_t a; a = 1;
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_compile") 2>conftest.er1
28939 grep -v '^ *+' conftest.er1 >conftest.err
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
28944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; } &&
28954 { ac_try='test -s conftest.$ac_objext'
28955 { (case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_try") 2>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; }; then
28964 ac_cv_have_u_intmax_t="yes"
28966 echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28970 cat >conftest.$ac_ext <<_ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 #include <stdint.h>
28980 u_intmax_t a; a = 1;
28985 rm -f conftest.$ac_objext
28986 if { (ac_try="$ac_compile"
28987 case "(($ac_try" in
28988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28989 *) ac_try_echo=$ac_try;;
28991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28992 (eval "$ac_compile") 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29000 { (case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_try") 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
29010 { (case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_try") 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 ac_cv_have_u_intmax_t="yes"
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29024 ac_cv_have_u_intmax_t="no"
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29036 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29037 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29038 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_U_INTMAX_T 1
29047 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29048 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29049 if test "${ac_cv_have_intxx_t+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 #include <sys/types.h>
29063 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29068 rm -f conftest.$ac_objext
29069 if { (ac_try="$ac_compile"
29070 case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_compile") 2>conftest.er1
29077 grep -v '^ *+' conftest.er1 >conftest.err
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
29082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29083 { (case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_try") 2>&5
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; } &&
29092 { ac_try='test -s conftest.$ac_objext'
29093 { (case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_try") 2>&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
29102 ac_cv_have_intxx_t="yes"
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29107 ac_cv_have_intxx_t="no"
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29115 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29116 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29117 cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_INTXX_T 1
29124 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29125 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29126 if test "${ac_cv_have_int64_t+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29130 cat >conftest.$ac_ext <<_ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 #include <sys/types.h>
29145 rm -f conftest.$ac_objext
29146 if { (ac_try="$ac_compile"
29147 case "(($ac_try" in
29148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149 *) ac_try_echo=$ac_try;;
29151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29152 (eval "$ac_compile") 2>conftest.er1
29154 grep -v '^ *+' conftest.er1 >conftest.err
29156 cat conftest.err >&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); } &&
29159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29160 { (case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_try") 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; } &&
29169 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; }; then
29179 ac_cv_have_int64_t="yes"
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_cv_have_int64_t="no"
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29191 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29192 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29193 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29194 cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_INT64_T 1
29201 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29202 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29203 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29207 cat >conftest.$ac_ext <<_ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29213 #include <sys/types.h>
29217 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_compile") 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } &&
29236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ac_cv_have_u_intxx_t="yes"
29258 echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29261 ac_cv_have_u_intxx_t="no"
29265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29268 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29269 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29270 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29271 cat >>confdefs.h <<\_ACEOF
29272 #define HAVE_U_INTXX_T 1
29278 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29279 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29280 if test "${ac_cv_have_u_int64_t+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 cat >conftest.$ac_ext <<_ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h. */
29290 #include <sys/types.h>
29294 u_int64_t a; a = 1;
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_compile") 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
29313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29314 { (case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319 (eval "$ac_try") 2>&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); }; } &&
29323 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_have_u_int64_t="yes"
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_have_u_int64_t="no"
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29346 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29347 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29348 cat >>confdefs.h <<\_ACEOF
29349 #define HAVE_U_INT64_T 1
29355 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29356 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29358 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29359 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29360 cat >conftest.$ac_ext <<_ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h. */
29366 #include <sys/bitypes.h>
29370 int8_t a; int16_t b; int32_t c;
29371 u_int8_t e; u_int16_t f; u_int32_t g;
29372 a = b = c = e = f = g = 1;
29377 rm -f conftest.$ac_objext
29378 if { (ac_try="$ac_compile"
29379 case "(($ac_try" in
29380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381 *) ac_try_echo=$ac_try;;
29383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29384 (eval "$ac_compile") 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29392 { (case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_try") 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest.$ac_objext'
29402 { (case "(($ac_try" in
29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404 *) ac_try_echo=$ac_try;;
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407 (eval "$ac_try") 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; }; then
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_U_INTXX_T 1
29415 cat >>confdefs.h <<\_ACEOF
29416 #define HAVE_INTXX_T 1
29419 cat >>confdefs.h <<\_ACEOF
29420 #define HAVE_SYS_BITYPES_H 1
29423 { echo "$as_me:$LINENO: result: yes" >&5
29424 echo "${ECHO_T}yes" >&6; }
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29429 { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29437 if test -z "$have_u_intxx_t" ; then
29438 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29439 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29440 if test "${ac_cv_have_uintxx_t+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 #include <sys/types.h>
29454 uint8_t a; uint16_t b;
29455 uint32_t c; a = b = c = 1;
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_compile") 2>conftest.er1
29469 grep -v '^ *+' conftest.er1 >conftest.err
29471 cat conftest.err >&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } &&
29474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29475 { (case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_try") 2>&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); }; } &&
29484 { ac_try='test -s conftest.$ac_objext'
29485 { (case "(($ac_try" in
29486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487 *) ac_try_echo=$ac_try;;
29489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490 (eval "$ac_try") 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 ac_cv_have_uintxx_t="yes"
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 ac_cv_have_uintxx_t="no"
29503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29506 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29507 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29508 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29509 cat >>confdefs.h <<\_ACEOF
29510 #define HAVE_UINTXX_T 1
29516 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29517 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29519 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29520 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29521 cat >conftest.$ac_ext <<_ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h. */
29527 #include <sys/bitypes.h>
29531 int64_t a; u_int64_t b;
29537 rm -f conftest.$ac_objext
29538 if { (ac_try="$ac_compile"
29539 case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_compile") 2>conftest.er1
29546 grep -v '^ *+' conftest.er1 >conftest.err
29548 cat conftest.err >&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
29551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_U_INT64_T 1
29575 cat >>confdefs.h <<\_ACEOF
29576 #define HAVE_INT64_T 1
29579 { echo "$as_me:$LINENO: result: yes" >&5
29580 echo "${ECHO_T}yes" >&6; }
29582 echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29585 { echo "$as_me:$LINENO: result: no" >&5
29586 echo "${ECHO_T}no" >&6; }
29590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593 if (test -z "$have_uintxx_t" && \
29594 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29596 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29597 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29598 cat >conftest.$ac_ext <<_ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29604 #include <sys/bitypes.h>
29608 uint8_t a; uint16_t b;
29609 uint32_t c; a = b = c = 1;
29614 rm -f conftest.$ac_objext
29615 if { (ac_try="$ac_compile"
29616 case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_compile") 2>conftest.er1
29623 grep -v '^ *+' conftest.er1 >conftest.err
29625 cat conftest.err >&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); } &&
29628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
29648 cat >>confdefs.h <<\_ACEOF
29649 #define HAVE_UINTXX_T 1
29652 { echo "$as_me:$LINENO: result: yes" >&5
29653 echo "${ECHO_T}yes" >&6; }
29655 echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29658 { echo "$as_me:$LINENO: result: no" >&5
29659 echo "${ECHO_T}no" >&6; }
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 cat >conftest.$ac_ext <<_ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h. */
29711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29713 #define $ac_func innocuous_$ac_func
29715 /* System header to define __stub macros and hopefully few prototypes,
29716 which can conflict with char $ac_func (); below.
29717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29718 <limits.h> exists even on freestanding compilers. */
29721 # include <limits.h>
29723 # include <assert.h>
29728 /* Override any GCC internal prototype to avoid an error.
29729 Use char because int might match the return type of a GCC
29730 builtin and then its argument prototype would still apply. */
29735 /* The GNU C library defines this for functions which it implements
29736 to always fail with ENOSYS. Some functions are actually named
29737 something starting with __ and the normal name is an alias. */
29738 #if defined __stub_$ac_func || defined __stub___$ac_func
29745 return $ac_func ();
29750 rm -f conftest.$ac_objext conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_link") 2>conftest.er1
29759 grep -v '^ *+' conftest.er1 >conftest.err
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } &&
29764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29765 { (case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest$ac_exeext'
29775 { (case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_try") 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29784 eval "$as_ac_var=yes"
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 eval "$as_ac_var=no"
29792 rm -f core conftest.err conftest.$ac_objext \
29793 conftest$ac_exeext conftest.$ac_ext
29795 ac_res=`eval echo '${'$as_ac_var'}'`
29796 { echo "$as_me:$LINENO: result: $ac_res" >&5
29797 echo "${ECHO_T}$ac_res" >&6; }
29798 if test `eval echo '${'$as_ac_var'}'` = yes; then
29799 cat >>confdefs.h <<_ACEOF
29800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29804 echo 'configure: cannot find needed function.'; exit 1
29811 for ac_func in fchdir
29813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29819 cat >conftest.$ac_ext <<_ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h. */
29825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29827 #define $ac_func innocuous_$ac_func
29829 /* System header to define __stub macros and hopefully few prototypes,
29830 which can conflict with char $ac_func (); below.
29831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29832 <limits.h> exists even on freestanding compilers. */
29835 # include <limits.h>
29837 # include <assert.h>
29842 /* Override any GCC internal prototype to avoid an error.
29843 Use char because int might match the return type of a GCC
29844 builtin and then its argument prototype would still apply. */
29849 /* The GNU C library defines this for functions which it implements
29850 to always fail with ENOSYS. Some functions are actually named
29851 something starting with __ and the normal name is an alias. */
29852 #if defined __stub_$ac_func || defined __stub___$ac_func
29859 return $ac_func ();
29864 rm -f conftest.$ac_objext conftest$ac_exeext
29865 if { (ac_try="$ac_link"
29866 case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_link") 2>conftest.er1
29873 grep -v '^ *+' conftest.er1 >conftest.err
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
29878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29879 { (case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_try") 2>&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; } &&
29888 { ac_try='test -s conftest$ac_exeext'
29889 { (case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_try") 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898 eval "$as_ac_var=yes"
29900 echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29903 eval "$as_ac_var=no"
29906 rm -f core conftest.err conftest.$ac_objext \
29907 conftest$ac_exeext conftest.$ac_ext
29909 ac_res=`eval echo '${'$as_ac_var'}'`
29910 { echo "$as_me:$LINENO: result: $ac_res" >&5
29911 echo "${ECHO_T}$ac_res" >&6; }
29912 if test `eval echo '${'$as_ac_var'}'` = yes; then
29913 cat >>confdefs.h <<_ACEOF
29914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_FCHDIR 1
29924 for ac_func in strtoll
29926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29932 cat >conftest.$ac_ext <<_ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29940 #define $ac_func innocuous_$ac_func
29942 /* System header to define __stub macros and hopefully few prototypes,
29943 which can conflict with char $ac_func (); below.
29944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29945 <limits.h> exists even on freestanding compilers. */
29948 # include <limits.h>
29950 # include <assert.h>
29955 /* Override any GCC internal prototype to avoid an error.
29956 Use char because int might match the return type of a GCC
29957 builtin and then its argument prototype would still apply. */
29962 /* The GNU C library defines this for functions which it implements
29963 to always fail with ENOSYS. Some functions are actually named
29964 something starting with __ and the normal name is an alias. */
29965 #if defined __stub_$ac_func || defined __stub___$ac_func
29972 return $ac_func ();
29977 rm -f conftest.$ac_objext conftest$ac_exeext
29978 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
29986 grep -v '^ *+' conftest.er1 >conftest.err
29988 cat conftest.err >&5
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); } &&
29991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29992 { (case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_try") 2>&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; } &&
30001 { ac_try='test -s conftest$ac_exeext'
30002 { (case "(($ac_try" in
30003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004 *) ac_try_echo=$ac_try;;
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_try") 2>&5
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; }; then
30011 eval "$as_ac_var=yes"
30013 echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.$ac_ext >&5
30016 eval "$as_ac_var=no"
30019 rm -f core conftest.err conftest.$ac_objext \
30020 conftest$ac_exeext conftest.$ac_ext
30022 ac_res=`eval echo '${'$as_ac_var'}'`
30023 { echo "$as_me:$LINENO: result: $ac_res" >&5
30024 echo "${ECHO_T}$ac_res" >&6; }
30025 if test `eval echo '${'$as_ac_var'}'` = yes; then
30026 cat >>confdefs.h <<_ACEOF
30027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30029 cat >>confdefs.h <<\_ACEOF
30030 #define HAVE_STRTOLL 1
30038 for ac_func in chflags
30040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30044 echo $ECHO_N "(cached) $ECHO_C" >&6
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30054 #define $ac_func innocuous_$ac_func
30056 /* System header to define __stub macros and hopefully few prototypes,
30057 which can conflict with char $ac_func (); below.
30058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30059 <limits.h> exists even on freestanding compilers. */
30062 # include <limits.h>
30064 # include <assert.h>
30069 /* Override any GCC internal prototype to avoid an error.
30070 Use char because int might match the return type of a GCC
30071 builtin and then its argument prototype would still apply. */
30076 /* The GNU C library defines this for functions which it implements
30077 to always fail with ENOSYS. Some functions are actually named
30078 something starting with __ and the normal name is an alias. */
30079 #if defined __stub_$ac_func || defined __stub___$ac_func
30086 return $ac_func ();
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (ac_try="$ac_link"
30093 case "(($ac_try" in
30094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095 *) ac_try_echo=$ac_try;;
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098 (eval "$ac_link") 2>conftest.er1
30100 grep -v '^ *+' conftest.er1 >conftest.err
30102 cat conftest.err >&5
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); } &&
30105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30106 { (case "(($ac_try" in
30107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30108 *) ac_try_echo=$ac_try;;
30110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30111 (eval "$ac_try") 2>&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); }; } &&
30115 { ac_try='test -s conftest$ac_exeext'
30116 { (case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_try") 2>&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; }; then
30125 eval "$as_ac_var=yes"
30127 echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30130 eval "$as_ac_var=no"
30133 rm -f core conftest.err conftest.$ac_objext \
30134 conftest$ac_exeext conftest.$ac_ext
30136 ac_res=`eval echo '${'$as_ac_var'}'`
30137 { echo "$as_me:$LINENO: result: $ac_res" >&5
30138 echo "${ECHO_T}$ac_res" >&6; }
30139 if test `eval echo '${'$as_ac_var'}'` = yes; then
30140 cat >>confdefs.h <<_ACEOF
30141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30152 for ac_func in snprintf vsnprintf gethostid fseeko
30154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30160 cat >conftest.$ac_ext <<_ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h. */
30166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30168 #define $ac_func innocuous_$ac_func
30170 /* System header to define __stub macros and hopefully few prototypes,
30171 which can conflict with char $ac_func (); below.
30172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30173 <limits.h> exists even on freestanding compilers. */
30176 # include <limits.h>
30178 # include <assert.h>
30183 /* Override any GCC internal prototype to avoid an error.
30184 Use char because int might match the return type of a GCC
30185 builtin and then its argument prototype would still apply. */
30190 /* The GNU C library defines this for functions which it implements
30191 to always fail with ENOSYS. Some functions are actually named
30192 something starting with __ and the normal name is an alias. */
30193 #if defined __stub_$ac_func || defined __stub___$ac_func
30200 return $ac_func ();
30205 rm -f conftest.$ac_objext conftest$ac_exeext
30206 if { (ac_try="$ac_link"
30207 case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_link") 2>conftest.er1
30214 grep -v '^ *+' conftest.er1 >conftest.err
30216 cat conftest.err >&5
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); } &&
30219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30220 { (case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_try") 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; } &&
30229 { ac_try='test -s conftest$ac_exeext'
30230 { (case "(($ac_try" in
30231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232 *) ac_try_echo=$ac_try;;
30234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30235 (eval "$ac_try") 2>&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; }; then
30239 eval "$as_ac_var=yes"
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30244 eval "$as_ac_var=no"
30247 rm -f core conftest.err conftest.$ac_objext \
30248 conftest$ac_exeext conftest.$ac_ext
30250 ac_res=`eval echo '${'$as_ac_var'}'`
30251 { echo "$as_me:$LINENO: result: $ac_res" >&5
30252 echo "${ECHO_T}$ac_res" >&6; }
30253 if test `eval echo '${'$as_ac_var'}'` = yes; then
30254 cat >>confdefs.h <<_ACEOF
30255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30266 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30272 echo $ECHO_N "(cached) $ECHO_C" >&6
30274 cat >conftest.$ac_ext <<_ACEOF
30277 cat confdefs.h >>conftest.$ac_ext
30278 cat >>conftest.$ac_ext <<_ACEOF
30279 /* end confdefs.h. */
30280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30282 #define $ac_func innocuous_$ac_func
30284 /* System header to define __stub macros and hopefully few prototypes,
30285 which can conflict with char $ac_func (); below.
30286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30287 <limits.h> exists even on freestanding compilers. */
30290 # include <limits.h>
30292 # include <assert.h>
30297 /* Override any GCC internal prototype to avoid an error.
30298 Use char because int might match the return type of a GCC
30299 builtin and then its argument prototype would still apply. */
30304 /* The GNU C library defines this for functions which it implements
30305 to always fail with ENOSYS. Some functions are actually named
30306 something starting with __ and the normal name is an alias. */
30307 #if defined __stub_$ac_func || defined __stub___$ac_func
30314 return $ac_func ();
30319 rm -f conftest.$ac_objext conftest$ac_exeext
30320 if { (ac_try="$ac_link"
30321 case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326 (eval "$ac_link") 2>conftest.er1
30328 grep -v '^ *+' conftest.er1 >conftest.err
30330 cat conftest.err >&5
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } &&
30333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30334 { (case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_try") 2>&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; } &&
30343 { ac_try='test -s conftest$ac_exeext'
30344 { (case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_try") 2>&5
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 eval "$as_ac_var=yes"
30355 echo "$as_me: failed program was:" >&5
30356 sed 's/^/| /' conftest.$ac_ext >&5
30358 eval "$as_ac_var=no"
30361 rm -f core conftest.err conftest.$ac_objext \
30362 conftest$ac_exeext conftest.$ac_ext
30364 ac_res=`eval echo '${'$as_ac_var'}'`
30365 { echo "$as_me:$LINENO: result: $ac_res" >&5
30366 echo "${ECHO_T}$ac_res" >&6; }
30367 if test `eval echo '${'$as_ac_var'}'` = yes; then
30368 cat >>confdefs.h <<_ACEOF
30369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30376 # If resolver functions are not in libc check for -lnsl or -lresolv.
30377 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30378 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30379 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30382 cat >conftest.$ac_ext <<_ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30390 #define gethostbyname_r innocuous_gethostbyname_r
30392 /* System header to define __stub macros and hopefully few prototypes,
30393 which can conflict with char gethostbyname_r (); below.
30394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30395 <limits.h> exists even on freestanding compilers. */
30398 # include <limits.h>
30400 # include <assert.h>
30403 #undef gethostbyname_r
30405 /* Override any GCC internal prototype to avoid an error.
30406 Use char because int might match the return type of a GCC
30407 builtin and then its argument prototype would still apply. */
30411 char gethostbyname_r ();
30412 /* The GNU C library defines this for functions which it implements
30413 to always fail with ENOSYS. Some functions are actually named
30414 something starting with __ and the normal name is an alias. */
30415 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30422 return gethostbyname_r ();
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_link") 2>conftest.er1
30436 grep -v '^ *+' conftest.er1 >conftest.err
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } &&
30441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442 { (case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_try") 2>&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest$ac_exeext'
30452 { (case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457 (eval "$ac_try") 2>&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461 ac_cv_func_gethostbyname_r=yes
30463 echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30466 ac_cv_func_gethostbyname_r=no
30469 rm -f core conftest.err conftest.$ac_objext \
30470 conftest$ac_exeext conftest.$ac_ext
30472 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30473 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30474 if test $ac_cv_func_gethostbyname_r = yes; then
30475 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30476 echo "${ECHO_T}using libc's resolver" >&6; }
30479 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30480 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30481 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 ac_check_lib_save_LIBS=$LIBS
30486 cat >conftest.$ac_ext <<_ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h. */
30493 /* Override any GCC internal prototype to avoid an error.
30494 Use char because int might match the return type of a GCC
30495 builtin and then its argument prototype would still apply. */
30499 char gethostbyname_r ();
30503 return gethostbyname_r ();
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
30522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523 { (case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528 (eval "$ac_try") 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
30533 { (case "(($ac_try" in
30534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535 *) ac_try_echo=$ac_try;;
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538 (eval "$ac_try") 2>&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542 ac_cv_lib_nsl_gethostbyname_r=yes
30544 echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30547 ac_cv_lib_nsl_gethostbyname_r=no
30550 rm -f core conftest.err conftest.$ac_objext \
30551 conftest$ac_exeext conftest.$ac_ext
30552 LIBS=$ac_check_lib_save_LIBS
30554 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30555 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30556 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30557 cat >>confdefs.h <<_ACEOF
30558 #define HAVE_LIBNSL 1
30566 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30567 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30568 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lresolv $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h. */
30580 /* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
30586 char gethostbyname_r ();
30590 return gethostbyname_r ();
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_link") 2>conftest.er1
30604 grep -v '^ *+' conftest.er1 >conftest.err
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } &&
30609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30610 { (case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_try") 2>&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest$ac_exeext'
30620 { (case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_try") 2>&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; }; then
30629 ac_cv_lib_resolv_gethostbyname_r=yes
30631 echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30634 ac_cv_lib_resolv_gethostbyname_r=no
30637 rm -f core conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
30639 LIBS=$ac_check_lib_save_LIBS
30641 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30642 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30643 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30644 cat >>confdefs.h <<_ACEOF
30645 #define HAVE_LIBRESOLV 1
30648 LIBS="-lresolv $LIBS"
30658 for ac_func in inet_pton
30660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30664 echo $ECHO_N "(cached) $ECHO_C" >&6
30666 cat >conftest.$ac_ext <<_ACEOF
30669 cat confdefs.h >>conftest.$ac_ext
30670 cat >>conftest.$ac_ext <<_ACEOF
30671 /* end confdefs.h. */
30672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30674 #define $ac_func innocuous_$ac_func
30676 /* System header to define __stub macros and hopefully few prototypes,
30677 which can conflict with char $ac_func (); below.
30678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30679 <limits.h> exists even on freestanding compilers. */
30682 # include <limits.h>
30684 # include <assert.h>
30689 /* Override any GCC internal prototype to avoid an error.
30690 Use char because int might match the return type of a GCC
30691 builtin and then its argument prototype would still apply. */
30696 /* The GNU C library defines this for functions which it implements
30697 to always fail with ENOSYS. Some functions are actually named
30698 something starting with __ and the normal name is an alias. */
30699 #if defined __stub_$ac_func || defined __stub___$ac_func
30706 return $ac_func ();
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (ac_try="$ac_link"
30713 case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_link") 2>conftest.er1
30720 grep -v '^ *+' conftest.er1 >conftest.err
30722 cat conftest.err >&5
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); } &&
30725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30726 { (case "(($ac_try" in
30727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728 *) ac_try_echo=$ac_try;;
30730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731 (eval "$ac_try") 2>&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; } &&
30735 { ac_try='test -s conftest$ac_exeext'
30736 { (case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_try") 2>&5
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; }; then
30745 eval "$as_ac_var=yes"
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 eval "$as_ac_var=no"
30753 rm -f core conftest.err conftest.$ac_objext \
30754 conftest$ac_exeext conftest.$ac_ext
30756 ac_res=`eval echo '${'$as_ac_var'}'`
30757 { echo "$as_me:$LINENO: result: $ac_res" >&5
30758 echo "${ECHO_T}$ac_res" >&6; }
30759 if test `eval echo '${'$as_ac_var'}'` = yes; then
30760 cat >>confdefs.h <<_ACEOF
30761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30763 cat >>confdefs.h <<\_ACEOF
30764 #define HAVE_INET_PTON 1
30771 for ac_func in inet_ntop
30773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30777 echo $ECHO_N "(cached) $ECHO_C" >&6
30779 cat >conftest.$ac_ext <<_ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30787 #define $ac_func innocuous_$ac_func
30789 /* System header to define __stub macros and hopefully few prototypes,
30790 which can conflict with char $ac_func (); below.
30791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30792 <limits.h> exists even on freestanding compilers. */
30795 # include <limits.h>
30797 # include <assert.h>
30802 /* Override any GCC internal prototype to avoid an error.
30803 Use char because int might match the return type of a GCC
30804 builtin and then its argument prototype would still apply. */
30809 /* The GNU C library defines this for functions which it implements
30810 to always fail with ENOSYS. Some functions are actually named
30811 something starting with __ and the normal name is an alias. */
30812 #if defined __stub_$ac_func || defined __stub___$ac_func
30819 return $ac_func ();
30824 rm -f conftest.$ac_objext conftest$ac_exeext
30825 if { (ac_try="$ac_link"
30826 case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_link") 2>conftest.er1
30833 grep -v '^ *+' conftest.er1 >conftest.err
30835 cat conftest.err >&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
30838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30839 { (case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_try") 2>&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; } &&
30848 { ac_try='test -s conftest$ac_exeext'
30849 { (case "(($ac_try" in
30850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851 *) ac_try_echo=$ac_try;;
30853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854 (eval "$ac_try") 2>&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 eval "$as_ac_var=yes"
30860 echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30863 eval "$as_ac_var=no"
30866 rm -f core conftest.err conftest.$ac_objext \
30867 conftest$ac_exeext conftest.$ac_ext
30869 ac_res=`eval echo '${'$as_ac_var'}'`
30870 { echo "$as_me:$LINENO: result: $ac_res" >&5
30871 echo "${ECHO_T}$ac_res" >&6; }
30872 if test `eval echo '${'$as_ac_var'}'` = yes; then
30873 cat >>confdefs.h <<_ACEOF
30874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30876 cat >>confdefs.h <<\_ACEOF
30877 #define HAVE_INET_NTOP 1
30884 for ac_func in gethostbyname2
30886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30890 echo $ECHO_N "(cached) $ECHO_C" >&6
30892 cat >conftest.$ac_ext <<_ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h. */
30898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30900 #define $ac_func innocuous_$ac_func
30902 /* System header to define __stub macros and hopefully few prototypes,
30903 which can conflict with char $ac_func (); below.
30904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30905 <limits.h> exists even on freestanding compilers. */
30908 # include <limits.h>
30910 # include <assert.h>
30915 /* Override any GCC internal prototype to avoid an error.
30916 Use char because int might match the return type of a GCC
30917 builtin and then its argument prototype would still apply. */
30922 /* The GNU C library defines this for functions which it implements
30923 to always fail with ENOSYS. Some functions are actually named
30924 something starting with __ and the normal name is an alias. */
30925 #if defined __stub_$ac_func || defined __stub___$ac_func
30932 return $ac_func ();
30937 rm -f conftest.$ac_objext conftest$ac_exeext
30938 if { (ac_try="$ac_link"
30939 case "(($ac_try" in
30940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941 *) ac_try_echo=$ac_try;;
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944 (eval "$ac_link") 2>conftest.er1
30946 grep -v '^ *+' conftest.er1 >conftest.err
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } &&
30951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30952 { (case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_try") 2>&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; } &&
30961 { ac_try='test -s conftest$ac_exeext'
30962 { (case "(($ac_try" in
30963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964 *) ac_try_echo=$ac_try;;
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967 (eval "$ac_try") 2>&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; }; then
30971 eval "$as_ac_var=yes"
30973 echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30976 eval "$as_ac_var=no"
30979 rm -f core conftest.err conftest.$ac_objext \
30980 conftest$ac_exeext conftest.$ac_ext
30982 ac_res=`eval echo '${'$as_ac_var'}'`
30983 { echo "$as_me:$LINENO: result: $ac_res" >&5
30984 echo "${ECHO_T}$ac_res" >&6; }
30985 if test `eval echo '${'$as_ac_var'}'` = yes; then
30986 cat >>confdefs.h <<_ACEOF
30987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30989 cat >>confdefs.h <<\_ACEOF
30990 #define HAVE_GETHOSTBYNAME2 1
30997 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
30998 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
30999 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31008 #include <sys/socket.h>
31012 struct sockaddr s; s.sa_len;
31017 rm -f conftest.$ac_objext
31018 if { (ac_try="$ac_compile"
31019 case "(($ac_try" in
31020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021 *) ac_try_echo=$ac_try;;
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024 (eval "$ac_compile") 2>conftest.er1
31026 grep -v '^ *+' conftest.er1 >conftest.err
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
31031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31032 { (case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_try") 2>&5
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; } &&
31041 { ac_try='test -s conftest.$ac_objext'
31042 { (case "(($ac_try" in
31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044 *) ac_try_echo=$ac_try;;
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047 (eval "$ac_try") 2>&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
31051 ac_cv_struct_sockaddr_sa_len=yes
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31056 ac_cv_struct_sockaddr_sa_len=no
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31061 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31062 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31064 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31066 cat >>confdefs.h <<\_ACEOF
31067 #define HAVE_SA_LEN 1
31076 for ac_func in strftime
31078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31082 echo $ECHO_N "(cached) $ECHO_C" >&6
31084 cat >conftest.$ac_ext <<_ACEOF
31087 cat confdefs.h >>conftest.$ac_ext
31088 cat >>conftest.$ac_ext <<_ACEOF
31089 /* end confdefs.h. */
31090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31092 #define $ac_func innocuous_$ac_func
31094 /* System header to define __stub macros and hopefully few prototypes,
31095 which can conflict with char $ac_func (); below.
31096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31097 <limits.h> exists even on freestanding compilers. */
31100 # include <limits.h>
31102 # include <assert.h>
31107 /* Override any GCC internal prototype to avoid an error.
31108 Use char because int might match the return type of a GCC
31109 builtin and then its argument prototype would still apply. */
31114 /* The GNU C library defines this for functions which it implements
31115 to always fail with ENOSYS. Some functions are actually named
31116 something starting with __ and the normal name is an alias. */
31117 #if defined __stub_$ac_func || defined __stub___$ac_func
31124 return $ac_func ();
31129 rm -f conftest.$ac_objext conftest$ac_exeext
31130 if { (ac_try="$ac_link"
31131 case "(($ac_try" in
31132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133 *) ac_try_echo=$ac_try;;
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136 (eval "$ac_link") 2>conftest.er1
31138 grep -v '^ *+' conftest.er1 >conftest.err
31140 cat conftest.err >&5
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); } &&
31143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31144 { (case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_try") 2>&5
31151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); }; } &&
31153 { ac_try='test -s conftest$ac_exeext'
31154 { (case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_try") 2>&5
31161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); }; }; then
31163 eval "$as_ac_var=yes"
31165 echo "$as_me: failed program was:" >&5
31166 sed 's/^/| /' conftest.$ac_ext >&5
31168 eval "$as_ac_var=no"
31171 rm -f core conftest.err conftest.$ac_objext \
31172 conftest$ac_exeext conftest.$ac_ext
31174 ac_res=`eval echo '${'$as_ac_var'}'`
31175 { echo "$as_me:$LINENO: result: $ac_res" >&5
31176 echo "${ECHO_T}$ac_res" >&6; }
31177 if test `eval echo '${'$as_ac_var'}'` = yes; then
31178 cat >>confdefs.h <<_ACEOF
31179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31183 # strftime is in -lintl on SCO UNIX.
31184 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31185 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31186 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31187 echo $ECHO_N "(cached) $ECHO_C" >&6
31189 ac_check_lib_save_LIBS=$LIBS
31190 LIBS="-lintl $LIBS"
31191 cat >conftest.$ac_ext <<_ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31198 /* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31208 return strftime ();
31213 rm -f conftest.$ac_objext conftest$ac_exeext
31214 if { (ac_try="$ac_link"
31215 case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_link") 2>conftest.er1
31222 grep -v '^ *+' conftest.er1 >conftest.err
31224 cat conftest.err >&5
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); } &&
31227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31228 { (case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233 (eval "$ac_try") 2>&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; } &&
31237 { ac_try='test -s conftest$ac_exeext'
31238 { (case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_try") 2>&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; }; then
31247 ac_cv_lib_intl_strftime=yes
31249 echo "$as_me: failed program was:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31252 ac_cv_lib_intl_strftime=no
31255 rm -f core conftest.err conftest.$ac_objext \
31256 conftest$ac_exeext conftest.$ac_ext
31257 LIBS=$ac_check_lib_save_LIBS
31259 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31260 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31261 if test $ac_cv_lib_intl_strftime = yes; then
31262 cat >>confdefs.h <<\_ACEOF
31263 #define HAVE_STRFTIME 1
31266 LIBS="-lintl $LIBS"
31273 for ac_func in vprintf
31275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31279 echo $ECHO_N "(cached) $ECHO_C" >&6
31281 cat >conftest.$ac_ext <<_ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h. */
31287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31289 #define $ac_func innocuous_$ac_func
31291 /* System header to define __stub macros and hopefully few prototypes,
31292 which can conflict with char $ac_func (); below.
31293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31294 <limits.h> exists even on freestanding compilers. */
31297 # include <limits.h>
31299 # include <assert.h>
31304 /* Override any GCC internal prototype to avoid an error.
31305 Use char because int might match the return type of a GCC
31306 builtin and then its argument prototype would still apply. */
31311 /* The GNU C library defines this for functions which it implements
31312 to always fail with ENOSYS. Some functions are actually named
31313 something starting with __ and the normal name is an alias. */
31314 #if defined __stub_$ac_func || defined __stub___$ac_func
31321 return $ac_func ();
31326 rm -f conftest.$ac_objext conftest$ac_exeext
31327 if { (ac_try="$ac_link"
31328 case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_link") 2>conftest.er1
31335 grep -v '^ *+' conftest.er1 >conftest.err
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
31351 { (case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_try") 2>&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
31360 eval "$as_ac_var=yes"
31362 echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.$ac_ext >&5
31365 eval "$as_ac_var=no"
31368 rm -f core conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31371 ac_res=`eval echo '${'$as_ac_var'}'`
31372 { echo "$as_me:$LINENO: result: $ac_res" >&5
31373 echo "${ECHO_T}$ac_res" >&6; }
31374 if test `eval echo '${'$as_ac_var'}'` = yes; then
31375 cat >>confdefs.h <<_ACEOF
31376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31379 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31380 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31381 if test "${ac_cv_func__doprnt+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 cat >conftest.$ac_ext <<_ACEOF
31387 cat confdefs.h >>conftest.$ac_ext
31388 cat >>conftest.$ac_ext <<_ACEOF
31389 /* end confdefs.h. */
31390 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31392 #define _doprnt innocuous__doprnt
31394 /* System header to define __stub macros and hopefully few prototypes,
31395 which can conflict with char _doprnt (); below.
31396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31397 <limits.h> exists even on freestanding compilers. */
31400 # include <limits.h>
31402 # include <assert.h>
31407 /* Override any GCC internal prototype to avoid an error.
31408 Use char because int might match the return type of a GCC
31409 builtin and then its argument prototype would still apply. */
31414 /* The GNU C library defines this for functions which it implements
31415 to always fail with ENOSYS. Some functions are actually named
31416 something starting with __ and the normal name is an alias. */
31417 #if defined __stub__doprnt || defined __stub____doprnt
31429 rm -f conftest.$ac_objext conftest$ac_exeext
31430 if { (ac_try="$ac_link"
31431 case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_link") 2>conftest.er1
31438 grep -v '^ *+' conftest.er1 >conftest.err
31440 cat conftest.err >&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
31443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31444 { (case "(($ac_try" in
31445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446 *) ac_try_echo=$ac_try;;
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449 (eval "$ac_try") 2>&5
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); }; } &&
31453 { ac_try='test -s conftest$ac_exeext'
31454 { (case "(($ac_try" in
31455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456 *) ac_try_echo=$ac_try;;
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459 (eval "$ac_try") 2>&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 ac_cv_func__doprnt=yes
31465 echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31468 ac_cv_func__doprnt=no
31471 rm -f core conftest.err conftest.$ac_objext \
31472 conftest$ac_exeext conftest.$ac_ext
31474 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31476 if test $ac_cv_func__doprnt = yes; then
31478 cat >>confdefs.h <<\_ACEOF
31479 #define HAVE_DOPRNT 1
31488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31489 # for constant arguments. Useless!
31490 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31492 if test "${ac_cv_working_alloca_h+set}" = set; then
31493 echo $ECHO_N "(cached) $ECHO_C" >&6
31495 cat >conftest.$ac_ext <<_ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31501 #include <alloca.h>
31505 char *p = (char *) alloca (2 * sizeof (int));
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
31520 grep -v '^ *+' conftest.er1 >conftest.err
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_working_alloca_h=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_working_alloca_h=no
31553 rm -f core conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31556 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31558 if test $ac_cv_working_alloca_h = yes; then
31560 cat >>confdefs.h <<\_ACEOF
31561 #define HAVE_ALLOCA_H 1
31566 { echo "$as_me:$LINENO: checking for alloca" >&5
31567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31568 if test "${ac_cv_func_alloca_works+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 cat >conftest.$ac_ext <<_ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h. */
31578 # define alloca __builtin_alloca
31581 # include <malloc.h>
31582 # define alloca _alloca
31585 # include <alloca.h>
31590 # ifndef alloca /* predefined by HP cc +Olibcalls */
31601 char *p = (char *) alloca (1);
31607 rm -f conftest.$ac_objext conftest$ac_exeext
31608 if { (ac_try="$ac_link"
31609 case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_link") 2>conftest.er1
31616 grep -v '^ *+' conftest.er1 >conftest.err
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } &&
31621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31622 { (case "(($ac_try" in
31623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624 *) ac_try_echo=$ac_try;;
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_try") 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } &&
31631 { ac_try='test -s conftest$ac_exeext'
31632 { (case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_try") 2>&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 ac_cv_func_alloca_works=yes
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31646 ac_cv_func_alloca_works=no
31649 rm -f core conftest.err conftest.$ac_objext \
31650 conftest$ac_exeext conftest.$ac_ext
31652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31655 if test $ac_cv_func_alloca_works = yes; then
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_ALLOCA 1
31662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31663 # that cause trouble. Some versions do not even contain alloca or
31664 # contain a buggy version. If you still want to use their alloca,
31665 # use ar to extract alloca.o from them instead of compiling alloca.c.
31667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31669 cat >>confdefs.h <<\_ACEOF
31674 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31676 if test "${ac_cv_os_cray+set}" = set; then
31677 echo $ECHO_N "(cached) $ECHO_C" >&6
31679 cat >conftest.$ac_ext <<_ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h. */
31685 #if defined CRAY && ! defined CRAY2
31692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31693 $EGREP "webecray" >/dev/null 2>&1; then
31701 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31703 if test $ac_cv_os_cray = yes; then
31704 for ac_func in _getb67 GETB67 getb67; do
31705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709 echo $ECHO_N "(cached) $ECHO_C" >&6
31711 cat >conftest.$ac_ext <<_ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719 #define $ac_func innocuous_$ac_func
31721 /* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31727 # include <limits.h>
31729 # include <assert.h>
31734 /* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
31741 /* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31751 return $ac_func ();
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
31770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31771 { (case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_try") 2>&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); }; } &&
31780 { ac_try='test -s conftest$ac_exeext'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 eval "$as_ac_var=yes"
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31795 eval "$as_ac_var=no"
31798 rm -f core conftest.err conftest.$ac_objext \
31799 conftest$ac_exeext conftest.$ac_ext
31801 ac_res=`eval echo '${'$as_ac_var'}'`
31802 { echo "$as_me:$LINENO: result: $ac_res" >&5
31803 echo "${ECHO_T}$ac_res" >&6; }
31804 if test `eval echo '${'$as_ac_var'}'` = yes; then
31806 cat >>confdefs.h <<_ACEOF
31807 #define CRAY_STACKSEG_END $ac_func
31816 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31817 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31818 if test "${ac_cv_c_stack_direction+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31821 if test "$cross_compiling" = yes; then
31822 ac_cv_c_stack_direction=0
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 $ac_includes_default
31832 find_stack_direction ()
31834 static char *addr = 0;
31839 return find_stack_direction ();
31842 return (&dummy > addr) ? 1 : -1;
31848 return find_stack_direction () < 0;
31851 rm -f conftest$ac_exeext
31852 if { (ac_try="$ac_link"
31853 case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_link") 2>&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31862 { (case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_try") 2>&5
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; }; then
31871 ac_cv_c_stack_direction=1
31873 echo "$as_me: program exited with status $ac_status" >&5
31874 echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31877 ( exit $ac_status )
31878 ac_cv_c_stack_direction=-1
31880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31885 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31886 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31888 cat >>confdefs.h <<_ACEOF
31889 #define STACK_DIRECTION $ac_cv_c_stack_direction
31895 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31896 # -lseq on Dynix/PTX, -lgen on Unixware.
31897 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31898 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31899 if test "${ac_cv_search_getmntent+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31902 ac_func_search_save_LIBS=$LIBS
31903 cat >conftest.$ac_ext <<_ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h. */
31910 /* Override any GCC internal prototype to avoid an error.
31911 Use char because int might match the return type of a GCC
31912 builtin and then its argument prototype would still apply. */
31920 return getmntent ();
31925 for ac_lib in '' sun seq gen; do
31926 if test -z "$ac_lib"; then
31927 ac_res="none required"
31930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31932 rm -f conftest.$ac_objext conftest$ac_exeext
31933 if { (ac_try="$ac_link"
31934 case "(($ac_try" in
31935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31936 *) ac_try_echo=$ac_try;;
31938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31939 (eval "$ac_link") 2>conftest.er1
31941 grep -v '^ *+' conftest.er1 >conftest.err
31943 cat conftest.err >&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); } &&
31946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; } &&
31956 { ac_try='test -s conftest$ac_exeext'
31957 { (case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_try") 2>&5
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 ac_cv_search_getmntent=$ac_res
31968 echo "$as_me: failed program was:" >&5
31969 sed 's/^/| /' conftest.$ac_ext >&5
31974 rm -f core conftest.err conftest.$ac_objext \
31976 if test "${ac_cv_search_getmntent+set}" = set; then
31980 if test "${ac_cv_search_getmntent+set}" = set; then
31983 ac_cv_search_getmntent=no
31985 rm conftest.$ac_ext
31986 LIBS=$ac_func_search_save_LIBS
31988 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
31989 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
31990 ac_res=$ac_cv_search_getmntent
31991 if test "$ac_res" != no; then
31992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31997 for ac_func in getmntent
31999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32005 cat >conftest.$ac_ext <<_ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32013 #define $ac_func innocuous_$ac_func
32015 /* System header to define __stub macros and hopefully few prototypes,
32016 which can conflict with char $ac_func (); below.
32017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32018 <limits.h> exists even on freestanding compilers. */
32021 # include <limits.h>
32023 # include <assert.h>
32028 /* Override any GCC internal prototype to avoid an error.
32029 Use char because int might match the return type of a GCC
32030 builtin and then its argument prototype would still apply. */
32035 /* The GNU C library defines this for functions which it implements
32036 to always fail with ENOSYS. Some functions are actually named
32037 something starting with __ and the normal name is an alias. */
32038 #if defined __stub_$ac_func || defined __stub___$ac_func
32045 return $ac_func ();
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (ac_try="$ac_link"
32052 case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_link") 2>conftest.er1
32059 grep -v '^ *+' conftest.er1 >conftest.err
32061 cat conftest.err >&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } &&
32064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32065 { (case "(($ac_try" in
32066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; } &&
32074 { ac_try='test -s conftest$ac_exeext'
32075 { (case "(($ac_try" in
32076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077 *) ac_try_echo=$ac_try;;
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080 (eval "$ac_try") 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 eval "$as_ac_var=yes"
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 eval "$as_ac_var=no"
32092 rm -f core conftest.err conftest.$ac_objext \
32093 conftest$ac_exeext conftest.$ac_ext
32095 ac_res=`eval echo '${'$as_ac_var'}'`
32096 { echo "$as_me:$LINENO: result: $ac_res" >&5
32097 echo "${ECHO_T}$ac_res" >&6; }
32098 if test `eval echo '${'$as_ac_var'}'` = yes; then
32099 cat >>confdefs.h <<_ACEOF
32100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32107 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32109 if test "${ac_cv_func_closedir_void+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32112 if test "$cross_compiling" = yes; then
32113 ac_cv_func_closedir_void=yes
32115 cat >conftest.$ac_ext <<_ACEOF
32118 cat confdefs.h >>conftest.$ac_ext
32119 cat >>conftest.$ac_ext <<_ACEOF
32120 /* end confdefs.h. */
32121 $ac_includes_default
32122 #include <$ac_header_dirent>
32123 #ifndef __cplusplus
32130 return closedir (opendir (".")) != 0;
32135 rm -f conftest$ac_exeext
32136 if { (ac_try="$ac_link"
32137 case "(($ac_try" in
32138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139 *) ac_try_echo=$ac_try;;
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142 (eval "$ac_link") 2>&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32146 { (case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_try") 2>&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; }; then
32155 ac_cv_func_closedir_void=no
32157 echo "$as_me: program exited with status $ac_status" >&5
32158 echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32161 ( exit $ac_status )
32162 ac_cv_func_closedir_void=yes
32164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32169 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32170 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32171 if test $ac_cv_func_closedir_void = yes; then
32173 cat >>confdefs.h <<\_ACEOF
32174 #define CLOSEDIR_VOID 1
32179 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32180 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32181 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32182 echo $ECHO_N "(cached) $ECHO_C" >&6
32184 if test "$cross_compiling" = yes; then
32185 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32186 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32187 { (exit 1); exit 1; }; }
32189 cat >conftest.$ac_ext <<_ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32195 $ac_includes_default
32199 /* If this system has a BSD-style setpgrp which takes arguments,
32200 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32201 exit successfully. */
32202 return setpgrp (1,1) != -1;
32207 rm -f conftest$ac_exeext
32208 if { (ac_try="$ac_link"
32209 case "(($ac_try" in
32210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211 *) ac_try_echo=$ac_try;;
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214 (eval "$ac_link") 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32227 ac_cv_func_setpgrp_void=no
32229 echo "$as_me: program exited with status $ac_status" >&5
32230 echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32233 ( exit $ac_status )
32234 ac_cv_func_setpgrp_void=yes
32236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32241 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32242 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32243 if test $ac_cv_func_setpgrp_void = yes; then
32245 cat >>confdefs.h <<\_ACEOF
32246 #define SETPGRP_VOID 1
32250 # AC_FUNC_FNMATCH dnl use local version
32253 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32254 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32255 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32258 ac_check_lib_save_LIBS=$LIBS
32259 LIBS="-lintl $LIBS"
32260 cat >conftest.$ac_ext <<_ACEOF
32263 cat confdefs.h >>conftest.$ac_ext
32264 cat >>conftest.$ac_ext <<_ACEOF
32265 /* end confdefs.h. */
32267 /* Override any GCC internal prototype to avoid an error.
32268 Use char because int might match the return type of a GCC
32269 builtin and then its argument prototype would still apply. */
32282 rm -f conftest.$ac_objext conftest$ac_exeext
32283 if { (ac_try="$ac_link"
32284 case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_link") 2>conftest.er1
32291 grep -v '^ *+' conftest.er1 >conftest.err
32293 cat conftest.err >&5
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); } &&
32296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32297 { (case "(($ac_try" in
32298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299 *) ac_try_echo=$ac_try;;
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302 (eval "$ac_try") 2>&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); }; } &&
32306 { ac_try='test -s conftest$ac_exeext'
32307 { (case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_try") 2>&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; }; then
32316 ac_cv_lib_intl_gettext=yes
32318 echo "$as_me: failed program was:" >&5
32319 sed 's/^/| /' conftest.$ac_ext >&5
32321 ac_cv_lib_intl_gettext=no
32324 rm -f core conftest.err conftest.$ac_objext \
32325 conftest$ac_exeext conftest.$ac_ext
32326 LIBS=$ac_check_lib_save_LIBS
32328 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32329 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32330 if test $ac_cv_lib_intl_gettext = yes; then
32331 LIBS="$LIBS -lintl"
32337 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32338 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32339 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32340 echo $ECHO_N "(cached) $ECHO_C" >&6
32342 ac_check_lib_save_LIBS=$LIBS
32344 cat >conftest.$ac_ext <<_ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h. */
32351 /* Override any GCC internal prototype to avoid an error.
32352 Use char because int might match the return type of a GCC
32353 builtin and then its argument prototype would still apply. */
32361 return getpwnam ();
32366 rm -f conftest.$ac_objext conftest$ac_exeext
32367 if { (ac_try="$ac_link"
32368 case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_link") 2>conftest.er1
32375 grep -v '^ *+' conftest.er1 >conftest.err
32377 cat conftest.err >&5
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); } &&
32380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32381 { (case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_try") 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest$ac_exeext'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
32400 ac_cv_lib_sun_getpwnam=yes
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 ac_cv_lib_sun_getpwnam=no
32408 rm -f core conftest.err conftest.$ac_objext \
32409 conftest$ac_exeext conftest.$ac_ext
32410 LIBS=$ac_check_lib_save_LIBS
32412 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32413 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32414 if test $ac_cv_lib_sun_getpwnam = yes; then
32415 cat >>confdefs.h <<_ACEOF
32416 #define HAVE_LIBSUN 1
32425 for ac_header in zlib.h
32427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32432 echo $ECHO_N "(cached) $ECHO_C" >&6
32434 ac_res=`eval echo '${'$as_ac_Header'}'`
32435 { echo "$as_me:$LINENO: result: $ac_res" >&5
32436 echo "${ECHO_T}$ac_res" >&6; }
32438 # Is the header compilable?
32439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32441 cat >conftest.$ac_ext <<_ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h. */
32447 $ac_includes_default
32448 #include <$ac_header>
32450 rm -f conftest.$ac_objext
32451 if { (ac_try="$ac_compile"
32452 case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457 (eval "$ac_compile") 2>conftest.er1
32459 grep -v '^ *+' conftest.er1 >conftest.err
32461 cat conftest.err >&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
32464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32465 { (case "(($ac_try" in
32466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467 *) ac_try_echo=$ac_try;;
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_try") 2>&5
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest.$ac_objext'
32475 { (case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_try") 2>&5
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; }; then
32484 ac_header_compiler=yes
32486 echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32489 ac_header_compiler=no
32492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32494 echo "${ECHO_T}$ac_header_compiler" >&6; }
32496 # Is the header present?
32497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32499 cat >conftest.$ac_ext <<_ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h. */
32505 #include <$ac_header>
32507 if { (ac_try="$ac_cpp conftest.$ac_ext"
32508 case "(($ac_try" in
32509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510 *) ac_try_echo=$ac_try;;
32512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32515 grep -v '^ *+' conftest.er1 >conftest.err
32517 cat conftest.err >&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); } >/dev/null; then
32520 if test -s conftest.err; then
32521 ac_cpp_err=$ac_c_preproc_warn_flag
32522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32529 if test -z "$ac_cpp_err"; then
32530 ac_header_preproc=yes
32532 echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32535 ac_header_preproc=no
32538 rm -f conftest.err conftest.$ac_ext
32539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32540 echo "${ECHO_T}$ac_header_preproc" >&6; }
32542 # So? What about this header?
32543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32549 ac_header_preproc=yes
32552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32570 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 eval "$as_ac_Header=\$ac_header_preproc"
32574 ac_res=`eval echo '${'$as_ac_Header'}'`
32575 { echo "$as_me:$LINENO: result: $ac_res" >&5
32576 echo "${ECHO_T}$ac_res" >&6; }
32579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32580 cat >>confdefs.h <<_ACEOF
32581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32588 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32589 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32590 if test "${ac_cv_lib_z_deflate+set}" = set; then
32591 echo $ECHO_N "(cached) $ECHO_C" >&6
32593 ac_check_lib_save_LIBS=$LIBS
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 /* Override any GCC internal prototype to avoid an error.
32603 Use char because int might match the return type of a GCC
32604 builtin and then its argument prototype would still apply. */
32617 rm -f conftest.$ac_objext conftest$ac_exeext
32618 if { (ac_try="$ac_link"
32619 case "(($ac_try" in
32620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621 *) ac_try_echo=$ac_try;;
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624 (eval "$ac_link") 2>conftest.er1
32626 grep -v '^ *+' conftest.er1 >conftest.err
32628 cat conftest.err >&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); } &&
32631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32632 { (case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_try") 2>&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; } &&
32641 { ac_try='test -s conftest$ac_exeext'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; }; then
32651 ac_cv_lib_z_deflate=yes
32653 echo "$as_me: failed program was:" >&5
32654 sed 's/^/| /' conftest.$ac_ext >&5
32656 ac_cv_lib_z_deflate=no
32659 rm -f core conftest.err conftest.$ac_objext \
32660 conftest$ac_exeext conftest.$ac_ext
32661 LIBS=$ac_check_lib_save_LIBS
32663 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32664 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32665 if test $ac_cv_lib_z_deflate = yes; then
32670 if test x$FDLIBS = x-lz; then
32671 cat >>confdefs.h <<\_ACEOF
32672 #define HAVE_LIBZ 1
32679 # Check for ACL libraries
32682 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32683 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32684 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32685 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32686 echo $ECHO_N "(cached) $ECHO_C" >&6
32688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32689 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32691 # Is the header compilable?
32692 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32693 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32694 cat >conftest.$ac_ext <<_ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h. */
32700 $ac_includes_default
32701 #include <sys/acl.h>
32703 rm -f conftest.$ac_objext
32704 if { (ac_try="$ac_compile"
32705 case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_compile") 2>conftest.er1
32712 grep -v '^ *+' conftest.er1 >conftest.err
32714 cat conftest.err >&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } &&
32717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; } &&
32727 { ac_try='test -s conftest.$ac_objext'
32728 { (case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_try") 2>&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; }; then
32737 ac_header_compiler=yes
32739 echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32742 ac_header_compiler=no
32745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32747 echo "${ECHO_T}$ac_header_compiler" >&6; }
32749 # Is the header present?
32750 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32751 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32752 cat >conftest.$ac_ext <<_ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h. */
32758 #include <sys/acl.h>
32760 if { (ac_try="$ac_cpp conftest.$ac_ext"
32761 case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32768 grep -v '^ *+' conftest.er1 >conftest.err
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } >/dev/null; then
32773 if test -s conftest.err; then
32774 ac_cpp_err=$ac_c_preproc_warn_flag
32775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32782 if test -z "$ac_cpp_err"; then
32783 ac_header_preproc=yes
32785 echo "$as_me: failed program was:" >&5
32786 sed 's/^/| /' conftest.$ac_ext >&5
32788 ac_header_preproc=no
32791 rm -f conftest.err conftest.$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32793 echo "${ECHO_T}$ac_header_preproc" >&6; }
32795 # So? What about this header?
32796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32798 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32799 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32800 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32801 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32802 ac_header_preproc=yes
32805 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32806 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32807 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
32808 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
32809 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32810 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32811 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
32812 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32813 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32814 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32815 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32816 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32820 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32821 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32822 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32825 ac_cv_header_sys_acl_h=$ac_header_preproc
32827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32828 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32833 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32834 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32835 if test "${ac_cv_func_acl_get_file+set}" = set; then
32836 echo $ECHO_N "(cached) $ECHO_C" >&6
32838 cat >conftest.$ac_ext <<_ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h. */
32844 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32846 #define acl_get_file innocuous_acl_get_file
32848 /* System header to define __stub macros and hopefully few prototypes,
32849 which can conflict with char acl_get_file (); below.
32850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32851 <limits.h> exists even on freestanding compilers. */
32854 # include <limits.h>
32856 # include <assert.h>
32859 #undef acl_get_file
32861 /* Override any GCC internal prototype to avoid an error.
32862 Use char because int might match the return type of a GCC
32863 builtin and then its argument prototype would still apply. */
32867 char acl_get_file ();
32868 /* The GNU C library defines this for functions which it implements
32869 to always fail with ENOSYS. Some functions are actually named
32870 something starting with __ and the normal name is an alias. */
32871 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32878 return acl_get_file ();
32883 rm -f conftest.$ac_objext conftest$ac_exeext
32884 if { (ac_try="$ac_link"
32885 case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_link") 2>conftest.er1
32892 grep -v '^ *+' conftest.er1 >conftest.err
32894 cat conftest.err >&5
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); } &&
32897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32898 { (case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_try") 2>&5
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; } &&
32907 { ac_try='test -s conftest$ac_exeext'
32908 { (case "(($ac_try" in
32909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910 *) ac_try_echo=$ac_try;;
32912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913 (eval "$ac_try") 2>&5
32915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916 (exit $ac_status); }; }; then
32917 ac_cv_func_acl_get_file=yes
32919 echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32922 ac_cv_func_acl_get_file=no
32925 rm -f core conftest.err conftest.$ac_objext \
32926 conftest$ac_exeext conftest.$ac_ext
32928 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32929 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32930 if test $ac_cv_func_acl_get_file = yes; then
32933 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32934 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32935 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32936 echo $ECHO_N "(cached) $ECHO_C" >&6
32938 ac_check_lib_save_LIBS=$LIBS
32940 cat >conftest.$ac_ext <<_ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h. */
32947 /* Override any GCC internal prototype to avoid an error.
32948 Use char because int might match the return type of a GCC
32949 builtin and then its argument prototype would still apply. */
32953 char acl_get_file ();
32957 return acl_get_file ();
32962 rm -f conftest.$ac_objext conftest$ac_exeext
32963 if { (ac_try="$ac_link"
32964 case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_link") 2>conftest.er1
32971 grep -v '^ *+' conftest.er1 >conftest.err
32973 cat conftest.err >&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } &&
32976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32977 { (case "(($ac_try" in
32978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979 *) ac_try_echo=$ac_try;;
32981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982 (eval "$ac_try") 2>&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest$ac_exeext'
32987 { (case "(($ac_try" in
32988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989 *) ac_try_echo=$ac_try;;
32991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32992 (eval "$ac_try") 2>&5
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 ac_cv_lib_acl_acl_get_file=yes
32998 echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33001 ac_cv_lib_acl_acl_get_file=no
33004 rm -f core conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
33006 LIBS=$ac_check_lib_save_LIBS
33008 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33009 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33010 if test $ac_cv_lib_acl_acl_get_file = yes; then
33011 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33013 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33014 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33015 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33018 ac_check_lib_save_LIBS=$LIBS
33020 cat >conftest.$ac_ext <<_ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33027 /* Override any GCC internal prototype to avoid an error.
33028 Use char because int might match the return type of a GCC
33029 builtin and then its argument prototype would still apply. */
33037 return acltotext ();
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049 (eval "$ac_link") 2>conftest.er1
33051 grep -v '^ *+' conftest.er1 >conftest.err
33053 cat conftest.err >&5
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); } &&
33056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057 { (case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062 (eval "$ac_try") 2>&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; } &&
33066 { ac_try='test -s conftest$ac_exeext'
33067 { (case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_try") 2>&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 ac_cv_lib_sec_acltotext=yes
33078 echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33081 ac_cv_lib_sec_acltotext=no
33084 rm -f core conftest.err conftest.$ac_objext \
33085 conftest$ac_exeext conftest.$ac_ext
33086 LIBS=$ac_check_lib_save_LIBS
33088 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33089 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33090 if test $ac_cv_lib_sec_acltotext = yes; then
33091 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33100 if test $have_acl = yes; then
33101 cat >>confdefs.h <<\_ACEOF
33108 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33109 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33110 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 ac_check_lib_save_LIBS=$LIBS
33114 LIBS="-lpthread $LIBS"
33115 cat >conftest.$ac_ext <<_ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h. */
33122 /* Override any GCC internal prototype to avoid an error.
33123 Use char because int might match the return type of a GCC
33124 builtin and then its argument prototype would still apply. */
33128 char pthread_create ();
33132 return pthread_create ();
33137 rm -f conftest.$ac_objext conftest$ac_exeext
33138 if { (ac_try="$ac_link"
33139 case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_link") 2>conftest.er1
33146 grep -v '^ *+' conftest.er1 >conftest.err
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
33151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33152 { (case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; } &&
33161 { ac_try='test -s conftest$ac_exeext'
33162 { (case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_try") 2>&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }; then
33171 ac_cv_lib_pthread_pthread_create=yes
33173 echo "$as_me: failed program was:" >&5
33174 sed 's/^/| /' conftest.$ac_ext >&5
33176 ac_cv_lib_pthread_pthread_create=no
33179 rm -f core conftest.err conftest.$ac_objext \
33180 conftest$ac_exeext conftest.$ac_ext
33181 LIBS=$ac_check_lib_save_LIBS
33183 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33184 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33185 if test $ac_cv_lib_pthread_pthread_create = yes; then
33186 PTHREAD_LIB="-lpthread"
33188 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33189 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33190 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33193 ac_check_lib_save_LIBS=$LIBS
33194 LIBS="-lpthreads $LIBS"
33195 cat >conftest.$ac_ext <<_ACEOF
33198 cat confdefs.h >>conftest.$ac_ext
33199 cat >>conftest.$ac_ext <<_ACEOF
33200 /* end confdefs.h. */
33202 /* Override any GCC internal prototype to avoid an error.
33203 Use char because int might match the return type of a GCC
33204 builtin and then its argument prototype would still apply. */
33208 char pthread_create ();
33212 return pthread_create ();
33217 rm -f conftest.$ac_objext conftest$ac_exeext
33218 if { (ac_try="$ac_link"
33219 case "(($ac_try" in
33220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221 *) ac_try_echo=$ac_try;;
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224 (eval "$ac_link") 2>conftest.er1
33226 grep -v '^ *+' conftest.er1 >conftest.err
33228 cat conftest.err >&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } &&
33231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33232 { (case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_try") 2>&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); }; } &&
33241 { ac_try='test -s conftest$ac_exeext'
33242 { (case "(($ac_try" in
33243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 *) ac_try_echo=$ac_try;;
33246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247 (eval "$ac_try") 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 ac_cv_lib_pthreads_pthread_create=yes
33253 echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33256 ac_cv_lib_pthreads_pthread_create=no
33259 rm -f core conftest.err conftest.$ac_objext \
33260 conftest$ac_exeext conftest.$ac_ext
33261 LIBS=$ac_check_lib_save_LIBS
33263 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33264 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33265 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33266 PTHREAD_LIB="-lpthreads"
33268 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33269 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33270 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33271 echo $ECHO_N "(cached) $ECHO_C" >&6
33273 ac_check_lib_save_LIBS=$LIBS
33275 cat >conftest.$ac_ext <<_ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h. */
33282 /* Override any GCC internal prototype to avoid an error.
33283 Use char because int might match the return type of a GCC
33284 builtin and then its argument prototype would still apply. */
33288 char pthread_create ();
33292 return pthread_create ();
33297 rm -f conftest.$ac_objext conftest$ac_exeext
33298 if { (ac_try="$ac_link"
33299 case "(($ac_try" in
33300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301 *) ac_try_echo=$ac_try;;
33303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33304 (eval "$ac_link") 2>conftest.er1
33306 grep -v '^ *+' conftest.er1 >conftest.err
33308 cat conftest.err >&5
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); } &&
33311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33312 { (case "(($ac_try" in
33313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33314 *) ac_try_echo=$ac_try;;
33316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33317 (eval "$ac_try") 2>&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest$ac_exeext'
33322 { (case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_try") 2>&5
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; }; then
33331 ac_cv_lib_c_r_pthread_create=yes
33333 echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33336 ac_cv_lib_c_r_pthread_create=no
33339 rm -f core conftest.err conftest.$ac_objext \
33340 conftest$ac_exeext conftest.$ac_ext
33341 LIBS=$ac_check_lib_save_LIBS
33343 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33344 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33345 if test $ac_cv_lib_c_r_pthread_create = yes; then
33346 PTHREAD_LIB="-lc_r"
33348 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33349 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33350 if test "${ac_cv_func_pthread_create+set}" = set; then
33351 echo $ECHO_N "(cached) $ECHO_C" >&6
33353 cat >conftest.$ac_ext <<_ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h. */
33359 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33361 #define pthread_create innocuous_pthread_create
33363 /* System header to define __stub macros and hopefully few prototypes,
33364 which can conflict with char pthread_create (); below.
33365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33366 <limits.h> exists even on freestanding compilers. */
33369 # include <limits.h>
33371 # include <assert.h>
33374 #undef pthread_create
33376 /* Override any GCC internal prototype to avoid an error.
33377 Use char because int might match the return type of a GCC
33378 builtin and then its argument prototype would still apply. */
33382 char pthread_create ();
33383 /* The GNU C library defines this for functions which it implements
33384 to always fail with ENOSYS. Some functions are actually named
33385 something starting with __ and the normal name is an alias. */
33386 #if defined __stub_pthread_create || defined __stub___pthread_create
33393 return pthread_create ();
33398 rm -f conftest.$ac_objext conftest$ac_exeext
33399 if { (ac_try="$ac_link"
33400 case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_link") 2>conftest.er1
33407 grep -v '^ *+' conftest.er1 >conftest.err
33409 cat conftest.err >&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); } &&
33412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33413 { (case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_try") 2>&5
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; } &&
33422 { ac_try='test -s conftest$ac_exeext'
33423 { (case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_try") 2>&5
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432 ac_cv_func_pthread_create=yes
33434 echo "$as_me: failed program was:" >&5
33435 sed 's/^/| /' conftest.$ac_ext >&5
33437 ac_cv_func_pthread_create=no
33440 rm -f core conftest.err conftest.$ac_objext \
33441 conftest$ac_exeext conftest.$ac_ext
33443 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33444 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33457 cat >>confdefs.h <<\_ACEOF
33463 CFLAGS=${CFLAGS--O}
33465 if test x$have_gcc = xyes ; then
33466 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33467 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33469 LDFLAGS=${LDFLAGS--O}
33470 DB_LIBS="${SQL_LFLAGS}"
33471 CPPFLAGS="$CPPFLAGS"
33499 # Finally we set appropriate distribution specific
33500 # variables and defaults
33502 # PFILES are platform specific files
33503 PFILES="platforms/Makefile"
33507 hostname=`uname -n | cut -d '.' -f 1`
33508 if test x${hostname} = x ; then
33509 hostname="localhost"
33511 case "$DISTNAME" in
33514 PSCMD="ps -e -o pid,comm"
33515 PFILES="${PFILES} \
33516 platforms/aix/Makefile"
33517 TAPEDRIVE="/dev/rmt0.1"
33521 PTHREAD_LIB="-lpthread -lexc"
33522 if test "${CC}" = "gcc" ; then
33529 TAPEDRIVE="/dev/nrmt0"
33532 DISTVER=`uname -a |awk '{print $3}'`
33533 TAPEDRIVE="/dev/nrmt0"
33534 PTHREAD_LIB="-pthread"
33535 CFLAGS="${CFLAGS} -pthread"
33536 PSCMD="ps -ax -o pid,command"
33539 PFILES="${PFILES} \
33540 platforms/bsdi/Makefile \
33541 platforms/bsdi/bacula-fd \
33542 platforms/bsdi/bacula-sd \
33543 platforms/bsdi/bacula-dir"
33544 largefile_support="yes"
33547 DISTVER=`uname -a |awk '{print $3}'`
33548 TAPEDRIVE="/dev/nrst0"
33550 WCFLAGS="-mwindows"
33551 WLDFLAGS="-mwindows"
33555 TAPEDRIVE="/dev/nst0"
33556 PSCMD="ps -e -o pid,command"
33558 PFILES="${PFILES} \
33559 platforms/darwin/Makefile"
33562 DISTVER=`cat /etc/debian_version`
33563 TAPEDRIVE="/dev/nrst0"
33564 PSCMD="ps -e -o pid,command"
33567 DISTVER=`uname -a |awk '{print $3}'`
33568 VER=`echo $DISTVER | cut -c 1`
33569 if test x$VER = x4 ; then
33570 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33571 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33575 TAPEDRIVE="/dev/nrsa0"
33576 PSCMD="ps -ax -o pid,command"
33577 PFILES="${PFILES} \
33578 platforms/freebsd/Makefile \
33579 platforms/freebsd/bacula-fd \
33580 platforms/freebsd/bacula-sd \
33581 platforms/freebsd/bacula-dir"
33582 largefile_support="yes"
33585 PSCMD="UNIX95=1 ps -e -o pid,comm"
33586 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33588 TAPEDRIVE="/dev/rmt/0hnb"
33589 PTHREAD_LIB="-lpthread"
33590 cat >>confdefs.h <<\_ACEOF
33591 #define _INCLUDE_LONGLONG 1
33597 TAPEDRIVE="/dev/rmt/0cbn"
33598 PSCMD="ps -e -o pid,comm"
33599 PFILES="${PFILES} \
33600 platforms/irix/Makefile \
33601 platforms/irix/bacula-fd \
33602 platforms/irix/bacula-sd \
33603 platforms/irix/bacula-dir"
33606 DISTVER=`uname -a |awk '{print $3}'`
33609 TAPEDRIVE="/dev/nrst0"
33610 PSCMD="ps -ax -o pid,command"
33611 PTHREAD_LIB="-pthread"
33612 CFLAGS="${CFLAGS} -pthread"
33615 DISTVER=`uname -a |awk '{print $3}'`
33618 TAPEDRIVE="/dev/nrst0"
33619 PSCMD="ps -ax -o pid,command"
33620 PTHREAD_LIB="-pthread"
33621 CFLAGS="${CFLAGS} -pthread"
33622 PFILES="${PFILES} \
33623 platforms/openbsd/Makefile \
33624 platforms/openbsd/bacula-fd \
33625 platforms/openbsd/bacula-sd \
33626 platforms/openbsd/bacula-dir"
33629 if test -f /etc/whitebox-release ; then
33630 f=/etc/whitebox-release
33632 f=/etc/redhat-release
33634 if test `cat $f | grep release |\
33635 cut -f 3 -d ' '`x = "Enterprise"x ; then
33636 DISTVER="Enterprise "`cat $f | grep release |\
33639 DISTVER=`cat /etc/redhat-release | grep release |\
33642 TAPEDRIVE="/dev/nst0"
33643 PSCMD="ps -e -o pid,command"
33644 PFILES="${PFILES} \
33645 platforms/redhat/Makefile \
33646 platforms/redhat/bacula-fd \
33647 platforms/redhat/bacula-sd \
33648 platforms/redhat/bacula-dir \
33649 platforms/redhat/bacula.spec \
33653 DISTVER=`cat /etc/mandrake-release | grep release |\
33655 TAPEDRIVE="/dev/nst0"
33656 PSCMD="ps -e -o pid,command"
33657 PFILES="${PFILES} \
33658 platforms/mandrake/Makefile \
33659 platforms/mandrake/bacula-fd \
33660 platforms/mandrake/bacula-sd \
33661 platforms/mandrake/bacula-dir \
33662 platforms/mandrake/bacula.spec \
33666 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33667 TAPEDRIVE="/dev/nst0"
33668 PSCMD="ps -e -o pid,command"
33669 PFILES="${PFILES} \
33670 platforms/gentoo/Makefile \
33671 platforms/gentoo/bacula-init \
33672 platforms/gentoo/bacula-fd \
33673 platforms/gentoo/bacula-sd \
33674 platforms/gentoo/bacula-dir"
33677 DISTVER=`cat /etc/slackware-version`
33678 TAPEDRIVE="/dev/nst0"
33679 PSCMD="ps -e -o pid,command"
33680 PFILES="${PFILES} \
33681 platforms/slackware/Makefile \
33682 platforms/slackware/rc.bacula-fd \
33683 platforms/slackware/rc.bacula-sd \
33684 platforms/slackware/rc.bacula-dir\
33685 platforms/slackware/functions.bacula"
33689 TAPEDRIVE="/dev/rmt/0cbn"
33690 PSCMD="ps -e -o pid,comm"
33691 PFILES="${PFILES} \
33692 platforms/solaris/Makefile \
33693 platforms/solaris/bacula-fd \
33694 platforms/solaris/bacula-sd \
33695 platforms/solaris/bacula-dir"
33696 if test x$DISTVER = x5.6 ; then
33697 cat >>confdefs.h <<\_ACEOF
33698 #define HAVE_OLD_SOCKOPT 1
33702 LIBS="$LIBS -lresolv"
33705 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33707 TAPEDRIVE="/dev/nst0"
33708 PSCMD="ps -e -o pid,command"
33709 PFILES="${PFILES} \
33710 platforms/suse/Makefile \
33711 platforms/suse/bacula-fd \
33712 platforms/suse/bacula-sd \
33713 platforms/suse/bacula-dir \
33714 platforms/suse/bacula \
33715 platforms/suse/bacula.spec"
33720 TAPEDRIVE="/dev/nst0"
33721 PSCMD="ps -e -o pid,command"
33722 PFILES="${PFILES} \
33723 platforms/suse/Makefile \
33724 platforms/suse/bacula-fd \
33725 platforms/suse/bacula-sd \
33726 platforms/suse/bacula-dir"
33730 TAPEDRIVE="/dev/nst0"
33733 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33739 LIBS="$PTHREAD_LIB $LIBS"
33741 cat >>confdefs.h <<_ACEOF
33745 cat >>confdefs.h <<_ACEOF
33756 MCOMMON=./autoconf/Make.common
33759 if test "x${subsysdir}" = "x${sbindir}" ; then
33762 echo "You have set both --sbindir and --with-subsys-dir"
33763 echo " equal to: ${subsysdir} "
33764 echo "This is not permitted. Please reconfigure."
33766 echo "Aborting configuration ..."
33772 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33774 ac_config_commands="$ac_config_commands default"
33776 cat >confcache <<\_ACEOF
33777 # This file is a shell script that caches the results of configure
33778 # tests run on this system so they can be shared between configure
33779 # scripts and configure runs, see configure's option --config-cache.
33780 # It is not useful on other systems. If it contains results you don't
33781 # want to keep, you may remove or edit it.
33783 # config.status only pays attention to the cache file if you give it
33784 # the --recheck option to rerun configure.
33786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33788 # following values.
33792 # The following way of writing the cache mishandles newlines in values,
33793 # but we know of no workaround that is simple, portable, and efficient.
33794 # So, we kill variables containing newlines.
33795 # Ultrix sh set writes to stderr and can't be redirected directly,
33796 # and sets the high bit in the cache file unless we assign to the vars.
33798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33799 eval ac_val=\$$ac_var
33803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33807 _ | IFS | as_nl) ;; #(
33808 *) $as_unset $ac_var ;;
33814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33815 *${as_nl}ac_space=\ *)
33816 # `set' does not quote correctly, so add quotes (double-quote
33817 # substitution turns \\\\ into \\, and sed turns \\ into \).
33820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33823 # `set' quotes correctly as required by POSIX, so do not add quotes.
33824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33838 if test -w "$cache_file"; then
33839 test "x$cache_file" != "x/dev/null" &&
33840 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33841 echo "$as_me: updating cache $cache_file" >&6;}
33842 cat confcache >$cache_file
33844 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33845 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33851 # Let make expand exec_prefix.
33852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33854 DEFS=-DHAVE_CONFIG_H
33858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33859 # 1. Remove the extension, and $U if already installed.
33860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33861 ac_i=`echo "$ac_i" | sed "$ac_script"`
33862 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33863 # will be set to the directory where LIBOBJS objects are built.
33864 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33865 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33867 LIBOBJS=$ac_libobjs
33869 LTLIBOBJS=$ac_ltlibobjs
33873 : ${CONFIG_STATUS=./config.status}
33874 ac_clean_files_save=$ac_clean_files
33875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33876 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33877 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33878 cat >$CONFIG_STATUS <<_ACEOF
33880 # Generated by $as_me.
33881 # Run this file to recreate the current configuration.
33882 # Compiler output produced by configure, useful for debugging
33883 # configure, is in config.log if it exists.
33886 ac_cs_recheck=false
33888 SHELL=\${CONFIG_SHELL-$SHELL}
33891 cat >>$CONFIG_STATUS <<\_ACEOF
33892 ## --------------------- ##
33893 ## M4sh Initialization. ##
33894 ## --------------------- ##
33896 # Be Bourne compatible
33897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33900 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33901 # is contrary to our usage. Disable this feature.
33902 alias -g '${1+"$@"}'='"$@"'
33903 setopt NO_GLOB_SUBST
33905 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33907 BIN_SH=xpg4; export BIN_SH # for Tru64
33908 DUALCASE=1; export DUALCASE # for MKS sh
33912 # Avoid depending upon Character Ranges.
33913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33916 as_cr_digits='0123456789'
33917 as_cr_alnum=$as_cr_Letters$as_cr_digits
33919 # The user is always right.
33920 if test "${PATH_SEPARATOR+set}" != set; then
33921 echo "#! /bin/sh" >conf$$.sh
33922 echo "exit 0" >>conf$$.sh
33924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33932 # Support unset when possible.
33933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33941 # We need space, tab and new line, in precisely that order. Quoting is
33942 # there to prevent editors from complaining about space-tab.
33943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33944 # splitting by setting IFS to empty value.)
33949 # Find who we are. Look in the path if we contain no directory separator.
33951 *[\\/]* ) as_myself=$0 ;;
33952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33953 for as_dir in $PATH
33956 test -z "$as_dir" && as_dir=.
33957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33963 # We did not find ourselves, most probably we were run as `sh COMMAND'
33964 # in which case we are not to be found in the path.
33965 if test "x$as_myself" = x; then
33968 if test ! -f "$as_myself"; then
33969 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33970 { (exit 1); exit 1; }
33973 # Work around bugs in pre-3.0 UWIN ksh.
33974 for as_var in ENV MAIL MAILPATH
33975 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33983 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33984 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33985 LC_TELEPHONE LC_TIME
33987 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33988 eval $as_var=C; export $as_var
33990 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33994 # Required to use basename.
33995 if expr a : '\(a\)' >/dev/null 2>&1 &&
33996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34003 as_basename=basename
34009 # Name of the executable.
34010 as_me=`$as_basename -- "$0" ||
34011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34012 X"$0" : 'X\(//\)$' \| \
34013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34015 sed '/^.*\/\([^/][^/]*\)\/*$/{
34034 as_lineno_1=$LINENO
34035 as_lineno_2=$LINENO
34036 test "x$as_lineno_1" != "x$as_lineno_2" &&
34037 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34039 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34040 # uniformly replaced by the line number. The first 'sed' inserts a
34041 # line-number line after each line using $LINENO; the second 'sed'
34042 # does the real work. The second script uses 'N' to pair each
34043 # line-number line with the line containing $LINENO, and appends
34044 # trailing '-' during substitution so that $LINENO is not a special
34045 # case at line end.
34046 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34047 # scripts with optimization help from Paolo Bonzini. Blame Lee
34048 # E. McMahon (1931-1989) for sed's syntax. :-)
34060 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34063 ' >$as_me.lineno &&
34064 chmod +x "$as_me.lineno" ||
34065 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34066 { (exit 1); exit 1; }; }
34068 # Don't try to exec as it changes $[0], causing all sort of problems
34069 # (the dirname of $[0] is not the place where we might find the
34070 # original and so on. Autoconf is especially sensitive to this).
34071 . "./$as_me.lineno"
34072 # Exit status is that of the last command.
34077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34083 ECHO_C= ECHO_N= ECHO_T=
34084 case `echo -n x` in
34086 case `echo 'x\c'` in
34087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34094 if expr a : '\(a\)' >/dev/null 2>&1 &&
34095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34101 rm -f conf$$ conf$$.exe conf$$.file
34102 if test -d conf$$.dir; then
34103 rm -f conf$$.dir/conf$$.file
34109 if ln -s conf$$.file conf$$ 2>/dev/null; then
34111 # ... but there are two gotchas:
34112 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34113 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34114 # In both cases, we have to default to `cp -p'.
34115 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34117 elif ln conf$$.file conf$$ 2>/dev/null; then
34122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34123 rmdir conf$$.dir 2>/dev/null
34125 if mkdir -p . 2>/dev/null; then
34128 test -d ./-p && rmdir ./-p
34132 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34133 # systems may use methods other than mode bits to determine executability.
34134 cat >conf$$.file <<_ASEOF
34138 chmod +x conf$$.file
34139 if test -x conf$$.file >/dev/null 2>&1; then
34140 as_executable_p="test -x"
34146 # Sed expression to map a string onto a valid CPP name.
34147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34149 # Sed expression to map a string onto a valid variable name.
34150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34155 # Save the log message, to keep $[0] and so on meaningful, and to
34156 # report actual input values of CONFIG_FILES etc. instead of their
34157 # values after options handling.
34159 This file was extended by $as_me, which was
34160 generated by GNU Autoconf 2.60. Invocation command line was
34162 CONFIG_FILES = $CONFIG_FILES
34163 CONFIG_HEADERS = $CONFIG_HEADERS
34164 CONFIG_LINKS = $CONFIG_LINKS
34165 CONFIG_COMMANDS = $CONFIG_COMMANDS
34168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34173 cat >>$CONFIG_STATUS <<_ACEOF
34174 # Files that config.status was made for.
34175 config_files="$ac_config_files"
34176 config_headers="$ac_config_headers"
34177 config_commands="$ac_config_commands"
34181 cat >>$CONFIG_STATUS <<\_ACEOF
34183 \`$as_me' instantiates files from templates according to the
34184 current configuration.
34186 Usage: $0 [OPTIONS] [FILE]...
34188 -h, --help print this help, then exit
34189 -V, --version print version number, then exit
34190 -q, --quiet do not print progress messages
34191 -d, --debug don't remove temporary files
34192 --recheck update $as_me by reconfiguring in the same conditions
34193 --file=FILE[:TEMPLATE]
34194 instantiate the configuration file FILE
34195 --header=FILE[:TEMPLATE]
34196 instantiate the configuration header FILE
34198 Configuration files:
34201 Configuration headers:
34204 Configuration commands:
34207 Report bugs to <bug-autoconf@gnu.org>."
34210 cat >>$CONFIG_STATUS <<_ACEOF
34213 configured by $0, generated by GNU Autoconf 2.60,
34214 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34216 Copyright (C) 2006 Free Software Foundation, Inc.
34217 This config.status script is free software; the Free Software Foundation
34218 gives unlimited permission to copy, distribute and modify it."
34225 cat >>$CONFIG_STATUS <<\_ACEOF
34226 # If no file are specified by the user, then we need to provide default
34227 # value. By we need to know if files were specified by the user.
34233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34245 # Handling of the options.
34246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34249 echo "$ac_cs_version"; exit ;;
34250 --debug | --debu | --deb | --de | --d | -d )
34252 --file | --fil | --fi | --f )
34254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34255 ac_need_defaults=false;;
34256 --header | --heade | --head | --hea )
34258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34259 ac_need_defaults=false;;
34261 # Conflict between --help and --header
34262 { echo "$as_me: error: ambiguous option: $1
34263 Try \`$0 --help' for more information." >&2
34264 { (exit 1); exit 1; }; };;
34265 --help | --hel | -h )
34266 echo "$ac_cs_usage"; exit ;;
34267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34271 # This is an error.
34272 -*) { echo "$as_me: error: unrecognized option: $1
34273 Try \`$0 --help' for more information." >&2
34274 { (exit 1); exit 1; }; } ;;
34276 *) ac_config_targets="$ac_config_targets $1"
34277 ac_need_defaults=false ;;
34283 ac_configure_extra_args=
34285 if $ac_cs_silent; then
34287 ac_configure_extra_args="$ac_configure_extra_args --silent"
34291 cat >>$CONFIG_STATUS <<_ACEOF
34292 if \$ac_cs_recheck; then
34293 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34294 CONFIG_SHELL=$SHELL
34295 export CONFIG_SHELL
34296 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34300 cat >>$CONFIG_STATUS <<\_ACEOF
34304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34305 ## Running $as_me. ##
34311 cat >>$CONFIG_STATUS <<_ACEOF
34315 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34316 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34318 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34319 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34320 LINGUAS="${LINGUAS-%UNSET%}"
34325 cat >>$CONFIG_STATUS <<\_ACEOF
34327 # Handling of arguments.
34328 for ac_config_target in $ac_config_targets
34330 case $ac_config_target in
34331 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34332 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34333 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34335 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34336 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34337 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34338 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34339 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34340 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34341 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34342 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34343 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34344 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34345 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34346 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34347 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34348 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34349 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34350 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34351 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34352 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34353 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34354 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34355 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34356 "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34357 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34358 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34359 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34360 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34361 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34362 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34363 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34364 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34365 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34366 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34367 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34368 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34369 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34370 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34371 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34372 "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34373 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34374 "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34375 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34376 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34377 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34378 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34379 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34380 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34381 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34382 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34383 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34384 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34385 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34386 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34387 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34388 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34389 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34390 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34391 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34392 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34393 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34394 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34395 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34396 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34397 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34398 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34399 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34400 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34401 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34402 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34403 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34404 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34405 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34406 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34407 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34408 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34409 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34410 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34411 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34412 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34413 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34414 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34415 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34416 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34417 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34418 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34419 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34420 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34421 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34422 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34423 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34424 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34425 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34426 "src/pygtk-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
34427 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34428 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34429 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34430 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34434 { (exit 1); exit 1; }; };;
34439 # If the user did not use the arguments to specify the items to instantiate,
34440 # then the envvar interface is used. Set only those that are not.
34441 # We use the long form for the default assignment because of an extremely
34442 # bizarre bug on SunOS 4.1.3.
34443 if $ac_need_defaults; then
34444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34449 # Have a temporary directory for convenience. Make it in the build tree
34450 # simply because there is no reason against having it here, and in addition,
34451 # creating and moving files from /tmp can sometimes cause problems.
34452 # Hook for its removal unless debugging.
34453 # Note that there is a small window in which the directory will not be cleaned:
34454 # after its creation but before its name has been assigned to `$tmp'.
34458 trap 'exit_status=$?
34459 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34461 trap '{ (exit 1); exit 1; }' 1 2 13 15
34463 # Create a (secure) tmp directory for tmp files.
34466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34467 test -n "$tmp" && test -d "$tmp"
34470 tmp=./conf$$-$RANDOM
34471 (umask 077 && mkdir "$tmp")
34474 echo "$me: cannot create a temporary directory in ." >&2
34475 { (exit 1); exit 1; }
34479 # Set up the sed scripts for CONFIG_FILES section.
34482 # No need to generate the scripts if there are no CONFIG_FILES.
34483 # This happens for instance when ./config.status config.h
34484 if test -n "$CONFIG_FILES"; then
34488 # Create sed commands to just substitute file output variables.
34490 # Remaining file output variables are in a fragment that also has non-file
34496 for ac_last_try in false false false false false :; do
34497 cat >conf$$subs.sed <<_ACEOF
34498 SHELL!$SHELL$ac_delim
34499 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34500 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34501 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34502 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34503 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34504 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34505 exec_prefix!$exec_prefix$ac_delim
34506 prefix!$prefix$ac_delim
34507 program_transform_name!$program_transform_name$ac_delim
34508 bindir!$bindir$ac_delim
34509 sbindir!$sbindir$ac_delim
34510 libexecdir!$libexecdir$ac_delim
34511 datarootdir!$datarootdir$ac_delim
34512 datadir!$datadir$ac_delim
34513 sysconfdir!$sysconfdir$ac_delim
34514 sharedstatedir!$sharedstatedir$ac_delim
34515 localstatedir!$localstatedir$ac_delim
34516 includedir!$includedir$ac_delim
34517 oldincludedir!$oldincludedir$ac_delim
34518 docdir!$docdir$ac_delim
34519 infodir!$infodir$ac_delim
34520 htmldir!$htmldir$ac_delim
34521 dvidir!$dvidir$ac_delim
34522 pdfdir!$pdfdir$ac_delim
34523 psdir!$psdir$ac_delim
34524 libdir!$libdir$ac_delim
34525 localedir!$localedir$ac_delim
34526 mandir!$mandir$ac_delim
34527 DEFS!$DEFS$ac_delim
34528 ECHO_C!$ECHO_C$ac_delim
34529 ECHO_N!$ECHO_N$ac_delim
34530 ECHO_T!$ECHO_T$ac_delim
34531 LIBS!$LIBS$ac_delim
34532 build_alias!$build_alias$ac_delim
34533 host_alias!$host_alias$ac_delim
34534 target_alias!$target_alias$ac_delim
34535 BUILD_DIR!$BUILD_DIR$ac_delim
34536 TOP_DIR!$TOP_DIR$ac_delim
34537 TRUEPRG!$TRUEPRG$ac_delim
34538 FALSEPRG!$FALSEPRG$ac_delim
34539 VERSION!$VERSION$ac_delim
34540 DATE!$DATE$ac_delim
34541 LSMDATE!$LSMDATE$ac_delim
34543 CFLAGS!$CFLAGS$ac_delim
34544 LDFLAGS!$LDFLAGS$ac_delim
34545 CPPFLAGS!$CPPFLAGS$ac_delim
34546 ac_ct_CC!$ac_ct_CC$ac_delim
34547 EXEEXT!$EXEEXT$ac_delim
34548 OBJEXT!$OBJEXT$ac_delim
34550 CXXFLAGS!$CXXFLAGS$ac_delim
34551 ac_ct_CXX!$ac_ct_CXX$ac_delim
34553 GREP!$GREP$ac_delim
34554 EGREP!$EGREP$ac_delim
34555 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34556 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34557 INSTALL_DATA!$INSTALL_DATA$ac_delim
34558 RANLIB!$RANLIB$ac_delim
34563 ECHO!$ECHO$ac_delim
34567 OPENSSL!$OPENSSL$ac_delim
34570 MKISOFS!$MKISOFS$ac_delim
34571 PYTHON!$PYTHON$ac_delim
34572 GROWISOFS!$GROWISOFS$ac_delim
34573 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34574 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34575 PKGCONFIG!$PKGCONFIG$ac_delim
34576 WXCONFIG!$WXCONFIG$ac_delim
34577 WXFLAGS!$WXFLAGS$ac_delim
34578 CDRECORD!$CDRECORD$ac_delim
34579 PIDOF!$PIDOF$ac_delim
34581 ARFLAGS!$ARFLAGS$ac_delim
34582 MAKE_SHELL!$MAKE_SHELL$ac_delim
34583 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34584 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34585 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34586 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34587 build!$build$ac_delim
34588 build_cpu!$build_cpu$ac_delim
34589 build_vendor!$build_vendor$ac_delim
34590 build_os!$build_os$ac_delim
34591 host!$host$ac_delim
34594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34596 elif $ac_last_try; then
34597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34598 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34599 { (exit 1); exit 1; }; }
34601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34605 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34606 if test -n "$ac_eof"; then
34607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34608 ac_eof=`expr $ac_eof + 1`
34611 cat >>$CONFIG_STATUS <<_ACEOF
34612 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34614 /^[ ]*@MCOMMON@[ ]*$/{
34620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34621 s/^/s,@/; s/!/@,|#_!!_#|/
34624 s/'"$ac_delim"'$/,g/; t
34626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34627 ' >>$CONFIG_STATUS <conf$$subs.sed
34628 rm -f conf$$subs.sed
34629 cat >>$CONFIG_STATUS <<_ACEOF
34635 for ac_last_try in false false false false false :; do
34636 cat >conf$$subs.sed <<_ACEOF
34637 host_cpu!$host_cpu$ac_delim
34638 host_vendor!$host_vendor$ac_delim
34639 host_os!$host_os$ac_delim
34640 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34641 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34642 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34643 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34644 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34645 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34646 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34647 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34648 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34649 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34650 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34651 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34652 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34653 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34654 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34655 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34656 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34657 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34658 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34659 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34660 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34661 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34662 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34663 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34664 SET_MAKE!$SET_MAKE$ac_delim
34665 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34666 USE_NLS!$USE_NLS$ac_delim
34667 MSGFMT!$MSGFMT$ac_delim
34668 GMSGFMT!$GMSGFMT$ac_delim
34669 XGETTEXT!$XGETTEXT$ac_delim
34670 MSGMERGE!$MSGMERGE$ac_delim
34671 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34672 LIBICONV!$LIBICONV$ac_delim
34673 LTLIBICONV!$LTLIBICONV$ac_delim
34674 INTLLIBS!$INTLLIBS$ac_delim
34675 LIBINTL!$LIBINTL$ac_delim
34676 LTLIBINTL!$LTLIBINTL$ac_delim
34677 POSUB!$POSUB$ac_delim
34678 GLIBC2!$GLIBC2$ac_delim
34679 ALLOCA!$ALLOCA$ac_delim
34680 GLIBC21!$GLIBC21$ac_delim
34681 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34682 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34683 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34684 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34685 INTLBISON!$INTLBISON$ac_delim
34686 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34687 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34688 CATOBJEXT!$CATOBJEXT$ac_delim
34689 DATADIRNAME!$DATADIRNAME$ac_delim
34690 INSTOBJEXT!$INSTOBJEXT$ac_delim
34691 GENCAT!$GENCAT$ac_delim
34692 INTLOBJS!$INTLOBJS$ac_delim
34693 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34694 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34695 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34696 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34697 GNOME_LIBS!$GNOME_LIBS$ac_delim
34698 GNOME_DIR!$GNOME_DIR$ac_delim
34699 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34700 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34701 WX_DIR!$WX_DIR$ac_delim
34702 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34703 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34704 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34705 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34706 STATIC_FD!$STATIC_FD$ac_delim
34707 STATIC_SD!$STATIC_SD$ac_delim
34708 STATIC_DIR!$STATIC_DIR$ac_delim
34709 STATIC_CONS!$STATIC_CONS$ac_delim
34710 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34711 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34712 ALL_DIRS!$ALL_DIRS$ac_delim
34713 DIRD_DIR!$DIRD_DIR$ac_delim
34714 DIR_TOOLS!$DIR_TOOLS$ac_delim
34715 STORED_DIR!$STORED_DIR$ac_delim
34716 CONS_INC!$CONS_INC$ac_delim
34717 CONS_OBJ!$CONS_OBJ$ac_delim
34718 CONS_SRC!$CONS_SRC$ac_delim
34719 CONS_LIBS!$CONS_LIBS$ac_delim
34720 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34721 READLINE_SRC!$READLINE_SRC$ac_delim
34722 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34723 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34724 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34725 OPENSSL_INC!$OPENSSL_INC$ac_delim
34726 working_dir!$working_dir$ac_delim
34727 scriptdir!$scriptdir$ac_delim
34728 dump_email!$dump_email$ac_delim
34729 job_email!$job_email$ac_delim
34730 smtp_host!$smtp_host$ac_delim
34731 piddir!$piddir$ac_delim
34732 subsysdir!$subsysdir$ac_delim
34733 baseport!$baseport$ac_delim
34736 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34738 elif $ac_last_try; then
34739 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34741 { (exit 1); exit 1; }; }
34743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34748 if test -n "$ac_eof"; then
34749 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34750 ac_eof=`expr $ac_eof + 1`
34753 cat >>$CONFIG_STATUS <<_ACEOF
34754 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34759 s/^/s,@/; s/!/@,|#_!!_#|/
34762 s/'"$ac_delim"'$/,g/; t
34764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34765 ' >>$CONFIG_STATUS <conf$$subs.sed
34766 rm -f conf$$subs.sed
34767 cat >>$CONFIG_STATUS <<_ACEOF
34773 for ac_last_try in false false false false false :; do
34774 cat >conf$$subs.sed <<_ACEOF
34775 dir_port!$dir_port$ac_delim
34776 fd_port!$fd_port$ac_delim
34777 sd_port!$sd_port$ac_delim
34778 dir_password!$dir_password$ac_delim
34779 fd_password!$fd_password$ac_delim
34780 sd_password!$sd_password$ac_delim
34781 mon_dir_password!$mon_dir_password$ac_delim
34782 mon_fd_password!$mon_fd_password$ac_delim
34783 mon_sd_password!$mon_sd_password$ac_delim
34784 dir_user!$dir_user$ac_delim
34785 dir_group!$dir_group$ac_delim
34786 sd_user!$sd_user$ac_delim
34787 sd_group!$sd_group$ac_delim
34788 fd_user!$fd_user$ac_delim
34789 fd_group!$fd_group$ac_delim
34790 SBINPERM!$SBINPERM$ac_delim
34791 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34792 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34793 SQL_BINDIR!$SQL_BINDIR$ac_delim
34794 cats!$cats$ac_delim
34795 DB_NAME!$DB_NAME$ac_delim
34796 GETCONF!$GETCONF$ac_delim
34797 XMKMF!$XMKMF$ac_delim
34798 X_CFLAGS!$X_CFLAGS$ac_delim
34799 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34800 X_LIBS!$X_LIBS$ac_delim
34801 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34802 LIBOBJS!$LIBOBJS$ac_delim
34803 FDLIBS!$FDLIBS$ac_delim
34804 DEBUG!$DEBUG$ac_delim
34805 DINCLUDE!$DINCLUDE$ac_delim
34806 DLIB!$DLIB$ac_delim
34807 DB_LIBS!$DB_LIBS$ac_delim
34808 WCFLAGS!$WCFLAGS$ac_delim
34809 WLDFLAGS!$WLDFLAGS$ac_delim
34810 WRAPLIBS!$WRAPLIBS$ac_delim
34811 OBJLIST!$OBJLIST$ac_delim
34812 hostname!$hostname$ac_delim
34813 TAPEDRIVE!$TAPEDRIVE$ac_delim
34814 PSCMD!$PSCMD$ac_delim
34815 WIN32!$WIN32$ac_delim
34816 MACOSX!$MACOSX$ac_delim
34817 DISTNAME!$DISTNAME$ac_delim
34818 DISTVER!$DISTVER$ac_delim
34819 LTLIBOBJS!$LTLIBOBJS$ac_delim
34822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
34824 elif $ac_last_try; then
34825 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34827 { (exit 1); exit 1; }; }
34829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34834 if test -n "$ac_eof"; then
34835 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34836 ac_eof=`expr $ac_eof + 1`
34839 cat >>$CONFIG_STATUS <<_ACEOF
34840 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34845 s/^/s,@/; s/!/@,|#_!!_#|/
34848 s/'"$ac_delim"'$/,g/; t
34850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34851 ' >>$CONFIG_STATUS <conf$$subs.sed
34852 rm -f conf$$subs.sed
34853 cat >>$CONFIG_STATUS <<_ACEOF
34860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34862 # trailing colons and then remove the whole line if VPATH becomes empty
34863 # (actually we leave an empty line to preserve line numbers).
34864 if test "x$srcdir" = x.; then
34865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34866 s/:*\$(srcdir):*/:/
34867 s/:*\${srcdir}:*/:/
34869 s/^\([^=]*=[ ]*\):*/\1/
34875 cat >>$CONFIG_STATUS <<\_ACEOF
34876 fi # test -n "$CONFIG_FILES"
34879 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34882 :[FHLC]) ac_mode=$ac_tag; continue;;
34884 case $ac_mode$ac_tag in
34886 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34887 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34888 { (exit 1); exit 1; }; };;
34889 :[FH]-) ac_tag=-:-;;
34890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34907 -) ac_f="$tmp/stdin";;
34908 *) # Look for the file first in the build tree, then in the source tree
34909 # (if the path is not absolute). The absolute path cannot be DOS-style,
34910 # because $ac_f cannot contain `:'.
34914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34916 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34917 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34918 { (exit 1); exit 1; }; };;
34920 ac_file_inputs="$ac_file_inputs $ac_f"
34923 # Let's still pretend it is `configure' which instantiates (i.e., don't
34924 # use $as_me), people would be surprised to read:
34925 # /* config.h. Generated by config.status. */
34926 configure_input="Generated from "`IFS=:
34927 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34928 if test x"$ac_file" != x-; then
34929 configure_input="$ac_file. $configure_input"
34930 { echo "$as_me:$LINENO: creating $ac_file" >&5
34931 echo "$as_me: creating $ac_file" >&6;}
34935 *:-:* | *:-) cat >"$tmp/stdin";;
34940 ac_dir=`$as_dirname -- "$ac_file" ||
34941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34942 X"$ac_file" : 'X\(//\)[^/]' \| \
34943 X"$ac_file" : 'X\(//\)$' \| \
34944 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34950 /^X\(\/\/\)[^/].*/{
34965 -*) as_dir=./$as_dir;;
34967 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34971 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34972 *) as_qdir=$as_dir;;
34974 as_dirs="'$as_qdir' $as_dirs"
34975 as_dir=`$as_dirname -- "$as_dir" ||
34976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34977 X"$as_dir" : 'X\(//\)[^/]' \| \
34978 X"$as_dir" : 'X\(//\)$' \| \
34979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34985 /^X\(\/\/\)[^/].*/{
34998 test -d "$as_dir" && break
35000 test -z "$as_dirs" || eval "mkdir $as_dirs"
35001 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35002 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35003 { (exit 1); exit 1; }; }; }
35007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35009 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35010 # A ".." for each directory in $ac_dir_suffix.
35011 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35012 case $ac_top_builddir_sub in
35013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35017 ac_abs_top_builddir=$ac_pwd
35018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35019 # for backward compatibility:
35020 ac_top_builddir=$ac_top_build_prefix
35023 .) # We are building in place.
35025 ac_top_srcdir=$ac_top_builddir_sub
35026 ac_abs_top_srcdir=$ac_pwd ;;
35027 [\\/]* | ?:[\\/]* ) # Absolute name.
35028 ac_srcdir=$srcdir$ac_dir_suffix;
35029 ac_top_srcdir=$srcdir
35030 ac_abs_top_srcdir=$srcdir ;;
35031 *) # Relative name.
35032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35033 ac_top_srcdir=$ac_top_build_prefix$srcdir
35034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35051 cat >>$CONFIG_STATUS <<\_ACEOF
35052 # If the template does not know about datarootdir, expand it.
35053 # FIXME: This hack should be removed a few years after 2.60.
35054 ac_datarootdir_hack=; ac_datarootdir_seen=
35056 case `sed -n '/datarootdir/ {
35065 ' $ac_file_inputs` in
35066 *datarootdir*) ac_datarootdir_seen=yes;;
35067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35068 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35069 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35071 cat >>$CONFIG_STATUS <<_ACEOF
35072 ac_datarootdir_hack='
35073 s&@datadir@&$datadir&g
35074 s&@docdir@&$docdir&g
35075 s&@infodir@&$infodir&g
35076 s&@localedir@&$localedir&g
35077 s&@mandir@&$mandir&g
35078 s&\\\${datarootdir}&$datarootdir&g' ;;
35082 # Neutralize VPATH when `$srcdir' = `.'.
35083 # Shell code in configure.ac might set extrasub.
35084 # FIXME: do we really want to maintain this feature?
35085 cat >>$CONFIG_STATUS <<_ACEOF
35089 cat >>$CONFIG_STATUS <<\_ACEOF
35091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35092 s&@configure_input@&$configure_input&;t t
35093 s&@top_builddir@&$ac_top_builddir_sub&;t t
35094 s&@srcdir@&$ac_srcdir&;t t
35095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35096 s&@top_srcdir@&$ac_top_srcdir&;t t
35097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35098 s&@builddir@&$ac_builddir&;t t
35099 s&@abs_builddir@&$ac_abs_builddir&;t t
35100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35101 s&@INSTALL@&$ac_INSTALL&;t t
35102 $ac_datarootdir_hack
35103 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35106 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35108 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35109 which seems to be undefined. Please make sure it is defined." >&5
35110 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35111 which seems to be undefined. Please make sure it is defined." >&2;}
35115 -) cat "$tmp/out"; rm -f "$tmp/out";;
35116 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35125 # Transform confdefs.h into a sed script `conftest.defines', that
35126 # substitutes the proper values into config.h.in to produce config.h.
35127 rm -f conftest.defines conftest.tail
35128 # First, append a space to every undef/define line, to ease matching.
35129 echo 's/$/ /' >conftest.defines
35130 # Then, protect against being on the right side of a sed subst, or in
35131 # an unquoted here document, in config.status. If some macros were
35132 # called several times there might be several #defines for the same
35133 # symbol, which is useless. But do not sort them, since the last
35134 # AC_DEFINE must be honored.
35135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35136 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35137 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35138 # PARAMS is the parameter list in the macro definition--in most cases, it's
35139 # just an empty string.
35140 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35141 ac_dB='\\)[ (].*,\\1define\\2'
35149 s/^[ ]*#[ ]*define[ ][ ]*//
35154 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35155 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35156 ' >>conftest.defines
35158 # Remove the space that was appended to ease matching.
35159 # Then replace #undef with comments. This is necessary, for
35160 # example, in the case of _POSIX_SOURCE, which is predefined and required
35161 # on some systems where configure will not decide to define it.
35162 # (The regexp can be short, since the line contains either #define or #undef.)
35164 s,^[ #]*u.*,/* & */,' >>conftest.defines
35166 # Break up conftest.defines:
35167 ac_max_sed_lines=50
35169 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35170 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35171 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35173 ac_in='$ac_file_inputs'
35174 ac_out='"$tmp/out1"'
35175 ac_nxt='"$tmp/out2"'
35179 # Write a here document:
35180 cat >>$CONFIG_STATUS <<_ACEOF
35181 # First, check the format of the line:
35182 cat >"\$tmp/defines.sed" <<\\CEOF
35183 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35184 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35188 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35190 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35191 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35192 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35193 grep . conftest.tail >/dev/null || break
35194 rm -f conftest.defines
35195 mv conftest.tail conftest.defines
35197 rm -f conftest.defines conftest.tail
35199 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35200 cat >>$CONFIG_STATUS <<\_ACEOF
35201 if test x"$ac_file" != x-; then
35202 echo "/* $configure_input */" >"$tmp/config.h"
35203 cat "$ac_result" >>"$tmp/config.h"
35204 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35206 echo "$as_me: $ac_file is unchanged" >&6;}
35209 mv "$tmp/config.h" $ac_file
35212 echo "/* $configure_input */"
35218 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35219 echo "$as_me: executing $ac_file commands" >&6;}
35224 case $ac_file$ac_mode in
35226 for ac_file in $CONFIG_FILES; do
35227 # Support "outfile[:infile[:infile...]]"
35229 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35231 # PO directories have a Makefile.in generated from Makefile.in.in.
35232 case "$ac_file" in */Makefile.in)
35233 # Adjust a relative srcdir.
35234 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35235 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35236 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35237 # In autoconf-2.13 it is called $ac_given_srcdir.
35238 # In autoconf-2.50 it is called $srcdir.
35239 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35240 case "$ac_given_srcdir" in
35241 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35242 /*) top_srcdir="$ac_given_srcdir" ;;
35243 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35245 # Treat a directory as a PO directory if and only if it has a
35246 # POTFILES.in file. This allows packages to have multiple PO
35247 # directories under different names or in different locations.
35248 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35249 rm -f "$ac_dir/POTFILES"
35250 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35251 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35252 POMAKEFILEDEPS="POTFILES.in"
35253 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35254 # on $ac_dir but don't depend on user-specified configuration
35256 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35257 # The LINGUAS file contains the set of available languages.
35258 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35259 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35261 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35262 # Hide the ALL_LINGUAS assigment from automake.
35263 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35264 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35266 # The set of available languages was given in configure.in.
35267 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35270 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35271 # Compute UPDATEPOFILES
35272 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35273 # Compute DUMMYPOFILES
35274 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35276 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35277 case "$ac_given_srcdir" in
35279 *) srcdirpre='$(srcdir)/' ;;
35285 for lang in $ALL_LINGUAS; do
35286 POFILES="$POFILES $srcdirpre$lang.po"
35287 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35288 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35289 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35291 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35292 # environment variable.
35294 if test -n "$ALL_LINGUAS"; then
35295 for presentlang in $ALL_LINGUAS; do
35297 if test "%UNSET%" != "$LINGUAS"; then
35298 desiredlanguages="$LINGUAS"
35300 desiredlanguages="$ALL_LINGUAS"
35302 for desiredlang in $desiredlanguages; do
35303 # Use the presentlang catalog if desiredlang is
35304 # a. equal to presentlang, or
35305 # b. a variant of presentlang (because in this case,
35306 # presentlang can be used as a fallback for messages
35307 # which are not translated in the desiredlang catalog).
35308 case "$desiredlang" in
35309 "$presentlang"*) useit=yes;;
35312 if test $useit = yes; then
35313 INST_LINGUAS="$INST_LINGUAS $presentlang"
35318 if test -n "$INST_LINGUAS"; then
35319 for lang in $INST_LINGUAS; do
35320 CATALOGS="$CATALOGS $lang.gmo"
35323 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35324 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"
35325 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35326 if test -f "$f"; then
35328 *.orig | *.bak | *~) ;;
35329 *) cat "$f" >> "$ac_dir/Makefile" ;;
35337 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35344 { (exit 0); exit 0; }
35346 chmod +x $CONFIG_STATUS
35347 ac_clean_files=$ac_clean_files_save
35350 # configure is writing to config.log, and then calls config.status.
35351 # config.status does its own redirection, appending to config.log.
35352 # Unfortunately, on DOS this fails, as config.log is still kept open
35353 # by configure, so config.status won't be able to write to it; its
35354 # output is simply discarded. So we exec the FD to /dev/null,
35355 # effectively closing config.log, so it can be properly (re)opened and
35356 # appended to by config.status. When coming back to configure, we
35357 # need to make the FD available again.
35358 if test "$no_create" != yes; then
35360 ac_config_status_args=
35361 test "$silent" = yes &&
35362 ac_config_status_args="$ac_config_status_args --quiet"
35364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35367 # would make configure fail if this is the last instruction.
35368 $ac_cs_success || { (exit 1); exit 1; }
35373 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35374 chmod 755 dvd-handler dvd-simulator
35375 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35380 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35381 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35383 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35384 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35386 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35387 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35389 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35390 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35392 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35393 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35395 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35396 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35398 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35399 chmod 755 $c/sqlite
35402 chmod 755 src/win32/build-depkgs-mingw32
35404 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35405 largefile_support="yes"
35409 # A whole lot of hand springs to get the compiler version.
35410 # This is because gcc changed the output in version 3.0
35412 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35413 if test "x${CCVERSION}" = "x" ; then
35414 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35416 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35417 if test x"${CXXVERSION}" = x ; then
35418 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35421 if test "x${subsysdir}" = "x${sbindir}" ; then
35424 echo "You have set --sbindir and --with-subsys-dir"
35425 echo " both equal to: ${subsysdir} "
35426 echo " This is not permitted. Please reconfigure."
35428 echo "Aborting configuration ..."
35434 if test "x${db_name}" = "xInternal" ; then
35437 echo "You have not specified either --enable-client-only or one of the"
35438 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35439 echo " This is not permitted. Please reconfigure."
35441 echo "Aborting the configuration ..."
35448 Configuration on `date`:
35450 Host: $host -- ${DISTNAME} ${DISTVER}
35451 Bacula version: ${VERSION} (${DATE})
35452 Source code location: ${srcdir}
35453 Install binaries: ${sbindir}
35454 Install config files: ${sysconfdir}
35455 Scripts directory: ${scriptdir}
35456 Working directory: ${working_dir}
35457 PID directory: ${piddir}
35458 Subsys directory: ${subsysdir}
35459 Man directory: ${mandir}
35460 Data directory: ${datadir}
35461 C Compiler: ${CC} ${CCVERSION}
35462 C++ Compiler: ${CXX} ${CXXVERSION}
35463 Compiler flags: ${WCFLAGS} ${CFLAGS}
35464 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35466 Statically Linked Tools: ${support_static_tools}
35467 Statically Linked FD: ${support_static_fd}
35468 Statically Linked SD: ${support_static_sd}
35469 Statically Linked DIR: ${support_static_dir}
35470 Statically Linked CONS: ${support_static_cons}
35471 Database type: ${db_name}
35472 Database lib: ${DB_LIBS}
35474 Job Output Email: ${job_email}
35475 Traceback Email: ${dump_email}
35476 SMTP Host Address: ${smtp_host}
35478 Director Port: ${dir_port}
35479 File daemon Port: ${fd_port}
35480 Storage daemon Port: ${sd_port}
35482 Director User: ${dir_user}
35483 Director Group: ${dir_group}
35484 Storage Daemon User: ${sd_user}
35485 Storage DaemonGroup: ${sd_group}
35486 File Daemon User: ${fd_user}
35487 File Daemon Group: ${fd_group}
35489 SQL binaries Directory ${SQL_BINDIR}
35491 Large file support: $largefile_support
35492 Bacula conio support: ${got_conio} ${CONS_LIBS}
35493 readline support: ${got_readline} ${PRTREADLINE_SRC}
35494 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35495 TLS support: ${support_tls}
35496 Encryption support: ${support_crypto}
35497 ZLIB support: ${have_zlib}
35498 enable-smartalloc: ${support_smartalloc}
35499 enable-gnome: ${support_gnome} ${gnome_version}
35500 enable-wx-console: ${support_wx_console} ${wx_version}
35501 enable-tray-monitor: ${support_tray_monitor}
35502 client-only: ${build_client_only}
35503 build-dird: ${build_dird}
35504 build-stored: ${build_stored}
35505 ACL support: ${have_acl}
35506 Python support: ${support_python} ${PYTHON_LIBS}