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 --disable-conio disable conio support enabled
1444 --enable-ipv6 enable ipv6 support enabled
1446 --disable-readline disable readline support disable
1448 --disable-largefile omit support for large files
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-gnu-ld assume the C compiler uses GNU ld default=no
1454 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1455 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1456 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1457 --without-libintl-prefix don't search for libintl in includedir and libdir
1458 --with-included-gettext use the GNU gettext library included here
1459 --with-readline[=DIR] specify readline library directory
1461 --with-python[=DIR] Include Python support. DIR is the Python base
1462 install directory, default is to search through
1463 a number of common places for the Python files.
1464 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1465 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1466 --with-working-dir=PATH specify path of Bacula working directory
1467 --with-scriptdir=PATH specify path of Bacula scripts directory
1468 --with-dump-email=EMAIL dump email address
1469 --with-job-email=EMAIL job output email address
1470 --with-smtp-host=HOST SMTP mail host address
1471 --with-pid-dir=PATH specify location of Bacula pid files
1472 --with-subsys-dir=PATH specify location of Bacula subsys file
1473 --with-baseport=PORT specify base port address for daemons
1474 --with-dir-password=PASSWORD specify Director's password
1475 --with-fd-password=PASSWORD specify Client's password
1476 --with-sd-password=PASSWORD specify Storage daemon's password
1477 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1478 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1479 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1480 --with-dir-user=USER specify user for Director daemon
1481 --with-dir-group=GROUP specify group for Director daemon
1482 --with-sd-user=USER specify user for Storage daemon
1483 --with-sd-group=GROUP specify group for Storage daemon
1484 --with-fd-user=USER specify user for File daemon
1485 --with-fd-group=GROUP specify group for File daemon
1486 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1487 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1488 base install directory, defaults to /usr/local/pgsql
1490 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1491 install directory, default is to search through
1492 a number of common places for the MySQL files.
1494 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1495 install directory, default is to search through
1496 a number of common places for the MySQL files.
1498 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1499 install directory, default is to search through
1500 a number of common places for the SQLite3 files.
1502 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1503 install directory, default is to search through
1504 a number of common places for the SQLite files.
1505 --with-x use the X Window System
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1517 WXCONFIG wx-config command. On some systems, you must set it to
1518 wx-config-2.6 to use wxWidgets 2.6.
1519 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1520 XMKMF Path to xmkmf, Makefile generator for X Window System
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" || continue
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1552 .) # We are building in place.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1576 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1586 generated by GNU Autoconf 2.60
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1599 It was created by $as_me, which was
1600 generated by GNU Autoconf 2.60. Invocation command line was
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_must_keep_next=false
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 -* ) ac_must_keep_next=true ;;
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1716 # The following way of writing the cache mishandles newlines in values,
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1753 for ac_var in $ac_subst_vars
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1763 if test -n "$ac_subst_files"; then
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1770 for ac_var in $ac_subst_files
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1781 if test -s confdefs.h; then
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1872 # Check that the precious variables saved in the cache have kept the same
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1895 echo "$as_me: former value: $ac_old_val" >&2;}
1896 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1897 echo "$as_me: current value: $ac_new_val" >&2;}
1898 ac_cache_corrupted=:
1901 # Pass precious variables to config.status.
1902 if test "$ac_new_set" = set; then
1904 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 *) ac_arg=$ac_var=$ac_new_val ;;
1907 case " $ac_configure_args " in
1908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1909 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913 if $ac_cache_corrupted; then
1914 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918 { (exit 1); exit 1; }; }
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1981 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1989 # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 TRUEPRG=$ac_cv_path_TRUEPRG
2020 if test -n "$TRUEPRG"; then
2021 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2022 echo "${ECHO_T}$TRUEPRG" >&6; }
2024 { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2029 test -n "$TRUEPRG" && break
2031 test -n "$TRUEPRG" || TRUEPRG=":"
2033 for ac_prog in false
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2054 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 FALSEPRG=$ac_cv_path_FALSEPRG
2066 if test -n "$FALSEPRG"; then
2067 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2068 echo "${ECHO_T}$FALSEPRG" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$FALSEPRG" && break
2077 test -n "$FALSEPRG" || FALSEPRG=":"
2082 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2083 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2084 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2085 echo "configuring for bacula $VERSION ($DATE)"
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2133 if test -z "$ac_cv_prog_CC"; then
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_ac_ct_CC="gcc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2171 if test "x$ac_ct_CC" = x; then
2174 case $cross_compiling:$ac_tool_warned in
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="${ac_tool_prefix}cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2231 if test -z "$CC"; then
2232 # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2251 ac_prog_rejected=yes
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test $ac_prog_rejected = yes; then
2263 # We found a bogon in the path, so make sure we never use it.
2264 set dummy $ac_cv_prog_CC
2266 if test $# != 0; then
2267 # We chose a different compiler from the bogus one.
2268 # However, it has the same basename, so the bogon will be chosen
2269 # first if we set CC to just the basename; use the full file name.
2271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2277 if test -n "$CC"; then
2278 { echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2287 if test -z "$CC"; then
2288 if test -n "$ac_tool_prefix"; then
2289 for ac_prog in cl.exe
2291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 if test -n "$CC"; then
2320 { echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6; }
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2328 test -n "$CC" && break
2331 if test -z "$CC"; then
2333 for ac_prog in cl.exe
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_CC"; then
2343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_ac_ct_CC="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2372 test -n "$ac_ct_CC" && break
2375 if test "x$ac_ct_CC" = x; then
2378 case $cross_compiling:$ac_tool_warned in
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386 ac_tool_warned=yes ;;
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2401 # Provide some information about the compiler.
2402 echo "$as_me:$LINENO: checking for C compiler version" >&5
2403 ac_compiler=`set X $ac_compile; echo $2`
2404 { (ac_try="$ac_compiler --version >&5"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compiler --version >&5") 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2414 { (ac_try="$ac_compiler -v >&5"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_compiler -v >&5") 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }
2424 { (ac_try="$ac_compiler -V >&5"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compiler -V >&5") 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2450 ac_clean_files_save=$ac_clean_files
2451 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2452 # Try to create an executable without -o first, disregard a.out.
2453 # It will help us diagnose broken compilers, and finding out an intuition
2455 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2456 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2457 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2459 # List of possible output files, starting from the most likely.
2460 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2461 # only as a last resort. b.out is created by i960 compilers.
2462 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2464 # The IRIX 6 linker writes into existing files which may not be
2465 # executable, retaining their permissions. Remove them first so a
2466 # subsequent execution test works.
2468 for ac_file in $ac_files
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2477 if { (ac_try="$ac_link_default"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_link_default") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; then
2487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2492 for ac_file in $ac_files
2494 test -f "$ac_file" || continue
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2499 # We found the default executable, but exeext='' is most
2503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2507 # We set ac_cv_exeext here because the later test for it is not
2508 # safe: cross compilers may not add the suffix if given an `-o'
2509 # argument, so we may need to know it at that point already.
2510 # Even if this section looks crufty: it has the advantage of
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&2;}
2527 { (exit 77); exit 77; }; }
2530 ac_exeext=$ac_cv_exeext
2531 { echo "$as_me:$LINENO: result: $ac_file" >&5
2532 echo "${ECHO_T}$ac_file" >&6; }
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541 if { ac_try='./$ac_file'
2542 { (case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_try") 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2553 if test "$cross_compiling" = maybe; then
2556 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2566 { echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6; }
2569 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2570 ac_clean_files=$ac_clean_files_save
2571 # Check that the compiler produces executables we can run. If not, either
2572 # the compiler is broken, or we cross compile.
2573 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2574 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2575 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2576 echo "${ECHO_T}$cross_compiling" >&6; }
2578 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2579 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2580 if { (ac_try="$ac_link"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_link") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2594 for ac_file in conftest.exe conftest conftest.*; do
2595 test -f "$ac_file" || continue
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2611 rm -f conftest$ac_cv_exeext
2612 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2613 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2615 rm -f conftest.$ac_ext
2616 EXEEXT=$ac_cv_exeext
2618 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2619 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2620 if test "${ac_cv_objext+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2638 rm -f conftest.o conftest.obj
2639 if { (ac_try="$ac_compile"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 for ac_file in conftest.o conftest.obj conftest.*; do
2650 test -f "$ac_file" || continue;
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6; }
2672 OBJEXT=$ac_cv_objext
2674 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2676 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712 { (case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_try") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_save_c_werror_flag=$ac_c_werror_flag
2754 ac_c_werror_flag=yes
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compile") 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_try") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_try") 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 ac_c_werror_flag=$ac_save_c_werror_flag
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_try") 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_try") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 ac_c_werror_flag=$ac_save_c_werror_flag
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2936 if test "$ac_test_CFLAGS" = set; then
2937 CFLAGS=$ac_save_CFLAGS
2938 elif test $ac_cv_prog_cc_g = yes; then
2939 if test "$GCC" = yes; then
2945 if test "$GCC" = yes; then
2951 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2952 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_cc_c89+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_cv_prog_cc_c89=no
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2966 #include <sys/types.h>
2967 #include <sys/stat.h>
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2982 s = g (p, va_arg (v,int));
2987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2988 function prototypes and stuff, but not '\xHH' hex character constants.
2989 These don't provoke an error unfortunately, instead are silently treated
2990 as 'x'. The following induces an error, until -std is added to get
2991 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2992 array size at least. It's necessary to write '\x00'==0 to get something
2993 that's true only with -std. */
2994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2997 inside strings and character constants. */
2999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3001 int test (int i, double x);
3002 struct s1 {int (*f) (int a);};
3003 struct s2 {int (*f) (double a);};
3004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3010 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3015 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3016 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3018 CC="$ac_save_CC $ac_arg"
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cc_c89=$ac_arg
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext
3062 test "x$ac_cv_prog_cc_c89" != "xno" && break
3064 rm -f conftest.$ac_ext
3069 case "x$ac_cv_prog_cc_c89" in
3071 { echo "$as_me:$LINENO: result: none needed" >&5
3072 echo "${ECHO_T}none needed" >&6; } ;;
3074 { echo "$as_me:$LINENO: result: unsupported" >&5
3075 echo "${ECHO_T}unsupported" >&6; } ;;
3077 CC="$CC $ac_cv_prog_cc_c89"
3078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_cpp='$CXXCPP $CPPFLAGS'
3091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094 if test -z "$CXX"; then
3095 if test -n "$CCC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_CXX+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 if test -n "$CXX"; then
3109 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test -n "$CXX"; then
3130 { echo "$as_me:$LINENO: result: $CXX" >&5
3131 echo "${ECHO_T}$CXX" >&6; }
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3138 test -n "$CXX" && break
3141 if test -z "$CXX"; then
3143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3149 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 if test -n "$ac_ct_CXX"; then
3153 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_ac_ct_CXX="$ac_prog"
3163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173 if test -n "$ac_ct_CXX"; then
3174 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3175 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3177 { echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6; }
3182 test -n "$ac_ct_CXX" && break
3185 if test "x$ac_ct_CXX" = x; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3191 whose name does not start with the host triplet. If you think this
3192 configuration is useful to you, please write to autoconf@gnu.org." >&5
3193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3194 whose name does not start with the host triplet. If you think this
3195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3196 ac_tool_warned=yes ;;
3204 # Provide some information about the compiler.
3205 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3206 ac_compiler=`set X $ac_compile; echo $2`
3207 { (ac_try="$ac_compiler --version >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compiler --version >&5") 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3217 { (ac_try="$ac_compiler -v >&5"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compiler -v >&5") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (ac_try="$ac_compiler -V >&5"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compiler -V >&5") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3238 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_try") 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3307 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3308 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3309 GXX=`test $ac_compiler_gnu = yes && echo yes`
3310 ac_test_CXXFLAGS=${CXXFLAGS+set}
3311 ac_save_CXXFLAGS=$CXXFLAGS
3312 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3313 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cxx_g+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3318 ac_cxx_werror_flag=yes
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cxx_g=yes
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_prog_cxx_g=yes
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3500 if test "$ac_test_CXXFLAGS" = set; then
3501 CXXFLAGS=$ac_save_CXXFLAGS
3502 elif test $ac_cv_prog_cxx_g = yes; then
3503 if test "$GXX" = yes; then
3509 if test "$GXX" = yes; then
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 if test "x$CC" != xcc; then
3522 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3523 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3525 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3526 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3528 set dummy $CC; ac_cc=`echo $2 |
3529 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3530 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3548 # Make sure it works both with $CC and with simple cc.
3549 # We do the test twice because some compilers refuse to overwrite an
3550 # existing .o file with -o, though they will create one.
3551 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3553 if { (case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_try") 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_try") 2>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); };
3572 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3573 if test "x$CC" != xcc; then
3574 # Test first that cc exists at all.
3575 if { ac_try='cc -c conftest.$ac_ext >&5'
3576 { (case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_try") 2>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3587 if { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); };
3609 # cc exists but doesn't like -o.
3610 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3615 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3617 rm -f core conftest*
3620 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3624 { echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6; }
3627 cat >>confdefs.h <<\_ACEOF
3628 #define NO_MINUS_C_MINUS_O 1
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3639 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3640 # On Suns, sometimes $CPP names a directory.
3641 if test -n "$CPP" && test -d "$CPP"; then
3644 if test -z "$CPP"; then
3645 if test "${ac_cv_prog_CPP+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 # Double quotes because CPP needs to be expanded
3649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3652 for ac_c_preproc_warn_flag in '' yes
3654 # Use a header file that comes with gcc, so configuring glibc
3655 # with a fresh cross-compiler works.
3656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657 # <limits.h> exists even on freestanding compilers.
3658 # On the NeXT, cc -E runs the code through the compiler's parser,
3659 # not just through cpp. "Syntax error" is here to catch this case.
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3667 # include <limits.h>
3669 # include <assert.h>
3673 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } >/dev/null; then
3686 if test -s conftest.err; then
3687 ac_cpp_err=$ac_c_preproc_warn_flag
3688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3695 if test -z "$ac_cpp_err"; then
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3739 if test -z "$ac_cpp_err"; then
3740 # Broken: success on invalid input.
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error" is here to catch this case.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 # include <limits.h>
3788 # include <assert.h>
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null; then
3805 if test -s conftest.err; then
3806 ac_cpp_err=$ac_c_preproc_warn_flag
3807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3814 if test -z "$ac_cpp_err"; then
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 # Broken: fails on valid input.
3824 rm -f conftest.err conftest.$ac_ext
3826 # OK, works on sane cases. Now check whether nonexistent headers
3827 # can be detected and how.
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <ac_nonexistent.h>
3836 if { (ac_try="$ac_cpp conftest.$ac_ext"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null; then
3849 if test -s conftest.err; then
3850 ac_cpp_err=$ac_c_preproc_warn_flag
3851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3858 if test -z "$ac_cpp_err"; then
3859 # Broken: success on invalid input.
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 # Passes both tests.
3870 rm -f conftest.err conftest.$ac_ext
3873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874 rm -f conftest.err conftest.$ac_ext
3875 if $ac_preproc_ok; then
3878 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3893 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_GREP+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 # Extract the first word of "grep ggrep" to use in msg output
3898 if test -z "$GREP"; then
3899 set dummy grep ggrep; ac_prog_name=$2
3900 if test "${ac_cv_path_GREP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_path_GREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in grep ggrep; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3913 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3914 # Check for GNU ac_path_GREP and select it if it is found.
3915 # Check for GNU $ac_path_GREP
3916 case `"$ac_path_GREP" --version 2>&1` in
3918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3924 cat "conftest.in" "conftest.in" >"conftest.tmp"
3925 mv "conftest.tmp" "conftest.in"
3926 cp "conftest.in" "conftest.nl"
3927 echo 'GREP' >> "conftest.nl"
3928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930 ac_count=`expr $ac_count + 1`
3931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_GREP="$ac_path_GREP"
3934 ac_path_GREP_max=$ac_count
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 $ac_path_GREP_found && break 3
3953 GREP="$ac_cv_path_GREP"
3954 if test -z "$GREP"; then
3955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957 { (exit 1); exit 1; }; }
3961 ac_cv_path_GREP=$GREP
3966 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3968 GREP="$ac_cv_path_GREP"
3971 { echo "$as_me:$LINENO: checking for egrep" >&5
3972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977 then ac_cv_path_EGREP="$GREP -E"
3979 # Extract the first word of "egrep" to use in msg output
3980 if test -z "$EGREP"; then
3981 set dummy egrep; ac_prog_name=$2
3982 if test "${ac_cv_path_EGREP+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_path_EGREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 test -z "$as_dir" && as_dir=.
3992 for ac_prog in egrep; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3995 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3996 # Check for GNU ac_path_EGREP and select it if it is found.
3997 # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
4000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4003 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 echo 'EGREP' >> "conftest.nl"
4010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012 ac_count=`expr $ac_count + 1`
4013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_EGREP="$ac_path_EGREP"
4016 ac_path_EGREP_max=$ac_count
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 $ac_path_EGREP_found && break 3
4035 EGREP="$ac_cv_path_EGREP"
4036 if test -z "$EGREP"; then
4037 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039 { (exit 1); exit 1; }; }
4043 ac_cv_path_EGREP=$EGREP
4049 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4054 if test $ac_cv_c_compiler_gnu = yes; then
4055 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4056 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 ac_pattern="Autoconf.*'x'"
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4072 ac_cv_prog_gcc_traditional=yes
4074 ac_cv_prog_gcc_traditional=no
4079 if test $ac_cv_prog_gcc_traditional = no; then
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4091 ac_cv_prog_gcc_traditional=yes
4097 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4098 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4099 if test $ac_cv_prog_gcc_traditional = yes; then
4100 CC="$CC -traditional"
4104 BASECC=`basename $CC`
4106 if test "x$BASECC" = xgcc; then
4107 cat >>confdefs.h <<\_ACEOF
4113 # Extract the first word of "$CXX", so it can be a program name with args.
4114 set dummy $CXX; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_path_CXX+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4145 if test -n "$CXX"; then
4146 { echo "$as_me:$LINENO: result: $CXX" >&5
4147 echo "${ECHO_T}$CXX" >&6; }
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4154 if test ! -e $CXX; then
4155 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4156 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4157 { (exit 1); exit 1; }; }
4160 # Find a good install program. We prefer a C program (faster),
4161 # so one script is as good as another. But avoid the broken or
4162 # incompatible versions:
4163 # SysV /etc/install, /usr/sbin/install
4164 # SunOS /usr/etc/install
4165 # IRIX /sbin/install
4167 # AmigaOS /C/install, which installs bootblocks on floppy discs
4168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4171 # OS/2's system install, which has a completely different semantic
4172 # ./install, which can be erroneously created by make from ./install.sh.
4173 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4174 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4175 if test -z "$INSTALL"; then
4176 if test "${ac_cv_path_install+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 # Account for people who put trailing slashes in PATH elements.
4186 ./ | .// | /cC/* | \
4187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4191 # OSF1 and SCO ODT 3.0 have their own names for install.
4192 # Don't use installbsd from OSF since it installs stuff as root
4194 for ac_prog in ginstall scoinst install; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4197 if test $ac_prog = install &&
4198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4199 # AIX install. It has an incompatible calling convention.
4201 elif test $ac_prog = install &&
4202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203 # program-specific install script used by HP pwplus--don't use.
4206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4219 if test "${ac_cv_path_install+set}" = set; then
4220 INSTALL=$ac_cv_path_install
4222 # As a last resort, use the slow shell script. Don't cache a
4223 # value for INSTALL within a source directory, because that will
4224 # break other packages using the cache if that directory is
4225 # removed, or if the value is a relative name.
4226 INSTALL=$ac_install_sh
4229 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4230 echo "${ECHO_T}$INSTALL" >&6; }
4232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4233 # It thinks the first close brace ends the variable substitution.
4234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4238 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_RANLIB+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$RANLIB"; then
4249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 RANLIB=$ac_cv_prog_RANLIB
4269 if test -n "$RANLIB"; then
4270 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4271 echo "${ECHO_T}$RANLIB" >&6; }
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4279 if test -z "$ac_cv_prog_RANLIB"; then
4280 ac_ct_RANLIB=$RANLIB
4281 # Extract the first word of "ranlib", so it can be a program name with args.
4282 set dummy ranlib; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$ac_ct_RANLIB"; then
4289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_ac_ct_RANLIB="ranlib"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4309 if test -n "$ac_ct_RANLIB"; then
4310 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4313 { echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6; }
4317 if test "x$ac_ct_RANLIB" = x; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4323 whose name does not start with the host triplet. If you think this
4324 configuration is useful to you, please write to autoconf@gnu.org." >&5
4325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet. If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4328 ac_tool_warned=yes ;;
4330 RANLIB=$ac_ct_RANLIB
4333 RANLIB="$ac_cv_prog_RANLIB"
4336 # Extract the first word of "mv", so it can be a program name with args.
4337 set dummy mv; ac_word=$2
4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 if test "${ac_cv_path_MV+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4368 if test -n "$MV"; then
4369 { echo "$as_me:$LINENO: result: $MV" >&5
4370 echo "${ECHO_T}$MV" >&6; }
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4377 # Extract the first word of "rm", so it can be a program name with args.
4378 set dummy rm; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_path_RM+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4409 if test -n "$RM"; then
4410 { echo "$as_me:$LINENO: result: $RM" >&5
4411 echo "${ECHO_T}$RM" >&6; }
4413 { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4418 # Extract the first word of "cp", so it can be a program name with args.
4419 set dummy cp; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_CP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4450 if test -n "$CP"; then
4451 { echo "$as_me:$LINENO: result: $CP" >&5
4452 echo "${ECHO_T}$CP" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 # Extract the first word of "sed", so it can be a program name with args.
4460 set dummy sed; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_path_SED+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4491 if test -n "$SED"; then
4492 { echo "$as_me:$LINENO: result: $SED" >&5
4493 echo "${ECHO_T}$SED" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4500 # Extract the first word of "echo", so it can be a program name with args.
4501 set dummy echo; ac_word=$2
4502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504 if test "${ac_cv_path_ECHO+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4531 ECHO=$ac_cv_path_ECHO
4532 if test -n "$ECHO"; then
4533 { echo "$as_me:$LINENO: result: $ECHO" >&5
4534 echo "${ECHO_T}$ECHO" >&6; }
4536 { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4541 # Extract the first word of "cmp", so it can be a program name with args.
4542 set dummy cmp; ac_word=$2
4543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_CMP+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4573 if test -n "$CMP"; then
4574 { echo "$as_me:$LINENO: result: $CMP" >&5
4575 echo "${ECHO_T}$CMP" >&6; }
4577 { echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6; }
4582 # Extract the first word of "tbl", so it can be a program name with args.
4583 set dummy tbl; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_path_TBL+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4614 if test -n "$TBL"; then
4615 { echo "$as_me:$LINENO: result: $TBL" >&5
4616 echo "${ECHO_T}$TBL" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4623 # Extract the first word of "ar", so it can be a program name with args.
4624 set dummy ar; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_AR+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4655 if test -n "$AR"; then
4656 { echo "$as_me:$LINENO: result: $AR" >&5
4657 echo "${ECHO_T}$AR" >&6; }
4659 { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4664 # Extract the first word of "openssl", so it can be a program name with args.
4665 set dummy openssl; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_OPENSSL+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4695 OPENSSL=$ac_cv_path_OPENSSL
4696 if test -n "$OPENSSL"; then
4697 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4698 echo "${ECHO_T}$OPENSSL" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4705 # Extract the first word of "mtx", so it can be a program name with args.
4706 set dummy mtx; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_path_MTX+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4737 if test -n "$MTX"; then
4738 { echo "$as_me:$LINENO: result: $MTX" >&5
4739 echo "${ECHO_T}$MTX" >&6; }
4741 { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4746 # Extract the first word of "dd", so it can be a program name with args.
4747 set dummy dd; ac_word=$2
4748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750 if test "${ac_cv_path_DD+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4778 if test -n "$DD"; then
4779 { echo "$as_me:$LINENO: result: $DD" >&5
4780 echo "${ECHO_T}$DD" >&6; }
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4787 # Extract the first word of "mkisofs", so it can be a program name with args.
4788 set dummy mkisofs; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_path_MKISOFS+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4818 MKISOFS=$ac_cv_path_MKISOFS
4819 if test -n "$MKISOFS"; then
4820 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4821 echo "${ECHO_T}$MKISOFS" >&6; }
4823 { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4828 # Extract the first word of "python", so it can be a program name with args.
4829 set dummy python; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_path_PYTHON+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4859 PYTHON=$ac_cv_path_PYTHON
4860 if test -n "$PYTHON"; then
4861 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4862 echo "${ECHO_T}$PYTHON" >&6; }
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 # Extract the first word of "growisofs", so it can be a program name with args.
4870 set dummy growisofs; ac_word=$2
4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4873 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4900 GROWISOFS=$ac_cv_path_GROWISOFS
4901 if test -n "$GROWISOFS"; then
4902 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4903 echo "${ECHO_T}$GROWISOFS" >&6; }
4905 { echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; }
4910 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4911 set dummy dvd+rw-mediainfo; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 case $DVDRWMEDIAINFO in
4919 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4941 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4942 if test -n "$DVDRWMEDIAINFO"; then
4943 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4944 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4946 { echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6; }
4951 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4952 set dummy dvd+rw-format; ac_word=$2
4953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4955 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 case $DVDRWFORMAT in
4960 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4982 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4983 if test -n "$DVDRWFORMAT"; then
4984 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4985 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4992 # Extract the first word of "pkg-config", so it can be a program name with args.
4993 set dummy pkg-config; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5023 PKGCONFIG=$ac_cv_path_PKGCONFIG
5024 if test -n "$PKGCONFIG"; then
5025 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5026 echo "${ECHO_T}$PKGCONFIG" >&6; }
5028 { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5034 if test "x$WXCONFIG" = x; then
5037 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5038 set dummy ${WXCONFIG}; ac_word=$2
5039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5041 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5068 WXCONFIG=$ac_cv_path_WXCONFIG
5069 if test -n "$WXCONFIG"; then
5070 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5071 echo "${ECHO_T}$WXCONFIG" >&6; }
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5079 # Extract the first word of "cdrecord", so it can be a program name with args.
5080 set dummy cdrecord; ac_word=$2
5081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5083 if test "${ac_cv_path_CDRECORD+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5110 CDRECORD=$ac_cv_path_CDRECORD
5111 if test -n "$CDRECORD"; then
5112 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5113 echo "${ECHO_T}$CDRECORD" >&6; }
5115 { echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6; }
5120 # Extract the first word of "pidof", so it can be a program name with args.
5121 set dummy pidof; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_path_PIDOF+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5151 PIDOF=$ac_cv_path_PIDOF
5152 if test -n "$PIDOF"; then
5153 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5154 echo "${ECHO_T}$PIDOF" >&6; }
5156 { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5161 for ac_prog in gawk mawk nawk awk
5163 # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5167 if test "${ac_cv_prog_AWK+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$AWK"; then
5171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_AWK="$ac_prog"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 if test -n "$AWK"; then
5192 { echo "$as_me:$LINENO: result: $AWK" >&5
5193 echo "${ECHO_T}$AWK" >&6; }
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5200 test -n "$AWK" && break
5203 # Some AWK programs fail, so test it and warn the user
5204 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5205 { if ((prog == $2) || (("(" prog ")") == $2) ||
5206 (("" prog "") == $2) ||
5207 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5209 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5210 The regex engine of $AWK is too broken to be used you
5211 might want to install GNU AWK.
5212 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5213 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5214 The regex engine of $AWK is too broken to be used you
5215 might want to install GNU AWK.
5216 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5217 { (exit 1); exit 1; }; }
5220 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5221 set dummy $THE_AWK; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_path_AWK+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5252 if test -n "$AWK"; then
5253 { echo "$as_me:$LINENO: result: $AWK" >&5
5254 echo "${ECHO_T}$AWK" >&6; }
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5262 test -n "$ARFLAG" || ARFLAGS="cr"
5273 # Make sure we can run config.sub.
5274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5275 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5276 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5277 { (exit 1); exit 1; }; }
5279 { echo "$as_me:$LINENO: checking build system type" >&5
5280 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5281 if test "${ac_cv_build+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_build_alias=$build_alias
5285 test "x$ac_build_alias" = x &&
5286 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5287 test "x$ac_build_alias" = x &&
5288 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5289 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5290 { (exit 1); exit 1; }; }
5291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5292 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5294 { (exit 1); exit 1; }; }
5297 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5298 echo "${ECHO_T}$ac_cv_build" >&6; }
5299 case $ac_cv_build in
5301 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5302 echo "$as_me: error: invalid value of canonical build" >&2;}
5303 { (exit 1); exit 1; }; };;
5306 ac_save_IFS=$IFS; IFS='-'
5312 # Remember, the first character of IFS is used to create $*,
5313 # except with old shells:
5316 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5320 { echo "$as_me:$LINENO: checking host system type" >&5
5321 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5322 if test "${ac_cv_host+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test "x$host_alias" = x; then
5326 ac_cv_host=$ac_cv_build
5328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5329 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5330 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5331 { (exit 1); exit 1; }; }
5335 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5336 echo "${ECHO_T}$ac_cv_host" >&6; }
5339 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5340 echo "$as_me: error: invalid value of canonical host" >&2;}
5341 { (exit 1); exit 1; }; };;
5344 ac_save_IFS=$IFS; IFS='-'
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5358 *cygwin* ) CYGWIN=yes;;
5362 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5368 HAVE_SUN_OS_FALSE='#'
5370 HAVE_SUN_OS_TRUE='#'
5373 cat >>confdefs.h <<\_ACEOF
5374 #define HAVE_SUN_OS 1
5382 HAVE_SUN_OS_FALSE='#'
5384 HAVE_SUN_OS_TRUE='#'
5389 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5395 HAVE_OSF1_OS_FALSE='#'
5397 HAVE_OSF1_OS_TRUE='#'
5400 cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_OSF1_OS 1
5409 HAVE_OSF1_OS_FALSE='#'
5411 HAVE_OSF1_OS_TRUE='#'
5416 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5422 HAVE_AIX_OS_FALSE='#'
5424 HAVE_AIX_OS_TRUE='#'
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_AIX_OS 1
5436 HAVE_AIX_OS_FALSE='#'
5438 HAVE_AIX_OS_TRUE='#'
5443 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5449 HAVE_HPUX_OS_FALSE='#'
5451 HAVE_HPUX_OS_TRUE='#'
5454 cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_HPUX_OS 1
5463 HAVE_HPUX_OS_FALSE='#'
5465 HAVE_HPUX_OS_TRUE='#'
5470 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5476 HAVE_LINUX_OS_FALSE='#'
5478 HAVE_LINUX_OS_TRUE='#'
5479 HAVE_LINUX_OS_FALSE=
5481 cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_LINUX_OS 1
5490 HAVE_LINUX_OS_FALSE='#'
5492 HAVE_LINUX_OS_TRUE='#'
5493 HAVE_LINUX_OS_FALSE=
5497 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5502 HAVE_FREEBSD_OS_TRUE=
5503 HAVE_FREEBSD_OS_FALSE='#'
5505 HAVE_FREEBSD_OS_TRUE='#'
5506 HAVE_FREEBSD_OS_FALSE=
5508 cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_FREEBSD_OS 1
5516 HAVE_FREEBSD_OS_TRUE=
5517 HAVE_FREEBSD_OS_FALSE='#'
5519 HAVE_FREEBSD_OS_TRUE='#'
5520 HAVE_FREEBSD_OS_FALSE=
5524 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5529 HAVE_NETBSD_OS_TRUE=
5530 HAVE_NETBSD_OS_FALSE='#'
5532 HAVE_NETBSD_OS_TRUE='#'
5533 HAVE_NETBSD_OS_FALSE=
5535 cat >>confdefs.h <<\_ACEOF
5536 #define HAVE_NETBSD_OS 1
5543 HAVE_NETBSD_OS_TRUE=
5544 HAVE_NETBSD_OS_FALSE='#'
5546 HAVE_NETBSD_OS_TRUE='#'
5547 HAVE_NETBSD_OS_FALSE=
5551 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5556 HAVE_OPENBSD_OS_TRUE=
5557 HAVE_OPENBSD_OS_FALSE='#'
5559 HAVE_OPENBSD_OS_TRUE='#'
5560 HAVE_OPENBSD_OS_FALSE=
5562 cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_OPENBSD_OS 1
5570 HAVE_OPENBSD_OS_TRUE=
5571 HAVE_OPENBSD_OS_FALSE='#'
5573 HAVE_OPENBSD_OS_TRUE='#'
5574 HAVE_OPENBSD_OS_FALSE=
5578 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5584 HAVE_BSDI_OS_FALSE='#'
5586 HAVE_BSDI_OS_TRUE='#'
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_BSDI_OS 1
5598 HAVE_BSDI_OS_FALSE='#'
5600 HAVE_BSDI_OS_TRUE='#'
5605 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5611 HAVE_SGI_OS_FALSE='#'
5613 HAVE_SGI_OS_TRUE='#'
5616 cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_SGI_OS 1
5625 HAVE_SGI_OS_FALSE='#'
5627 HAVE_SGI_OS_TRUE='#'
5632 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5638 HAVE_IRIX_OS_FALSE='#'
5640 HAVE_IRIX_OS_TRUE='#'
5643 cat >>confdefs.h <<\_ACEOF
5644 #define HAVE_IRIX_OS 1
5652 HAVE_IRIX_OS_FALSE='#'
5654 HAVE_IRIX_OS_TRUE='#'
5659 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5664 HAVE_DARWIN_OS_TRUE=
5665 HAVE_DARWIN_OS_FALSE='#'
5667 HAVE_DARWIN_OS_TRUE='#'
5668 HAVE_DARWIN_OS_FALSE=
5670 cat >>confdefs.h <<\_ACEOF
5671 #define HAVE_DARWIN_OS 1
5678 HAVE_DARWIN_OS_TRUE=
5679 HAVE_DARWIN_OS_FALSE='#'
5681 HAVE_DARWIN_OS_TRUE='#'
5682 HAVE_DARWIN_OS_FALSE=
5687 # -----------------------------------------------------------
5688 # ----------------------------------------------------------
5689 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5690 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5691 if test "x$DISTNAME" != "x"
5693 echo "distname set to $DISTNAME"
5694 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5697 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5703 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5712 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5715 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5718 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5721 elif test -f /etc/SuSE-release
5724 elif test -d /etc/SuSEconfig
5727 elif test -f /etc/mandrake-release
5730 elif test -f /etc/whitebox-release
5733 elif test -f /etc/redhat-release
5736 elif test -f /etc/gentoo-release
5739 elif test -f /etc/debian_version
5742 elif test -f /etc/slackware-version
5745 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5748 elif test -f /etc/engarde-version
5751 elif test "$CYGWIN" = yes
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_CYGWIN 1
5761 { echo "$as_me:$LINENO: result: done" >&5
5762 echo "${ECHO_T}done" >&6; }
5765 # --------------------------------------------------
5766 # Suppport for gettext (translations)
5767 # By default, $datadir is ${prefix}/share
5768 # --------------------------------------------------
5769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5771 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 cat >conftest.make <<\_ACEOF
5778 @echo '@@@%%%=$(MAKE)=@@@%%%'
5780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5783 eval ac_cv_prog_make_${ac_make}_set=yes;;
5785 eval ac_cv_prog_make_${ac_make}_set=no;;
5789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5790 { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5794 { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5796 SET_MAKE="MAKE=${MAKE-make}"
5802 if test -n "$ac_aux_dir"; then
5803 case "$ac_aux_dir" in
5804 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5805 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5808 if test -z "$MKINSTALLDIRS"; then
5809 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5814 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5815 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5816 # Check whether --enable-nls was given.
5817 if test "${enable_nls+set}" = set; then
5818 enableval=$enable_nls; USE_NLS=$enableval
5823 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5824 echo "${ECHO_T}$USE_NLS" >&6; }
5831 # Prepare PATH_SEPARATOR.
5832 # The user is always right.
5833 if test "${PATH_SEPARATOR+set}" != set; then
5834 echo "#! /bin/sh" >conf$$.sh
5835 echo "exit 0" >>conf$$.sh
5837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845 # Find out how to test for executable files. Don't use a zero-byte file,
5846 # as systems may use methods other than mode bits to determine executability.
5847 cat >conf$$.file <<_ASEOF
5851 chmod +x conf$$.file
5852 if test -x conf$$.file >/dev/null 2>&1; then
5853 ac_executable_p="test -x"
5855 ac_executable_p="test -f"
5859 # Extract the first word of "msgfmt", so it can be a program name with args.
5860 set dummy msgfmt; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_MSGFMT+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5871 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5872 for ac_dir in $PATH; do
5874 test -z "$ac_dir" && ac_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5877 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5878 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5879 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5880 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5891 MSGFMT="$ac_cv_path_MSGFMT"
5892 if test "$MSGFMT" != ":"; then
5893 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5894 echo "${ECHO_T}$MSGFMT" >&6; }
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5901 set dummy gmsgfmt; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5931 GMSGFMT=$ac_cv_path_GMSGFMT
5932 if test -n "$GMSGFMT"; then
5933 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5934 echo "${ECHO_T}$GMSGFMT" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5943 # Prepare PATH_SEPARATOR.
5944 # The user is always right.
5945 if test "${PATH_SEPARATOR+set}" != set; then
5946 echo "#! /bin/sh" >conf$$.sh
5947 echo "exit 0" >>conf$$.sh
5949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5957 # Find out how to test for executable files. Don't use a zero-byte file,
5958 # as systems may use methods other than mode bits to determine executability.
5959 cat >conf$$.file <<_ASEOF
5963 chmod +x conf$$.file
5964 if test -x conf$$.file >/dev/null 2>&1; then
5965 ac_executable_p="test -x"
5967 ac_executable_p="test -f"
5971 # Extract the first word of "xgettext", so it can be a program name with args.
5972 set dummy xgettext; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5983 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5984 for ac_dir in $PATH; do
5986 test -z "$ac_dir" && ac_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5989 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5990 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5991 (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
5992 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6003 XGETTEXT="$ac_cv_path_XGETTEXT"
6004 if test "$XGETTEXT" != ":"; then
6005 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6006 echo "${ECHO_T}$XGETTEXT" >&6; }
6008 { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6015 # Prepare PATH_SEPARATOR.
6016 # The user is always right.
6017 if test "${PATH_SEPARATOR+set}" != set; then
6018 echo "#! /bin/sh" >conf$$.sh
6019 echo "exit 0" >>conf$$.sh
6021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6029 # Find out how to test for executable files. Don't use a zero-byte file,
6030 # as systems may use methods other than mode bits to determine executability.
6031 cat >conf$$.file <<_ASEOF
6035 chmod +x conf$$.file
6036 if test -x conf$$.file >/dev/null 2>&1; then
6037 ac_executable_p="test -x"
6039 ac_executable_p="test -f"
6043 # Extract the first word of "msgmerge", so it can be a program name with args.
6044 set dummy msgmerge; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6055 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6056 for ac_dir in $PATH; do
6058 test -z "$ac_dir" && ac_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6061 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6062 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6063 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6070 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6074 MSGMERGE="$ac_cv_path_MSGMERGE"
6075 if test "$MSGMERGE" != ":"; then
6076 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6077 echo "${ECHO_T}$MSGMERGE" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6084 if test "$GMSGFMT" != ":"; then
6085 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6086 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6089 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6090 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6091 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6096 if test "$XGETTEXT" != ":"; then
6097 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6098 (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
6101 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6102 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6108 ac_config_commands="$ac_config_commands default-1"
6112 if test "X$prefix" = "XNONE"; then
6113 acl_final_prefix="$ac_default_prefix"
6115 acl_final_prefix="$prefix"
6117 if test "X$exec_prefix" = "XNONE"; then
6118 acl_final_exec_prefix='${prefix}'
6120 acl_final_exec_prefix="$exec_prefix"
6122 acl_save_prefix="$prefix"
6123 prefix="$acl_final_prefix"
6124 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6125 prefix="$acl_save_prefix"
6128 # Check whether --with-gnu-ld was given.
6129 if test "${with_gnu_ld+set}" = set; then
6130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6135 # Prepare PATH_SEPARATOR.
6136 # The user is always right.
6137 if test "${PATH_SEPARATOR+set}" != set; then
6138 echo "#! /bin/sh" >conf$$.sh
6139 echo "exit 0" >>conf$$.sh
6141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6149 if test "$GCC" = yes; then
6150 # Check if gcc -print-prog-name=ld gives a path.
6151 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6155 # gcc leaves a trailing carriage return which upsets mingw
6156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6161 # Accept absolute paths.
6162 [\\/]* | [A-Za-z]:[\\/]*)
6163 re_direlt='/[^/][^/]*/\.\./'
6164 # Canonicalize the path of ld
6165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6169 test -z "$LD" && LD="$ac_prog"
6172 # If it fails, then pretend we aren't using GCC.
6176 # If it is relative, then search for the first ld in PATH.
6180 elif test "$with_gnu_ld" = yes; then
6181 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6184 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6187 if test "${acl_cv_path_LD+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 if test -z "$LD"; then
6191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6192 for ac_dir in $PATH; do
6193 test -z "$ac_dir" && ac_dir=.
6194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6195 acl_cv_path_LD="$ac_dir/$ac_prog"
6196 # Check to see if the program is GNU ld. I'd rather use --version,
6197 # but apparently some GNU ld's only accept -v.
6198 # Break only if it was the GNU/non-GNU ld that we prefer.
6199 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6200 *GNU* | *'with BFD'*)
6201 test "$with_gnu_ld" != no && break ;;
6203 test "$with_gnu_ld" != yes && break ;;
6209 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6213 LD="$acl_cv_path_LD"
6214 if test -n "$LD"; then
6215 { echo "$as_me:$LINENO: result: $LD" >&5
6216 echo "${ECHO_T}$LD" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6223 { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6226 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6230 case `$LD -v 2>&1 </dev/null` in
6231 *GNU* | *'with BFD'*)
6232 acl_cv_prog_gnu_ld=yes ;;
6234 acl_cv_prog_gnu_ld=no ;;
6237 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6238 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6239 with_gnu_ld=$acl_cv_prog_gnu_ld
6244 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6245 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6246 if test "${acl_cv_rpath+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6251 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6257 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6258 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6260 libext="$acl_cv_libext"
6261 shlibext="$acl_cv_shlibext"
6262 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6263 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6264 hardcode_direct="$acl_cv_hardcode_direct"
6265 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6266 # Check whether --enable-rpath was given.
6267 if test "${enable_rpath+set}" = set; then
6268 enableval=$enable_rpath; :
6282 acl_save_prefix="$prefix"
6283 prefix="$acl_final_prefix"
6284 acl_save_exec_prefix="$exec_prefix"
6285 exec_prefix="$acl_final_exec_prefix"
6287 eval additional_includedir=\"$includedir\"
6288 eval additional_libdir=\"$libdir\"
6290 exec_prefix="$acl_save_exec_prefix"
6291 prefix="$acl_save_prefix"
6294 # Check whether --with-libiconv-prefix was given.
6295 if test "${with_libiconv_prefix+set}" = set; then
6296 withval=$with_libiconv_prefix;
6297 if test "X$withval" = "Xno"; then
6300 if test "X$withval" = "X"; then
6302 acl_save_prefix="$prefix"
6303 prefix="$acl_final_prefix"
6304 acl_save_exec_prefix="$exec_prefix"
6305 exec_prefix="$acl_final_exec_prefix"
6307 eval additional_includedir=\"$includedir\"
6308 eval additional_libdir=\"$libdir\"
6310 exec_prefix="$acl_save_exec_prefix"
6311 prefix="$acl_save_prefix"
6314 additional_includedir="$withval/include"
6315 additional_libdir="$withval/lib"
6326 names_already_handled=
6327 names_next_round='iconv '
6328 while test -n "$names_next_round"; do
6329 names_this_round="$names_next_round"
6331 for name in $names_this_round; do
6333 for n in $names_already_handled; do
6334 if test "$n" = "$name"; then
6339 if test -z "$already_handled"; then
6340 names_already_handled="$names_already_handled $name"
6341 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6342 eval value=\"\$HAVE_LIB$uppername\"
6343 if test -n "$value"; then
6344 if test "$value" = yes; then
6345 eval value=\"\$LIB$uppername\"
6346 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6347 eval value=\"\$LTLIB$uppername\"
6348 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6357 if test $use_additional = yes; then
6358 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6359 found_dir="$additional_libdir"
6360 found_so="$additional_libdir/lib$name.$shlibext"
6361 if test -f "$additional_libdir/lib$name.la"; then
6362 found_la="$additional_libdir/lib$name.la"
6365 if test -f "$additional_libdir/lib$name.$libext"; then
6366 found_dir="$additional_libdir"
6367 found_a="$additional_libdir/lib$name.$libext"
6368 if test -f "$additional_libdir/lib$name.la"; then
6369 found_la="$additional_libdir/lib$name.la"
6374 if test "X$found_dir" = "X"; then
6375 for x in $LDFLAGS $LTLIBICONV; do
6377 acl_save_prefix="$prefix"
6378 prefix="$acl_final_prefix"
6379 acl_save_exec_prefix="$exec_prefix"
6380 exec_prefix="$acl_final_exec_prefix"
6382 exec_prefix="$acl_save_exec_prefix"
6383 prefix="$acl_save_prefix"
6387 dir=`echo "X$x" | sed -e 's/^X-L//'`
6388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6390 found_so="$dir/lib$name.$shlibext"
6391 if test -f "$dir/lib$name.la"; then
6392 found_la="$dir/lib$name.la"
6395 if test -f "$dir/lib$name.$libext"; then
6397 found_a="$dir/lib$name.$libext"
6398 if test -f "$dir/lib$name.la"; then
6399 found_la="$dir/lib$name.la"
6405 if test "X$found_dir" != "X"; then
6410 if test "X$found_dir" != "X"; then
6411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6412 if test "X$found_so" != "X"; then
6413 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6417 for x in $ltrpathdirs; do
6418 if test "X$x" = "X$found_dir"; then
6423 if test -z "$haveit"; then
6424 ltrpathdirs="$ltrpathdirs $found_dir"
6426 if test "$hardcode_direct" = yes; then
6427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6432 for x in $rpathdirs; do
6433 if test "X$x" = "X$found_dir"; then
6438 if test -z "$haveit"; then
6439 rpathdirs="$rpathdirs $found_dir"
6443 for x in $LDFLAGS $LIBICONV; do
6445 acl_save_prefix="$prefix"
6446 prefix="$acl_final_prefix"
6447 acl_save_exec_prefix="$exec_prefix"
6448 exec_prefix="$acl_final_exec_prefix"
6450 exec_prefix="$acl_save_exec_prefix"
6451 prefix="$acl_save_prefix"
6453 if test "X$x" = "X-L$found_dir"; then
6458 if test -z "$haveit"; then
6459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6461 if test "$hardcode_minus_L" != no; then
6462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6464 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6470 if test "X$found_a" != "X"; then
6471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6476 additional_includedir=
6477 case "$found_dir" in
6479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6480 additional_includedir="$basedir/include"
6483 if test "X$additional_includedir" != "X"; then
6484 if test "X$additional_includedir" != "X/usr/include"; then
6486 if test "X$additional_includedir" = "X/usr/local/include"; then
6487 if test -n "$GCC"; then
6489 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6493 if test -z "$haveit"; then
6494 for x in $CPPFLAGS $INCICONV; do
6496 acl_save_prefix="$prefix"
6497 prefix="$acl_final_prefix"
6498 acl_save_exec_prefix="$exec_prefix"
6499 exec_prefix="$acl_final_exec_prefix"
6501 exec_prefix="$acl_save_exec_prefix"
6502 prefix="$acl_save_prefix"
6504 if test "X$x" = "X-I$additional_includedir"; then
6509 if test -z "$haveit"; then
6510 if test -d "$additional_includedir"; then
6511 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6517 if test -n "$found_la"; then
6518 save_libdir="$libdir"
6520 */* | *\\*) . "$found_la" ;;
6521 *) . "./$found_la" ;;
6523 libdir="$save_libdir"
6524 for dep in $dependency_libs; do
6527 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6528 if test "X$additional_libdir" != "X/usr/lib"; then
6530 if test "X$additional_libdir" = "X/usr/local/lib"; then
6531 if test -n "$GCC"; then
6533 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6537 if test -z "$haveit"; then
6539 for x in $LDFLAGS $LIBICONV; do
6541 acl_save_prefix="$prefix"
6542 prefix="$acl_final_prefix"
6543 acl_save_exec_prefix="$exec_prefix"
6544 exec_prefix="$acl_final_exec_prefix"
6546 exec_prefix="$acl_save_exec_prefix"
6547 prefix="$acl_save_prefix"
6549 if test "X$x" = "X-L$additional_libdir"; then
6554 if test -z "$haveit"; then
6555 if test -d "$additional_libdir"; then
6556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6560 for x in $LDFLAGS $LTLIBICONV; do
6562 acl_save_prefix="$prefix"
6563 prefix="$acl_final_prefix"
6564 acl_save_exec_prefix="$exec_prefix"
6565 exec_prefix="$acl_final_exec_prefix"
6567 exec_prefix="$acl_save_exec_prefix"
6568 prefix="$acl_save_prefix"
6570 if test "X$x" = "X-L$additional_libdir"; then
6575 if test -z "$haveit"; then
6576 if test -d "$additional_libdir"; then
6577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6584 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6585 if test "$enable_rpath" != no; then
6587 for x in $rpathdirs; do
6588 if test "X$x" = "X$dir"; then
6593 if test -z "$haveit"; then
6594 rpathdirs="$rpathdirs $dir"
6597 for x in $ltrpathdirs; do
6598 if test "X$x" = "X$dir"; then
6603 if test -z "$haveit"; then
6604 ltrpathdirs="$ltrpathdirs $dir"
6609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6615 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6622 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6629 if test "X$rpathdirs" != "X"; then
6630 if test -n "$hardcode_libdir_separator"; then
6632 for found_dir in $rpathdirs; do
6633 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6635 acl_save_libdir="$libdir"
6637 eval flag=\"$hardcode_libdir_flag_spec\"
6638 libdir="$acl_save_libdir"
6639 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6641 for found_dir in $rpathdirs; do
6642 acl_save_libdir="$libdir"
6644 eval flag=\"$hardcode_libdir_flag_spec\"
6645 libdir="$acl_save_libdir"
6646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6650 if test "X$ltrpathdirs" != "X"; then
6651 for found_dir in $ltrpathdirs; do
6652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6673 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6674 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6675 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 gt_save_CPPFLAGS="$CPPFLAGS"
6679 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6680 gt_save_LIBS="$LIBS"
6681 LIBS="$LIBS -framework CoreFoundation"
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <CFPreferences.h>
6692 CFPreferencesCopyAppValue(NULL, NULL)
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6712 { (case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_try") 2>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; } &&
6721 { ac_try='test -s conftest$ac_exeext'
6722 { (case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_try") 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 gt_cv_func_CFPreferencesCopyAppValue=yes
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 gt_cv_func_CFPreferencesCopyAppValue=no
6739 rm -f core conftest.err conftest.$ac_objext \
6740 conftest$ac_exeext conftest.$ac_ext
6741 CPPFLAGS="$gt_save_CPPFLAGS"
6742 LIBS="$gt_save_LIBS"
6744 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6745 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6746 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6753 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6754 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6755 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 gt_save_CPPFLAGS="$CPPFLAGS"
6759 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6760 gt_save_LIBS="$LIBS"
6761 LIBS="$LIBS -framework CoreFoundation"
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <CFLocale.h>
6772 CFLocaleCopyCurrent();
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_link") 2>conftest.er1
6786 grep -v '^ *+' conftest.er1 >conftest.err
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6792 { (case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_try") 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try='test -s conftest$ac_exeext'
6802 { (case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_try") 2>&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 gt_cv_func_CFLocaleCopyCurrent=yes
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 gt_cv_func_CFLocaleCopyCurrent=no
6819 rm -f core conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 CPPFLAGS="$gt_save_CPPFLAGS"
6822 LIBS="$gt_save_LIBS"
6824 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6825 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6826 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_CFLOCALECOPYCURRENT 1
6834 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6835 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6841 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6842 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6843 # Check whether --enable-nls was given.
6844 if test "${enable_nls+set}" = set; then
6845 enableval=$enable_nls; USE_NLS=$enableval
6850 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6851 echo "${ECHO_T}$USE_NLS" >&6; }
6860 if test "$USE_NLS" = "yes"; then
6861 gt_use_preinstalled_gnugettext=no
6868 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6869 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6870 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <libintl.h>
6880 extern int _nl_msg_cat_cntr;
6881 extern int *_nl_domain_bindings;
6885 bindtextdomain ("", "");
6886 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_link") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6906 { (case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_try") 2>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 gt_cv_func_gnugettext1_libc=yes
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 gt_cv_func_gnugettext1_libc=no
6933 rm -f core conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
6936 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6937 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6939 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6945 am_save_CPPFLAGS="$CPPFLAGS"
6947 for element in $INCICONV; do
6949 for x in $CPPFLAGS; do
6951 acl_save_prefix="$prefix"
6952 prefix="$acl_final_prefix"
6953 acl_save_exec_prefix="$exec_prefix"
6954 exec_prefix="$acl_final_exec_prefix"
6956 exec_prefix="$acl_save_exec_prefix"
6957 prefix="$acl_save_prefix"
6959 if test "X$x" = "X$element"; then
6964 if test -z "$haveit"; then
6965 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6970 { echo "$as_me:$LINENO: checking for iconv" >&5
6971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6972 if test "${am_cv_func_iconv+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 am_cv_func_iconv="no, consider installing GNU libiconv"
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6989 iconv_t cd = iconv_open("","");
6990 iconv(cd,NULL,NULL,NULL,NULL);
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_link") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7011 { (case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_try") 2>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_try") 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 am_cv_func_iconv=yes
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 if test "$am_cv_func_iconv" != yes; then
7041 am_save_LIBS="$LIBS"
7042 LIBS="$LIBS $LIBICONV"
7043 cat >conftest.$ac_ext <<_ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7054 iconv_t cd = iconv_open("","");
7055 iconv(cd,NULL,NULL,NULL,NULL);
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (ac_try="$ac_link"
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068 (eval "$ac_link") 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7076 { (case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_try") 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try='test -s conftest$ac_exeext'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7096 am_cv_func_iconv=yes
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7106 LIBS="$am_save_LIBS"
7110 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7111 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7112 if test "$am_cv_func_iconv" = yes; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_ICONV 1
7119 if test "$am_cv_lib_iconv" = yes; then
7120 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7121 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7122 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7123 echo "${ECHO_T}$LIBICONV" >&6; }
7125 CPPFLAGS="$am_save_CPPFLAGS"
7137 acl_save_prefix="$prefix"
7138 prefix="$acl_final_prefix"
7139 acl_save_exec_prefix="$exec_prefix"
7140 exec_prefix="$acl_final_exec_prefix"
7142 eval additional_includedir=\"$includedir\"
7143 eval additional_libdir=\"$libdir\"
7145 exec_prefix="$acl_save_exec_prefix"
7146 prefix="$acl_save_prefix"
7149 # Check whether --with-libintl-prefix was given.
7150 if test "${with_libintl_prefix+set}" = set; then
7151 withval=$with_libintl_prefix;
7152 if test "X$withval" = "Xno"; then
7155 if test "X$withval" = "X"; then
7157 acl_save_prefix="$prefix"
7158 prefix="$acl_final_prefix"
7159 acl_save_exec_prefix="$exec_prefix"
7160 exec_prefix="$acl_final_exec_prefix"
7162 eval additional_includedir=\"$includedir\"
7163 eval additional_libdir=\"$libdir\"
7165 exec_prefix="$acl_save_exec_prefix"
7166 prefix="$acl_save_prefix"
7169 additional_includedir="$withval/include"
7170 additional_libdir="$withval/lib"
7181 names_already_handled=
7182 names_next_round='intl '
7183 while test -n "$names_next_round"; do
7184 names_this_round="$names_next_round"
7186 for name in $names_this_round; do
7188 for n in $names_already_handled; do
7189 if test "$n" = "$name"; then
7194 if test -z "$already_handled"; then
7195 names_already_handled="$names_already_handled $name"
7196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7197 eval value=\"\$HAVE_LIB$uppername\"
7198 if test -n "$value"; then
7199 if test "$value" = yes; then
7200 eval value=\"\$LIB$uppername\"
7201 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7202 eval value=\"\$LTLIB$uppername\"
7203 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7212 if test $use_additional = yes; then
7213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7214 found_dir="$additional_libdir"
7215 found_so="$additional_libdir/lib$name.$shlibext"
7216 if test -f "$additional_libdir/lib$name.la"; then
7217 found_la="$additional_libdir/lib$name.la"
7220 if test -f "$additional_libdir/lib$name.$libext"; then
7221 found_dir="$additional_libdir"
7222 found_a="$additional_libdir/lib$name.$libext"
7223 if test -f "$additional_libdir/lib$name.la"; then
7224 found_la="$additional_libdir/lib$name.la"
7229 if test "X$found_dir" = "X"; then
7230 for x in $LDFLAGS $LTLIBINTL; do
7232 acl_save_prefix="$prefix"
7233 prefix="$acl_final_prefix"
7234 acl_save_exec_prefix="$exec_prefix"
7235 exec_prefix="$acl_final_exec_prefix"
7237 exec_prefix="$acl_save_exec_prefix"
7238 prefix="$acl_save_prefix"
7242 dir=`echo "X$x" | sed -e 's/^X-L//'`
7243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7245 found_so="$dir/lib$name.$shlibext"
7246 if test -f "$dir/lib$name.la"; then
7247 found_la="$dir/lib$name.la"
7250 if test -f "$dir/lib$name.$libext"; then
7252 found_a="$dir/lib$name.$libext"
7253 if test -f "$dir/lib$name.la"; then
7254 found_la="$dir/lib$name.la"
7260 if test "X$found_dir" != "X"; then
7265 if test "X$found_dir" != "X"; then
7266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7267 if test "X$found_so" != "X"; then
7268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7269 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7272 for x in $ltrpathdirs; do
7273 if test "X$x" = "X$found_dir"; then
7278 if test -z "$haveit"; then
7279 ltrpathdirs="$ltrpathdirs $found_dir"
7281 if test "$hardcode_direct" = yes; then
7282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7287 for x in $rpathdirs; do
7288 if test "X$x" = "X$found_dir"; then
7293 if test -z "$haveit"; then
7294 rpathdirs="$rpathdirs $found_dir"
7298 for x in $LDFLAGS $LIBINTL; do
7300 acl_save_prefix="$prefix"
7301 prefix="$acl_final_prefix"
7302 acl_save_exec_prefix="$exec_prefix"
7303 exec_prefix="$acl_final_exec_prefix"
7305 exec_prefix="$acl_save_exec_prefix"
7306 prefix="$acl_save_prefix"
7308 if test "X$x" = "X-L$found_dir"; then
7313 if test -z "$haveit"; then
7314 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7316 if test "$hardcode_minus_L" != no; then
7317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7319 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7325 if test "X$found_a" != "X"; then
7326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7328 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7331 additional_includedir=
7332 case "$found_dir" in
7334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7335 additional_includedir="$basedir/include"
7338 if test "X$additional_includedir" != "X"; then
7339 if test "X$additional_includedir" != "X/usr/include"; then
7341 if test "X$additional_includedir" = "X/usr/local/include"; then
7342 if test -n "$GCC"; then
7344 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7348 if test -z "$haveit"; then
7349 for x in $CPPFLAGS $INCINTL; do
7351 acl_save_prefix="$prefix"
7352 prefix="$acl_final_prefix"
7353 acl_save_exec_prefix="$exec_prefix"
7354 exec_prefix="$acl_final_exec_prefix"
7356 exec_prefix="$acl_save_exec_prefix"
7357 prefix="$acl_save_prefix"
7359 if test "X$x" = "X-I$additional_includedir"; then
7364 if test -z "$haveit"; then
7365 if test -d "$additional_includedir"; then
7366 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7372 if test -n "$found_la"; then
7373 save_libdir="$libdir"
7375 */* | *\\*) . "$found_la" ;;
7376 *) . "./$found_la" ;;
7378 libdir="$save_libdir"
7379 for dep in $dependency_libs; do
7382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7383 if test "X$additional_libdir" != "X/usr/lib"; then
7385 if test "X$additional_libdir" = "X/usr/local/lib"; then
7386 if test -n "$GCC"; then
7388 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7392 if test -z "$haveit"; then
7394 for x in $LDFLAGS $LIBINTL; do
7396 acl_save_prefix="$prefix"
7397 prefix="$acl_final_prefix"
7398 acl_save_exec_prefix="$exec_prefix"
7399 exec_prefix="$acl_final_exec_prefix"
7401 exec_prefix="$acl_save_exec_prefix"
7402 prefix="$acl_save_prefix"
7404 if test "X$x" = "X-L$additional_libdir"; then
7409 if test -z "$haveit"; then
7410 if test -d "$additional_libdir"; then
7411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7415 for x in $LDFLAGS $LTLIBINTL; do
7417 acl_save_prefix="$prefix"
7418 prefix="$acl_final_prefix"
7419 acl_save_exec_prefix="$exec_prefix"
7420 exec_prefix="$acl_final_exec_prefix"
7422 exec_prefix="$acl_save_exec_prefix"
7423 prefix="$acl_save_prefix"
7425 if test "X$x" = "X-L$additional_libdir"; then
7430 if test -z "$haveit"; then
7431 if test -d "$additional_libdir"; then
7432 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7440 if test "$enable_rpath" != no; then
7442 for x in $rpathdirs; do
7443 if test "X$x" = "X$dir"; then
7448 if test -z "$haveit"; then
7449 rpathdirs="$rpathdirs $dir"
7452 for x in $ltrpathdirs; do
7453 if test "X$x" = "X$dir"; then
7458 if test -z "$haveit"; then
7459 ltrpathdirs="$ltrpathdirs $dir"
7464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7470 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7477 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7484 if test "X$rpathdirs" != "X"; then
7485 if test -n "$hardcode_libdir_separator"; then
7487 for found_dir in $rpathdirs; do
7488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7490 acl_save_libdir="$libdir"
7492 eval flag=\"$hardcode_libdir_flag_spec\"
7493 libdir="$acl_save_libdir"
7494 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7496 for found_dir in $rpathdirs; do
7497 acl_save_libdir="$libdir"
7499 eval flag=\"$hardcode_libdir_flag_spec\"
7500 libdir="$acl_save_libdir"
7501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7505 if test "X$ltrpathdirs" != "X"; then
7506 for found_dir in $ltrpathdirs; do
7507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7511 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7513 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 gt_save_CPPFLAGS="$CPPFLAGS"
7517 CPPFLAGS="$CPPFLAGS $INCINTL"
7518 gt_save_LIBS="$LIBS"
7519 LIBS="$LIBS $LIBINTL"
7520 cat >conftest.$ac_ext <<_ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 #include <libintl.h>
7527 extern int _nl_msg_cat_cntr;
7532 const char *_nl_expand_alias (const char *);
7536 bindtextdomain ("", "");
7537 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (ac_try="$ac_link"
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_link") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7557 { (case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_try") 2>&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try='test -s conftest$ac_exeext'
7567 { (case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_try") 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 gt_cv_func_gnugettext1_libintl=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 gt_cv_func_gnugettext1_libintl=no
7584 rm -f core conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7587 LIBS="$LIBS $LIBICONV"
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <libintl.h>
7595 extern int _nl_msg_cat_cntr;
7600 const char *_nl_expand_alias (const char *);
7604 bindtextdomain ("", "");
7605 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (ac_try="$ac_link"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_link") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7625 { (case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_try") 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 LIBINTL="$LIBINTL $LIBICONV"
7645 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7646 gt_cv_func_gnugettext1_libintl=yes
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7655 rm -f core conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
7658 CPPFLAGS="$gt_save_CPPFLAGS"
7659 LIBS="$gt_save_LIBS"
7661 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7662 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7665 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7666 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7667 && test "$PACKAGE" != gettext-runtime \
7668 && test "$PACKAGE" != gettext-tools; }; then
7669 gt_use_preinstalled_gnugettext=yes
7678 if test -n "$INTL_MACOSX_LIBS"; then
7679 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7680 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7681 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7682 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7686 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7687 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7689 cat >>confdefs.h <<\_ACEOF
7690 #define ENABLE_NLS 1
7698 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7699 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7700 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7701 echo "${ECHO_T}$USE_NLS" >&6; }
7702 if test "$USE_NLS" = "yes"; then
7703 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7704 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7705 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7706 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7707 gt_source="external libintl"
7712 gt_source="included intl directory"
7714 { echo "$as_me:$LINENO: result: $gt_source" >&5
7715 echo "${ECHO_T}$gt_source" >&6; }
7718 if test "$USE_NLS" = "yes"; then
7720 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7721 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7722 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7723 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7724 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7725 echo "${ECHO_T}$LIBINTL" >&6; }
7727 for element in $INCINTL; do
7729 for x in $CPPFLAGS; do
7731 acl_save_prefix="$prefix"
7732 prefix="$acl_final_prefix"
7733 acl_save_exec_prefix="$exec_prefix"
7734 exec_prefix="$acl_final_exec_prefix"
7736 exec_prefix="$acl_save_exec_prefix"
7737 prefix="$acl_save_prefix"
7739 if test "X$x" = "X$element"; then
7744 if test -z "$haveit"; then
7745 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_GETTEXT 1
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_DCGETTEXT 1
7775 if test x${prefix} = xNONE ; then
7776 if test `eval echo ${datadir}` = NONE/share ; then
7781 # ------------------------------------------------------------------
7782 # If the user has not set --prefix, we set our default to nothing.
7783 # In this case, if the user has not set --sysconfdir, we set it
7784 # to the package default of /etc/bacula. If either --prefix or
7785 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7786 # ------------------------------------------------------------------
7787 if test x${prefix} = xNONE ; then
7788 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7789 sysconfdir=/etc/bacula
7793 sysconfdir=`eval echo ${sysconfdir}`
7794 datadir=`eval echo ${datadir}`
7795 localedir=`eval echo ${datadir}/locale`
7796 cat >>confdefs.h <<_ACEOF
7797 #define LOCALEDIR "$localedir"
7800 cat >>confdefs.h <<_ACEOF
7801 #define SYSCONFDIR "$sysconfdir"
7805 # -------------------------------------------------------------------------
7806 # If the user has not set --exec-prefix, we default to ${prefix}
7807 # -------------------------------------------------------------------------
7808 if test x${exec_prefix} = xNONE ; then
7809 exec_prefix=${prefix}
7812 # ------------------------------------------------------------------
7813 # If the user has not set --sbindir, we set our default as /sbin
7814 # ------------------------------------------------------------------
7815 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7816 sbindir=${exec_prefix}/sbin
7818 sbindir=`eval echo ${sbindir}`
7820 # -------------------------------------------------------------------------
7821 # If the user has not set --mandir, we default to /usr/share/man
7822 # -------------------------------------------------------------------------
7823 if test x$mandir = x'${prefix}/man' ; then
7824 mandir=/usr/share/man
7828 # ------------------------------------------------------------------
7829 # All list of languages for which a translation exist. Each
7830 # language is separated by a space.
7831 # ------------------------------------------------------------------
7834 for ac_prog in msgfmt
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_MSGFMT+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 MSGFMT=$ac_cv_path_MSGFMT
7867 if test -n "$MSGFMT"; then
7868 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7869 echo "${ECHO_T}$MSGFMT" >&6; }
7871 { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7876 test -n "$MSGFMT" && break
7878 test -n "$MSGFMT" || MSGFMT="no"
7880 if test "$MSGFMT" = "no"
7882 echo 'msgfmt program not found, disabling NLS !'
7884 USE_INCLUDED_LIBINTL=no
7887 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7888 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7889 if test "${ac_cv_gnu_library_2+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7899 #include <features.h>
7900 #ifdef __GNU_LIBRARY__
7901 #if (__GLIBC__ >= 2)
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7909 ac_cv_gnu_library_2=yes
7911 ac_cv_gnu_library_2=no
7918 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7919 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7921 GLIBC2="$ac_cv_gnu_library_2"
7925 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7926 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7927 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_check_lib_save_LIBS=$LIBS
7931 LIBS="-lcposix $LIBS"
7932 cat >conftest.$ac_ext <<_ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7939 /* Override any GCC internal prototype to avoid an error.
7940 Use char because int might match the return type of a GCC
7941 builtin and then its argument prototype would still apply. */
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_cv_lib_cposix_strerror=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_lib_cposix_strerror=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
8000 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8001 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8002 if test $ac_cv_lib_cposix_strerror = yes; then
8003 LIBS="$LIBS -lcposix"
8008 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8010 if test "${ac_cv_header_stdc+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_header_stdc=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_header_stdc=no
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 if test $ac_cv_header_stdc = yes; then
8077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088 $EGREP "memchr" >/dev/null 2>&1; then
8091 ac_cv_header_stdc=no
8097 if test $ac_cv_header_stdc = yes; then
8098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109 $EGREP "free" >/dev/null 2>&1; then
8112 ac_cv_header_stdc=no
8118 if test $ac_cv_header_stdc = yes; then
8119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8120 if test "$cross_compiling" = yes; then
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8131 #if ((' ' & 0x0FF) == 0x020)
8132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8135 # define ISLOWER(c) \
8136 (('a' <= (c) && (c) <= 'i') \
8137 || ('j' <= (c) && (c) <= 'r') \
8138 || ('s' <= (c) && (c) <= 'z'))
8139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8147 for (i = 0; i < 256; i++)
8148 if (XOR (islower (i), ISLOWER (i))
8149 || toupper (i) != TOUPPER (i))
8154 rm -f conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8176 echo "$as_me: program exited with status $ac_status" >&5
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_header_stdc=no
8183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8190 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8191 if test $ac_cv_header_stdc = yes; then
8193 cat >>confdefs.h <<\_ACEOF
8194 #define STDC_HEADERS 1
8199 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8201 if test "${ac_cv_c_const+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8214 /* FIXME: Include the comments suggested by Paul. */
8216 /* Ultrix mips cc rejects this. */
8217 typedef int charset[2];
8219 /* SunOS 4.1.1 cc rejects this. */
8220 char const *const *ccp;
8222 /* NEC SVR4.0.2 mips cc rejects this. */
8223 struct point {int x, y;};
8224 static struct point const zero = {0,0};
8225 /* AIX XL C 1.02.0.0 rejects this.
8226 It does not let you subtract one const X* pointer from another in
8227 an arm of an if-expression whose if-part is not a constant
8229 const char *g = "string";
8230 ccp = &g + (g ? g-g : 0);
8231 /* HPUX 7.0 cc rejects these. */
8234 ccp = (char const *const *) p;
8235 { /* SCO 3.2v4 cc rejects this. */
8237 char const *s = 0 ? (char *) 0 : (char const *) 0;
8242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8244 const int *foo = &x[0];
8247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8248 typedef const int *iptr;
8252 { /* AIX XL C 1.02.0.0 rejects this saying
8253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8254 struct s { int j; const int *ap[3]; };
8255 struct s *b; b->j = 5;
8257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8261 return !x[0] && !zero.x;
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8314 if test $ac_cv_c_const = no; then
8316 cat >>confdefs.h <<\_ACEOF
8323 { echo "$as_me:$LINENO: checking for signed" >&5
8324 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8325 if test "${bh_cv_c_signed+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8388 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8389 if test $bh_cv_c_signed = no; then
8391 cat >>confdefs.h <<\_ACEOF
8397 { echo "$as_me:$LINENO: checking for inline" >&5
8398 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8399 if test "${ac_cv_c_inline+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 for ac_kw in inline __inline__ __inline; do
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8412 static $ac_kw foo_t static_foo () {return 0; }
8413 $ac_kw foo_t foo () {return 0; }
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest.$ac_objext'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_c_inline=$ac_kw
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 test "$ac_cv_c_inline" != no && break
8464 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8465 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8468 case $ac_cv_c_inline in
8471 case $ac_cv_c_inline in
8473 *) ac_val=$ac_cv_c_inline;;
8475 cat >>confdefs.h <<_ACEOF
8477 #define inline $ac_val
8483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8494 inttypes.h stdint.h unistd.h
8496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8510 #include <$ac_header>
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 eval "$as_ac_Header=yes"
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 eval "$as_ac_Header=no"
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557 { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560 cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569 { echo "$as_me:$LINENO: checking for off_t" >&5
8570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8571 if test "${ac_cv_type_off_t+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 typedef off_t ac__type_new_;
8585 if ((ac__type_new_ *) 0)
8587 if (sizeof (ac__type_new_))
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest.$ac_objext'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_type_off_t=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8638 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8639 if test $ac_cv_type_off_t = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define off_t long int
8649 { echo "$as_me:$LINENO: checking for size_t" >&5
8650 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8651 if test "${ac_cv_type_size_t+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 typedef size_t ac__type_new_;
8665 if ((ac__type_new_ *) 0)
8667 if (sizeof (ac__type_new_))
8673 rm -f conftest.$ac_objext
8674 if { (ac_try="$ac_compile"
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_compile") 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688 { (case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_try") 2>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; } &&
8697 { ac_try='test -s conftest.$ac_objext'
8698 { (case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_try") 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_type_size_t=yes
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 ac_cv_type_size_t=no
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8718 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8719 if test $ac_cv_type_size_t = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define size_t unsigned int
8730 { echo "$as_me:$LINENO: checking for long long" >&5
8731 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8732 if test "${ac_cv_type_long_long+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 long long ll = 1LL; int i = 63;
8745 long long llmax = (long long) -1;
8746 return ll << i | ll >> i | llmax / ll | llmax % ll;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8766 { (case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_try") 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_try") 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_type_long_long=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_type_long_long=no
8793 rm -f core conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8797 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8798 if test $ac_cv_type_long_long = yes; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_LONG_LONG 1
8807 { echo "$as_me:$LINENO: checking for long double" >&5
8808 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8809 if test "${gt_cv_c_long_double+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 if test "$GCC" = yes; then
8813 gt_cv_c_long_double=yes
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8822 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8823 long double foo = 0.0;
8824 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8825 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8835 rm -f conftest.$ac_objext
8836 if { (ac_try="$ac_compile"
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_compile") 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 gt_cv_c_long_double=yes
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 gt_cv_c_long_double=no
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8881 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8882 if test $gt_cv_c_long_double = yes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_LONG_DOUBLE 1
8891 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8892 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8893 if test "${gt_cv_c_wchar_t+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8903 wchar_t foo = (wchar_t)'\0';
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8957 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8958 if test $gt_cv_c_wchar_t = yes; then
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_WCHAR_T 1
8967 { echo "$as_me:$LINENO: checking for wint_t" >&5
8968 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8969 if test "${gt_cv_c_wint_t+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 wint_t foo = (wchar_t)'\0';
8988 rm -f conftest.$ac_objext
8989 if { (ac_try="$ac_compile"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9033 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9034 if test $gt_cv_c_wint_t = yes; then
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_WINT_T 1
9043 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9044 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9045 if test "${gl_cv_header_inttypes_h+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 #include <sys/types.h>
9055 #include <inttypes.h>
9059 uintmax_t i = (uintmax_t) -1;
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_compile") 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 gl_cv_header_inttypes_h=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 gl_cv_header_inttypes_h=no
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9109 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9110 if test $gl_cv_header_inttypes_h = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9119 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9120 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9121 if test "${gl_cv_header_stdint_h+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <sys/types.h>
9135 uintmax_t i = (uintmax_t) -1;
9140 rm -f conftest.$ac_objext
9141 if { (ac_try="$ac_compile"
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_compile") 2>conftest.er1
9149 grep -v '^ *+' conftest.er1 >conftest.err
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9155 { (case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_try") 2>&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest.$ac_objext'
9165 { (case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_try") 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 gl_cv_header_stdint_h=yes
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 gl_cv_header_stdint_h=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9185 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9186 if test $gl_cv_header_stdint_h = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define HAVE_STDINT_H_WITH_UINTMAX 1
9197 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9198 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9199 if test "${gt_cv_c_intmax_t+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9211 #if HAVE_STDINT_H_WITH_UINTMAX
9214 #if HAVE_INTTYPES_H_WITH_UINTMAX
9215 #include <inttypes.h>
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241 { (case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_try") 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 gt_cv_c_intmax_t=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9271 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9272 if test $gt_cv_c_intmax_t = yes; then
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_INTMAX_T 1
9282 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9283 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9284 if test "${gt_cv_func_printf_posix+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 if test "$cross_compiling" = yes; then
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9297 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9303 $EGREP "notposix" >/dev/null 2>&1; then
9304 gt_cv_func_printf_posix="guessing no"
9306 gt_cv_func_printf_posix="guessing yes"
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9321 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9322 dollar expansion (possibly an autoconf bug). */
9323 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9324 static char buf[100];
9327 sprintf (buf, format, 33, 55);
9328 return (strcmp (buf, "55 33") != 0);
9331 rm -f conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_link") 2>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9342 { (case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_try") 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 gt_cv_func_printf_posix=yes
9353 echo "$as_me: program exited with status $ac_status" >&5
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9358 gt_cv_func_printf_posix=no
9360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9366 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9367 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9368 case $gt_cv_func_printf_posix in
9371 cat >>confdefs.h <<\_ACEOF
9372 #define HAVE_POSIX_PRINTF 1
9378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9379 # for constant arguments. Useless!
9380 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9382 if test "${ac_cv_working_alloca_h+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9395 char *p = (char *) alloca (2 * sizeof (int));
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9410 grep -v '^ *+' conftest.er1 >conftest.err
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_try") 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_try") 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_cv_working_alloca_h=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_working_alloca_h=no
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9446 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9447 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9448 if test $ac_cv_working_alloca_h = yes; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_ALLOCA_H 1
9456 { echo "$as_me:$LINENO: checking for alloca" >&5
9457 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9458 if test "${ac_cv_func_alloca_works+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 cat >conftest.$ac_ext <<_ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9468 # define alloca __builtin_alloca
9471 # include <malloc.h>
9472 # define alloca _alloca
9475 # include <alloca.h>
9480 # ifndef alloca /* predefined by HP cc +Olibcalls */
9491 char *p = (char *) alloca (1);
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_link") 2>conftest.er1
9506 grep -v '^ *+' conftest.er1 >conftest.err
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_func_alloca_works=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_func_alloca_works=no
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9543 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9545 if test $ac_cv_func_alloca_works = yes; then
9547 cat >>confdefs.h <<\_ACEOF
9548 #define HAVE_ALLOCA 1
9552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9553 # that cause trouble. Some versions do not even contain alloca or
9554 # contain a buggy version. If you still want to use their alloca,
9555 # use ar to extract alloca.o from them instead of compiling alloca.c.
9557 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9559 cat >>confdefs.h <<\_ACEOF
9564 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9565 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9566 if test "${ac_cv_os_cray+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #if defined CRAY && ! defined CRAY2
9582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9583 $EGREP "webecray" >/dev/null 2>&1; then
9591 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9592 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9593 if test $ac_cv_os_cray = yes; then
9594 for ac_func in _getb67 GETB67 getb67; do
9595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define $ac_func innocuous_$ac_func
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9617 # include <limits.h>
9619 # include <assert.h>
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined __stub_$ac_func || defined __stub___$ac_func
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest$ac_exeext'
9671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 eval "$as_ac_var=yes"
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 eval "$as_ac_var=no"
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9691 ac_res=`eval echo '${'$as_ac_var'}'`
9692 { echo "$as_me:$LINENO: result: $ac_res" >&5
9693 echo "${ECHO_T}$ac_res" >&6; }
9694 if test `eval echo '${'$as_ac_var'}'` = yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define CRAY_STACKSEG_END $ac_func
9706 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9707 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9708 if test "${ac_cv_c_stack_direction+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 if test "$cross_compiling" = yes; then
9712 ac_cv_c_stack_direction=0
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 $ac_includes_default
9722 find_stack_direction ()
9724 static char *addr = 0;
9729 return find_stack_direction ();
9732 return (&dummy > addr) ? 1 : -1;
9738 return find_stack_direction () < 0;
9741 rm -f conftest$ac_exeext
9742 if { (ac_try="$ac_link"
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_link") 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_c_stack_direction=1
9763 echo "$as_me: program exited with status $ac_status" >&5
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_c_stack_direction=-1
9770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9775 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9776 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9778 cat >>confdefs.h <<_ACEOF
9779 #define STACK_DIRECTION $ac_cv_c_stack_direction
9787 for ac_header in stdlib.h unistd.h
9789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_res=`eval echo '${'$as_ac_Header'}'`
9797 { echo "$as_me:$LINENO: result: $ac_res" >&5
9798 echo "${ECHO_T}$ac_res" >&6; }
9800 # Is the header compilable?
9801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 $ac_includes_default
9810 #include <$ac_header>
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_compile") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_header_compiler=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_header_compiler=no
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9856 echo "${ECHO_T}$ac_header_compiler" >&6; }
9858 # Is the header present?
9859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 #include <$ac_header>
9869 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } >/dev/null; then
9882 if test -s conftest.err; then
9883 ac_cpp_err=$ac_c_preproc_warn_flag
9884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891 if test -z "$ac_cpp_err"; then
9892 ac_header_preproc=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_preproc=no
9900 rm -f conftest.err conftest.$ac_ext
9901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 echo "${ECHO_T}$ac_header_preproc" >&6; }
9904 # So? What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 eval "$as_ac_Header=\$ac_header_preproc"
9936 ac_res=`eval echo '${'$as_ac_Header'}'`
9937 { echo "$as_me:$LINENO: result: $ac_res" >&5
9938 echo "${ECHO_T}$ac_res" >&6; }
9941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9942 cat >>confdefs.h <<_ACEOF
9943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9951 for ac_func in getpagesize
9953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9967 #define $ac_func innocuous_$ac_func
9969 /* System header to define __stub macros and hopefully few prototypes,
9970 which can conflict with char $ac_func (); below.
9971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972 <limits.h> exists even on freestanding compilers. */
9975 # include <limits.h>
9977 # include <assert.h>
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined __stub_$ac_func || defined __stub___$ac_func
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_link") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019 { (case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_try") 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 eval "$as_ac_var=yes"
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 eval "$as_ac_var=no"
10046 rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10049 ac_res=`eval echo '${'$as_ac_var'}'`
10050 { echo "$as_me:$LINENO: result: $ac_res" >&5
10051 echo "${ECHO_T}$ac_res" >&6; }
10052 if test `eval echo '${'$as_ac_var'}'` = yes; then
10053 cat >>confdefs.h <<_ACEOF
10054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10060 { echo "$as_me:$LINENO: checking for working mmap" >&5
10061 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10062 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 if test "$cross_compiling" = yes; then
10066 ac_cv_func_mmap_fixed_mapped=no
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 /* malloc might have been renamed as rpl_malloc. */
10078 /* Thanks to Mike Haertel and Jim Avera for this test.
10079 Here is a matrix of mmap possibilities:
10080 mmap private not fixed
10081 mmap private fixed at somewhere currently unmapped
10082 mmap private fixed at somewhere already mapped
10083 mmap shared not fixed
10084 mmap shared fixed at somewhere currently unmapped
10085 mmap shared fixed at somewhere already mapped
10086 For private mappings, we should verify that changes cannot be read()
10087 back from the file, nor mmap's back from the file at a different
10088 address. (There have been systems where private was not correctly
10089 implemented like the infamous i386 svr4.0, and systems where the
10090 VM page cache was not coherent with the file system buffer cache
10091 like early versions of FreeBSD and possibly contemporary NetBSD.)
10092 For shared mappings, we should conversely verify that changes get
10093 propagated back to all the places they're supposed to be.
10095 Grep wants private fixed already mapped.
10096 The main things grep needs to know about mmap are:
10097 * does it exist and is it safe to write into the mmap'd area
10098 * how to use it (BSD variants) */
10101 #include <sys/mman.h>
10103 #if !STDC_HEADERS && !HAVE_STDLIB_H
10107 /* This mess was copied from the GNU getpagesize.h. */
10108 #if !HAVE_GETPAGESIZE
10109 /* Assume that all systems that can run configure have sys/param.h. */
10110 # if !HAVE_SYS_PARAM_H
10111 # define HAVE_SYS_PARAM_H 1
10114 # ifdef _SC_PAGESIZE
10115 # define getpagesize() sysconf(_SC_PAGESIZE)
10116 # else /* no _SC_PAGESIZE */
10117 # if HAVE_SYS_PARAM_H
10118 # include <sys/param.h>
10119 # ifdef EXEC_PAGESIZE
10120 # define getpagesize() EXEC_PAGESIZE
10121 # else /* no EXEC_PAGESIZE */
10123 # define getpagesize() NBPG * CLSIZE
10126 # endif /* no CLSIZE */
10127 # else /* no NBPG */
10129 # define getpagesize() NBPC
10130 # else /* no NBPC */
10132 # define getpagesize() PAGESIZE
10133 # endif /* PAGESIZE */
10134 # endif /* no NBPC */
10135 # endif /* no NBPG */
10136 # endif /* no EXEC_PAGESIZE */
10137 # else /* no HAVE_SYS_PARAM_H */
10138 # define getpagesize() 8192 /* punt totally */
10139 # endif /* no HAVE_SYS_PARAM_H */
10140 # endif /* no _SC_PAGESIZE */
10142 #endif /* no HAVE_GETPAGESIZE */
10147 char *data, *data2, *data3;
10151 pagesize = getpagesize ();
10153 /* First, make a file with some known garbage in it. */
10154 data = (char *) malloc (pagesize);
10157 for (i = 0; i < pagesize; ++i)
10158 *(data + i) = rand ();
10160 fd = creat ("conftest.mmap", 0600);
10163 if (write (fd, data, pagesize) != pagesize)
10167 /* Next, try to mmap the file at a fixed address which already has
10168 something else allocated at it. If we can, also make sure that
10169 we see the same garbage. */
10170 fd = open ("conftest.mmap", O_RDWR);
10173 data2 = (char *) malloc (2 * pagesize);
10176 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10177 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10178 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10180 for (i = 0; i < pagesize; ++i)
10181 if (*(data + i) != *(data2 + i))
10184 /* Finally, make sure that changes to the mapped area do not
10185 percolate back to the file as seen by read(). (This is a bug on
10186 some variants of i386 svr4.0.) */
10187 for (i = 0; i < pagesize; ++i)
10188 *(data2 + i) = *(data2 + i) + 1;
10189 data3 = (char *) malloc (pagesize);
10192 if (read (fd, data3, pagesize) != pagesize)
10194 for (i = 0; i < pagesize; ++i)
10195 if (*(data + i) != *(data3 + i))
10201 rm -f conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_func_mmap_fixed_mapped=yes
10223 echo "$as_me: program exited with status $ac_status" >&5
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ( exit $ac_status )
10228 ac_cv_func_mmap_fixed_mapped=no
10230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10235 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10236 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_MMAP 1
10244 rm -f conftest.mmap
10247 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10248 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10249 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10259 #include <features.h>
10260 #ifdef __GNU_LIBRARY__
10261 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10269 ac_cv_gnu_library_2_1=yes
10271 ac_cv_gnu_library_2_1=no
10278 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10279 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10281 GLIBC21="$ac_cv_gnu_library_2_1"
10286 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10287 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10288 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 if test "$cross_compiling" = yes; then
10294 # Guess based on the CPU.
10295 case "$host_cpu" in
10296 alpha* | i3456786 | m68k | s390*)
10297 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10299 gt_cv_int_divbyzero_sigfpe="guessing no";;
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10310 #include <stdlib.h>
10311 #include <signal.h>
10315 sigfpe_handler (int sig)
10317 sigfpe_handler (sig) int sig;
10320 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10321 exit (sig != SIGFPE);
10331 signal (SIGFPE, sigfpe_handler);
10332 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10333 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10334 signal (SIGTRAP, sigfpe_handler);
10336 /* Linux/SPARC yields signal SIGILL. */
10337 #if defined (__sparc__) && defined (__linux__)
10338 signal (SIGILL, sigfpe_handler);
10347 rm -f conftest$ac_exeext
10348 if { (ac_try="$ac_link"
10349 case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_link") 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10358 { (case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_try") 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 gt_cv_int_divbyzero_sigfpe=yes
10369 echo "$as_me: program exited with status $ac_status" >&5
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ( exit $ac_status )
10374 gt_cv_int_divbyzero_sigfpe=no
10376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10382 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10383 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10384 case "$gt_cv_int_divbyzero_sigfpe" in
10389 cat >>confdefs.h <<_ACEOF
10390 #define INTDIV0_RAISES_SIGFPE $value
10395 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10396 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10397 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 unsigned long long ull = 1ULL; int i = 63;
10410 unsigned long long ullmax = (unsigned long long) -1;
10411 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest$ac_exeext'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_type_unsigned_long_long=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_cv_type_unsigned_long_long=no
10458 rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10461 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10462 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10463 if test $ac_cv_type_unsigned_long_long = yes; then
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_UNSIGNED_LONG_LONG 1
10474 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10476 test $ac_cv_type_unsigned_long_long = yes \
10477 && ac_type='unsigned long long' \
10478 || ac_type='unsigned long'
10480 cat >>confdefs.h <<_ACEOF
10481 #define uintmax_t $ac_type
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_UINTMAX_T 1
10493 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10494 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10495 if test "${gt_cv_header_inttypes_h+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 #include <sys/types.h>
10506 #include <inttypes.h>
10515 rm -f conftest.$ac_objext
10516 if { (ac_try="$ac_compile"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_compile") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530 { (case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_try") 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 gt_cv_header_inttypes_h=yes
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 gt_cv_header_inttypes_h=no
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10561 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10562 if test $gt_cv_header_inttypes_h = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define HAVE_INTTYPES_H 1
10572 if test $gt_cv_header_inttypes_h = yes; then
10573 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10574 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10575 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <inttypes.h>
10598 rm -f conftest.$ac_objext
10599 if { (ac_try="$ac_compile"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_try") 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_try") 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 gt_cv_inttypes_pri_broken=no
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 gt_cv_inttypes_pri_broken=yes
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10644 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10646 if test "$gt_cv_inttypes_pri_broken" = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define PRI_MACROS_BROKEN 1
10656 for ac_header in stdint.h
10658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 ac_res=`eval echo '${'$as_ac_Header'}'`
10666 { echo "$as_me:$LINENO: result: $ac_res" >&5
10667 echo "${ECHO_T}$ac_res" >&6; }
10669 # Is the header compilable?
10670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10672 cat >conftest.$ac_ext <<_ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10679 #include <$ac_header>
10681 rm -f conftest.$ac_objext
10682 if { (ac_try="$ac_compile"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1 >conftest.err
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest.$ac_objext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_header_compiler=yes
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_header_compiler=no
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10725 echo "${ECHO_T}$ac_header_compiler" >&6; }
10727 # Is the header present?
10728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 #include <$ac_header>
10738 if { (ac_try="$ac_cpp conftest.$ac_ext"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } >/dev/null; then
10751 if test -s conftest.err; then
10752 ac_cpp_err=$ac_c_preproc_warn_flag
10753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10760 if test -z "$ac_cpp_err"; then
10761 ac_header_preproc=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ac_header_preproc=no
10769 rm -f conftest.err conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771 echo "${ECHO_T}$ac_header_preproc" >&6; }
10773 # So? What about this header?
10774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780 ac_header_preproc=yes
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 eval "$as_ac_Header=\$ac_header_preproc"
10805 ac_res=`eval echo '${'$as_ac_Header'}'`
10806 { echo "$as_me:$LINENO: result: $ac_res" >&5
10807 echo "${ECHO_T}$ac_res" >&6; }
10810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10811 cat >>confdefs.h <<_ACEOF
10812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10820 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10829 #include <limits.h>
10831 #include <stdint.h>
10838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839 $EGREP "Found it" >/dev/null 2>&1; then
10844 if test -z "$result"; then
10845 if test "$cross_compiling" = yes; then
10846 # Depending upon the size, compute the lo and hi bounds.
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <stddef.h>
10857 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 #include <stddef.h>
10910 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_compile") 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest.$ac_objext'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_hi=$ac_mid; break
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_lo=`expr $ac_mid + 1`
10957 if test $ac_lo -le $ac_mid; then
10961 ac_mid=`expr 2 '*' $ac_mid + 1`
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 #include <stddef.h>
10980 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <stddef.h>
11033 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11040 rm -f conftest.$ac_objext
11041 if { (ac_try="$ac_compile"
11042 case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_compile") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_lo=$ac_mid; break
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_hi=`expr '(' $ac_mid ')' - 1`
11080 if test $ac_mid -le $ac_hi; then
11084 ac_mid=`expr 2 '*' $ac_mid`
11087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 # Binary search between lo and hi bounds.
11101 while test "x$ac_lo" != "x$ac_hi"; do
11102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 #include <stddef.h>
11113 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_compile") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_lo=`expr '(' $ac_mid ')' + 1`
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 ?*) res_hi=$ac_lo;;
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <stddef.h>
11176 static long int longval () { return ~(size_t)0 / 10; }
11177 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11179 #include <stdlib.h>
11184 FILE *f = fopen ("conftest.val", "w");
11187 if ((~(size_t)0 / 10) < 0)
11189 long int i = longval ();
11190 if (i != (~(size_t)0 / 10))
11192 fprintf (f, "%ld\n", i);
11196 unsigned long int i = ulongval ();
11197 if (i != (~(size_t)0 / 10))
11199 fprintf (f, "%lu\n", i);
11201 return ferror (f) || fclose (f) != 0;
11207 rm -f conftest$ac_exeext
11208 if { (ac_try="$ac_link"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_link") 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 res_hi=`cat conftest.val`
11229 echo "$as_me: program exited with status $ac_status" >&5
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ( exit $ac_status )
11236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11239 if test "$cross_compiling" = yes; then
11240 # Depending upon the size, compute the lo and hi bounds.
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <stddef.h>
11251 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 #include <stddef.h>
11304 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11311 rm -f conftest.$ac_objext
11312 if { (ac_try="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_hi=$ac_mid; break
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_lo=`expr $ac_mid + 1`
11351 if test $ac_lo -le $ac_mid; then
11355 ac_mid=`expr 2 '*' $ac_mid + 1`
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 #include <stddef.h>
11374 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11381 rm -f conftest.$ac_objext
11382 if { (ac_try="$ac_compile"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11390 grep -v '^ *+' conftest.er1 >conftest.err
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <stddef.h>
11427 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_compile") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_lo=$ac_mid; break
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_hi=`expr '(' $ac_mid ')' - 1`
11474 if test $ac_mid -le $ac_hi; then
11478 ac_mid=`expr 2 '*' $ac_mid`
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 # Binary search between lo and hi bounds.
11495 while test "x$ac_lo" != "x$ac_hi"; do
11496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <stddef.h>
11507 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_lo=`expr '(' $ac_mid ')' + 1`
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 ?*) res_lo=$ac_lo;;
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <stddef.h>
11570 static long int longval () { return ~(size_t)0 % 10; }
11571 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11573 #include <stdlib.h>
11578 FILE *f = fopen ("conftest.val", "w");
11581 if ((~(size_t)0 % 10) < 0)
11583 long int i = longval ();
11584 if (i != (~(size_t)0 % 10))
11586 fprintf (f, "%ld\n", i);
11590 unsigned long int i = ulongval ();
11591 if (i != (~(size_t)0 % 10))
11593 fprintf (f, "%lu\n", i);
11595 return ferror (f) || fclose (f) != 0;
11601 rm -f conftest$ac_exeext
11602 if { (ac_try="$ac_link"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_link") 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 res_lo=`cat conftest.val`
11623 echo "$as_me: program exited with status $ac_status" >&5
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ( exit $ac_status )
11630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11633 if test "$cross_compiling" = yes; then
11634 # Depending upon the size, compute the lo and hi bounds.
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 #include <stddef.h>
11645 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #include <stddef.h>
11698 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11705 rm -f conftest.$ac_objext
11706 if { (ac_try="$ac_compile"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_compile") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_hi=$ac_mid; break
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_lo=`expr $ac_mid + 1`
11745 if test $ac_lo -le $ac_mid; then
11749 ac_mid=`expr 2 '*' $ac_mid + 1`
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 #include <stddef.h>
11768 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <stddef.h>
11821 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_try") 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_try") 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_lo=$ac_mid; break
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ac_hi=`expr '(' $ac_mid ')' - 1`
11868 if test $ac_mid -le $ac_hi; then
11872 ac_mid=`expr 2 '*' $ac_mid`
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 # Binary search between lo and hi bounds.
11889 while test "x$ac_lo" != "x$ac_hi"; do
11890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #include <stddef.h>
11901 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest.$ac_objext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_lo=`expr '(' $ac_mid ')' + 1`
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 ?*) fits_in_uint=$ac_lo;;
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 #include <stddef.h>
11964 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11965 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11967 #include <stdlib.h>
11972 FILE *f = fopen ("conftest.val", "w");
11975 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11977 long int i = longval ();
11978 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11980 fprintf (f, "%ld\n", i);
11984 unsigned long int i = ulongval ();
11985 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11987 fprintf (f, "%lu\n", i);
11989 return ferror (f) || fclose (f) != 0;
11995 rm -f conftest$ac_exeext
11996 if { (ac_try="$ac_link"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 fits_in_uint=`cat conftest.val`
12017 echo "$as_me: program exited with status $ac_status" >&5
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ( exit $ac_status )
12024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027 if test "$fits_in_uint" = 1; then
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 #include <stddef.h>
12036 extern unsigned long foo;
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12061 { (case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_try") 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 if test -z "$result"; then
12091 if test "$fits_in_uint" = 1; then
12092 result="$res_hi$res_lo"U
12094 result="$res_hi$res_lo"UL
12097 result='~(size_t)0'
12100 { echo "$as_me:$LINENO: result: $result" >&5
12101 echo "${ECHO_T}$result" >&6; }
12102 if test "$result" != yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define SIZE_MAX $result
12114 for ac_header in stdint.h
12116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 ac_res=`eval echo '${'$as_ac_Header'}'`
12124 { echo "$as_me:$LINENO: result: $ac_res" >&5
12125 echo "${ECHO_T}$ac_res" >&6; }
12127 # Is the header compilable?
12128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 $ac_includes_default
12137 #include <$ac_header>
12139 rm -f conftest.$ac_objext
12140 if { (ac_try="$ac_compile"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_compile") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154 { (case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_try") 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest.$ac_objext'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_header_compiler=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_header_compiler=no
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12183 echo "${ECHO_T}$ac_header_compiler" >&6; }
12185 # Is the header present?
12186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 #include <$ac_header>
12196 if { (ac_try="$ac_cpp conftest.$ac_ext"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } >/dev/null; then
12209 if test -s conftest.err; then
12210 ac_cpp_err=$ac_c_preproc_warn_flag
12211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12218 if test -z "$ac_cpp_err"; then
12219 ac_header_preproc=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_header_preproc=no
12227 rm -f conftest.err conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12229 echo "${ECHO_T}$ac_header_preproc" >&6; }
12231 # So? What about this header?
12232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12238 ac_header_preproc=yes
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 eval "$as_ac_Header=\$ac_header_preproc"
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12269 cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12284 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12285 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12286 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12296 typedef ptrdiff_t ac__type_new_;
12300 if ((ac__type_new_ *) 0)
12302 if (sizeof (ac__type_new_))
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_type_ptrdiff_t=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_cv_type_ptrdiff_t=no
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12353 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12354 if test $ac_cv_type_ptrdiff_t = yes; then
12358 cat >>confdefs.h <<\_ACEOF
12359 #define ptrdiff_t long
12375 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12376 stdlib.h string.h unistd.h sys/param.h
12378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_res=`eval echo '${'$as_ac_Header'}'`
12386 { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12389 # Is the header compilable?
12390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 $ac_includes_default
12399 #include <$ac_header>
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_header_compiler=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_header_compiler=no
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6; }
12447 # Is the header present?
12448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 #include <$ac_header>
12458 if { (ac_try="$ac_cpp conftest.$ac_ext"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } >/dev/null; then
12471 if test -s conftest.err; then
12472 ac_cpp_err=$ac_c_preproc_warn_flag
12473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12480 if test -z "$ac_cpp_err"; then
12481 ac_header_preproc=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_header_preproc=no
12489 rm -f conftest.err conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6; }
12493 # So? What about this header?
12494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12500 ac_header_preproc=yes
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 eval "$as_ac_Header=\$ac_header_preproc"
12525 ac_res=`eval echo '${'$as_ac_Header'}'`
12526 { echo "$as_me:$LINENO: result: $ac_res" >&5
12527 echo "${ECHO_T}$ac_res" >&6; }
12530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12531 cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12562 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12563 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12564 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12581 #define $ac_func innocuous_$ac_func
12583 /* System header to define __stub macros and hopefully few prototypes,
12584 which can conflict with char $ac_func (); below.
12585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 <limits.h> exists even on freestanding compilers. */
12589 # include <limits.h>
12591 # include <assert.h>
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12603 /* The GNU C library defines this for functions which it implements
12604 to always fail with ENOSYS. Some functions are actually named
12605 something starting with __ and the normal name is an alias. */
12606 #if defined __stub_$ac_func || defined __stub___$ac_func
12613 return $ac_func ();
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (ac_try="$ac_link"
12620 case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 (eval "$ac_link") 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12633 { (case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_try") 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest$ac_exeext'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 eval "$as_ac_var=yes"
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 eval "$as_ac_var=no"
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12663 ac_res=`eval echo '${'$as_ac_var'}'`
12664 { echo "$as_me:$LINENO: result: $ac_res" >&5
12665 echo "${ECHO_T}$ac_res" >&6; }
12666 if test `eval echo '${'$as_ac_var'}'` = yes; then
12667 cat >>confdefs.h <<_ACEOF
12668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12677 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12678 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 cat >conftest.$ac_ext <<_ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12693 char *p = (char *) _snprintf;
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12715 { (case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_try") 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } &&
12724 { ac_try='test -s conftest.$ac_objext'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_have_decl__snprintf=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_have_decl__snprintf=no
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12745 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12746 if test $ac_cv_have_decl__snprintf = yes; then
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_DECL__SNPRINTF $gt_value
12758 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12759 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12760 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12775 char *p = (char *) _snwprintf;
12782 rm -f conftest.$ac_objext
12783 if { (ac_try="$ac_compile"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_compile") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest.$ac_objext'
12807 { (case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_try") 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 ac_cv_have_decl__snwprintf=yes
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 ac_cv_have_decl__snwprintf=no
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12827 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12828 if test $ac_cv_have_decl__snwprintf = yes; then
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_DECL__SNWPRINTF $gt_value
12841 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12842 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12843 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 cat >conftest.$ac_ext <<_ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12857 #ifndef feof_unlocked
12858 char *p = (char *) feof_unlocked;
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_try") 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_have_decl_feof_unlocked=yes
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ac_cv_have_decl_feof_unlocked=no
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12910 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12911 if test $ac_cv_have_decl_feof_unlocked = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12923 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12924 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12925 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12939 #ifndef fgets_unlocked
12940 char *p = (char *) fgets_unlocked;
12947 rm -f conftest.$ac_objext
12948 if { (ac_try="$ac_compile"
12949 case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_compile") 2>conftest.er1
12956 grep -v '^ *+' conftest.er1 >conftest.err
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12962 { (case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_try") 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest.$ac_objext'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_have_decl_fgets_unlocked=yes
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_cv_have_decl_fgets_unlocked=no
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12992 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12993 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12999 cat >>confdefs.h <<_ACEOF
13000 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13005 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13006 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13007 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13021 #ifndef getc_unlocked
13022 char *p = (char *) getc_unlocked;
13029 rm -f conftest.$ac_objext
13030 if { (ac_try="$ac_compile"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_compile") 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_have_decl_getc_unlocked=yes
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_have_decl_getc_unlocked=no
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13074 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13075 if test $ac_cv_have_decl_getc_unlocked = yes; then
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13087 case $gt_cv_func_printf_posix in
13088 *yes) HAVE_POSIX_PRINTF=1 ;;
13089 *) HAVE_POSIX_PRINTF=0 ;;
13092 if test "$ac_cv_func_asprintf" = yes; then
13098 if test "$ac_cv_func_snprintf" = yes; then
13104 if test "$ac_cv_func_wprintf" = yes; then
13116 am_save_CPPFLAGS="$CPPFLAGS"
13118 for element in $INCICONV; do
13120 for x in $CPPFLAGS; do
13122 acl_save_prefix="$prefix"
13123 prefix="$acl_final_prefix"
13124 acl_save_exec_prefix="$exec_prefix"
13125 exec_prefix="$acl_final_exec_prefix"
13127 exec_prefix="$acl_save_exec_prefix"
13128 prefix="$acl_save_prefix"
13130 if test "X$x" = "X$element"; then
13135 if test -z "$haveit"; then
13136 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13141 { echo "$as_me:$LINENO: checking for iconv" >&5
13142 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13143 if test "${am_cv_func_iconv+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 am_cv_func_iconv="no, consider installing GNU libiconv"
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #include <stdlib.h>
13160 iconv_t cd = iconv_open("","");
13161 iconv(cd,NULL,NULL,NULL,NULL);
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 am_cv_func_iconv=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 if test "$am_cv_func_iconv" != yes; then
13212 am_save_LIBS="$LIBS"
13213 LIBS="$LIBS $LIBICONV"
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <stdlib.h>
13225 iconv_t cd = iconv_open("","");
13226 iconv(cd,NULL,NULL,NULL,NULL);
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 am_cv_lib_iconv=yes
13267 am_cv_func_iconv=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS="$am_save_LIBS"
13281 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13282 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13283 if test "$am_cv_func_iconv" = yes; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_ICONV 1
13290 if test "$am_cv_lib_iconv" = yes; then
13291 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13292 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13293 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13294 echo "${ECHO_T}$LIBICONV" >&6; }
13296 CPPFLAGS="$am_save_CPPFLAGS"
13303 if test "$am_cv_func_iconv" = yes; then
13304 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13305 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13306 if test "${am_cv_proto_iconv+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13317 #include <stdlib.h>
13323 #if defined(__STDC__) || defined(__cplusplus)
13324 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_compile") 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 am_cv_proto_iconv_arg1=""
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 am_cv_proto_iconv_arg1="const"
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 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);"
13383 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13384 { echo "$as_me:$LINENO: result: ${ac_t:-
13385 }$am_cv_proto_iconv" >&5
13386 echo "${ECHO_T}${ac_t:-
13387 }$am_cv_proto_iconv" >&6; }
13389 cat >>confdefs.h <<_ACEOF
13390 #define ICONV_CONST $am_cv_proto_iconv_arg1
13396 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13397 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13398 if test "${am_cv_langinfo_codeset+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #include <langinfo.h>
13411 char* cs = nl_langinfo(CODESET);
13416 rm -f conftest.$ac_objext conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>conftest.er1
13425 grep -v '^ *+' conftest.er1 >conftest.err
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; } &&
13440 { ac_try='test -s conftest$ac_exeext'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 am_cv_langinfo_codeset=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 am_cv_langinfo_codeset=no
13458 rm -f core conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13463 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13464 if test $am_cv_langinfo_codeset = yes; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_LANGINFO_CODESET 1
13472 if test $ac_cv_header_locale_h = yes; then
13474 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13475 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13476 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <locale.h>
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
13508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509 { (case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_try") 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 gt_cv_val_LC_MESSAGES=yes
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 gt_cv_val_LC_MESSAGES=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13539 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13540 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13541 if test $gt_cv_val_LC_MESSAGES = yes; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_LC_MESSAGES 1
13551 if test -n "$INTL_MACOSX_LIBS"; then
13552 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13555 for ac_prog in bison
13557 # Extract the first word of "$ac_prog", so it can be a program name with args.
13558 set dummy $ac_prog; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 if test -n "$INTLBISON"; then
13565 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_INTLBISON="$ac_prog"
13575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 INTLBISON=$ac_cv_prog_INTLBISON
13585 if test -n "$INTLBISON"; then
13586 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13587 echo "${ECHO_T}$INTLBISON" >&6; }
13589 { echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6; }
13594 test -n "$INTLBISON" && break
13597 if test -z "$INTLBISON"; then
13600 { echo "$as_me:$LINENO: checking version of bison" >&5
13601 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13602 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13603 case $ac_prog_version in
13604 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13605 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13606 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13607 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13609 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13610 echo "${ECHO_T}$ac_prog_version" >&6; }
13612 if test $ac_verc_fail = yes; then
13631 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13632 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13633 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 gt_save_CPPFLAGS="$CPPFLAGS"
13637 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13638 gt_save_LIBS="$LIBS"
13639 LIBS="$LIBS -framework CoreFoundation"
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 #include <CFPreferences.h>
13650 CFPreferencesCopyAppValue(NULL, NULL)
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (ac_try="$ac_link"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_link") 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13670 { (case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_try") 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest$ac_exeext'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 gt_cv_func_CFPreferencesCopyAppValue=yes
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 gt_cv_func_CFPreferencesCopyAppValue=no
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 CPPFLAGS="$gt_save_CPPFLAGS"
13700 LIBS="$gt_save_LIBS"
13702 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13703 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13704 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13711 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13712 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13713 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 gt_save_CPPFLAGS="$CPPFLAGS"
13717 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13718 gt_save_LIBS="$LIBS"
13719 LIBS="$LIBS -framework CoreFoundation"
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include <CFLocale.h>
13730 CFLocaleCopyCurrent();
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_link") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 gt_cv_func_CFLocaleCopyCurrent=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 gt_cv_func_CFLocaleCopyCurrent=no
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 CPPFLAGS="$gt_save_CPPFLAGS"
13780 LIBS="$gt_save_LIBS"
13782 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13783 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13784 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_CFLOCALECOPYCURRENT 1
13792 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13793 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13799 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13800 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13801 # Check whether --enable-nls was given.
13802 if test "${enable_nls+set}" = set; then
13803 enableval=$enable_nls; USE_NLS=$enableval
13808 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13809 echo "${ECHO_T}$USE_NLS" >&6; }
13814 BUILD_INCLUDED_LIBINTL=no
13815 USE_INCLUDED_LIBINTL=no
13821 if test "$USE_NLS" = "yes"; then
13822 gt_use_preinstalled_gnugettext=no
13824 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13825 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13827 # Check whether --with-included-gettext was given.
13828 if test "${with_included_gettext+set}" = set; then
13829 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13831 nls_cv_force_use_gnu_gettext=no
13834 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13835 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13837 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13838 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13845 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13846 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13847 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 #include <libintl.h>
13857 extern int _nl_msg_cat_cntr;
13858 extern int *_nl_domain_bindings;
13862 bindtextdomain ("", "");
13863 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 gt_cv_func_gnugettext1_libc=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 gt_cv_func_gnugettext1_libc=no
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13914 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13916 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13922 acl_save_prefix="$prefix"
13923 prefix="$acl_final_prefix"
13924 acl_save_exec_prefix="$exec_prefix"
13925 exec_prefix="$acl_final_exec_prefix"
13927 eval additional_includedir=\"$includedir\"
13928 eval additional_libdir=\"$libdir\"
13930 exec_prefix="$acl_save_exec_prefix"
13931 prefix="$acl_save_prefix"
13934 # Check whether --with-libintl-prefix was given.
13935 if test "${with_libintl_prefix+set}" = set; then
13936 withval=$with_libintl_prefix;
13937 if test "X$withval" = "Xno"; then
13940 if test "X$withval" = "X"; then
13942 acl_save_prefix="$prefix"
13943 prefix="$acl_final_prefix"
13944 acl_save_exec_prefix="$exec_prefix"
13945 exec_prefix="$acl_final_exec_prefix"
13947 eval additional_includedir=\"$includedir\"
13948 eval additional_libdir=\"$libdir\"
13950 exec_prefix="$acl_save_exec_prefix"
13951 prefix="$acl_save_prefix"
13954 additional_includedir="$withval/include"
13955 additional_libdir="$withval/lib"
13966 names_already_handled=
13967 names_next_round='intl '
13968 while test -n "$names_next_round"; do
13969 names_this_round="$names_next_round"
13971 for name in $names_this_round; do
13973 for n in $names_already_handled; do
13974 if test "$n" = "$name"; then
13975 already_handled=yes
13979 if test -z "$already_handled"; then
13980 names_already_handled="$names_already_handled $name"
13981 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13982 eval value=\"\$HAVE_LIB$uppername\"
13983 if test -n "$value"; then
13984 if test "$value" = yes; then
13985 eval value=\"\$LIB$uppername\"
13986 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13987 eval value=\"\$LTLIB$uppername\"
13988 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13997 if test $use_additional = yes; then
13998 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13999 found_dir="$additional_libdir"
14000 found_so="$additional_libdir/lib$name.$shlibext"
14001 if test -f "$additional_libdir/lib$name.la"; then
14002 found_la="$additional_libdir/lib$name.la"
14005 if test -f "$additional_libdir/lib$name.$libext"; then
14006 found_dir="$additional_libdir"
14007 found_a="$additional_libdir/lib$name.$libext"
14008 if test -f "$additional_libdir/lib$name.la"; then
14009 found_la="$additional_libdir/lib$name.la"
14014 if test "X$found_dir" = "X"; then
14015 for x in $LDFLAGS $LTLIBINTL; do
14017 acl_save_prefix="$prefix"
14018 prefix="$acl_final_prefix"
14019 acl_save_exec_prefix="$exec_prefix"
14020 exec_prefix="$acl_final_exec_prefix"
14022 exec_prefix="$acl_save_exec_prefix"
14023 prefix="$acl_save_prefix"
14027 dir=`echo "X$x" | sed -e 's/^X-L//'`
14028 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14030 found_so="$dir/lib$name.$shlibext"
14031 if test -f "$dir/lib$name.la"; then
14032 found_la="$dir/lib$name.la"
14035 if test -f "$dir/lib$name.$libext"; then
14037 found_a="$dir/lib$name.$libext"
14038 if test -f "$dir/lib$name.la"; then
14039 found_la="$dir/lib$name.la"
14045 if test "X$found_dir" != "X"; then
14050 if test "X$found_dir" != "X"; then
14051 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14052 if test "X$found_so" != "X"; then
14053 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14057 for x in $ltrpathdirs; do
14058 if test "X$x" = "X$found_dir"; then
14063 if test -z "$haveit"; then
14064 ltrpathdirs="$ltrpathdirs $found_dir"
14066 if test "$hardcode_direct" = yes; then
14067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14069 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14072 for x in $rpathdirs; do
14073 if test "X$x" = "X$found_dir"; then
14078 if test -z "$haveit"; then
14079 rpathdirs="$rpathdirs $found_dir"
14083 for x in $LDFLAGS $LIBINTL; do
14085 acl_save_prefix="$prefix"
14086 prefix="$acl_final_prefix"
14087 acl_save_exec_prefix="$exec_prefix"
14088 exec_prefix="$acl_final_exec_prefix"
14090 exec_prefix="$acl_save_exec_prefix"
14091 prefix="$acl_save_prefix"
14093 if test "X$x" = "X-L$found_dir"; then
14098 if test -z "$haveit"; then
14099 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14101 if test "$hardcode_minus_L" != no; then
14102 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14104 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14110 if test "X$found_a" != "X"; then
14111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14113 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14116 additional_includedir=
14117 case "$found_dir" in
14119 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14120 additional_includedir="$basedir/include"
14123 if test "X$additional_includedir" != "X"; then
14124 if test "X$additional_includedir" != "X/usr/include"; then
14126 if test "X$additional_includedir" = "X/usr/local/include"; then
14127 if test -n "$GCC"; then
14129 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14133 if test -z "$haveit"; then
14134 for x in $CPPFLAGS $INCINTL; do
14136 acl_save_prefix="$prefix"
14137 prefix="$acl_final_prefix"
14138 acl_save_exec_prefix="$exec_prefix"
14139 exec_prefix="$acl_final_exec_prefix"
14141 exec_prefix="$acl_save_exec_prefix"
14142 prefix="$acl_save_prefix"
14144 if test "X$x" = "X-I$additional_includedir"; then
14149 if test -z "$haveit"; then
14150 if test -d "$additional_includedir"; then
14151 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14157 if test -n "$found_la"; then
14158 save_libdir="$libdir"
14159 case "$found_la" in
14160 */* | *\\*) . "$found_la" ;;
14161 *) . "./$found_la" ;;
14163 libdir="$save_libdir"
14164 for dep in $dependency_libs; do
14167 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14168 if test "X$additional_libdir" != "X/usr/lib"; then
14170 if test "X$additional_libdir" = "X/usr/local/lib"; then
14171 if test -n "$GCC"; then
14173 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14177 if test -z "$haveit"; then
14179 for x in $LDFLAGS $LIBINTL; do
14181 acl_save_prefix="$prefix"
14182 prefix="$acl_final_prefix"
14183 acl_save_exec_prefix="$exec_prefix"
14184 exec_prefix="$acl_final_exec_prefix"
14186 exec_prefix="$acl_save_exec_prefix"
14187 prefix="$acl_save_prefix"
14189 if test "X$x" = "X-L$additional_libdir"; then
14194 if test -z "$haveit"; then
14195 if test -d "$additional_libdir"; then
14196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14200 for x in $LDFLAGS $LTLIBINTL; do
14202 acl_save_prefix="$prefix"
14203 prefix="$acl_final_prefix"
14204 acl_save_exec_prefix="$exec_prefix"
14205 exec_prefix="$acl_final_exec_prefix"
14207 exec_prefix="$acl_save_exec_prefix"
14208 prefix="$acl_save_prefix"
14210 if test "X$x" = "X-L$additional_libdir"; then
14215 if test -z "$haveit"; then
14216 if test -d "$additional_libdir"; then
14217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14224 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14225 if test "$enable_rpath" != no; then
14227 for x in $rpathdirs; do
14228 if test "X$x" = "X$dir"; then
14233 if test -z "$haveit"; then
14234 rpathdirs="$rpathdirs $dir"
14237 for x in $ltrpathdirs; do
14238 if test "X$x" = "X$dir"; then
14243 if test -z "$haveit"; then
14244 ltrpathdirs="$ltrpathdirs $dir"
14249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14252 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14255 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14262 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14269 if test "X$rpathdirs" != "X"; then
14270 if test -n "$hardcode_libdir_separator"; then
14272 for found_dir in $rpathdirs; do
14273 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14275 acl_save_libdir="$libdir"
14277 eval flag=\"$hardcode_libdir_flag_spec\"
14278 libdir="$acl_save_libdir"
14279 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14281 for found_dir in $rpathdirs; do
14282 acl_save_libdir="$libdir"
14283 libdir="$found_dir"
14284 eval flag=\"$hardcode_libdir_flag_spec\"
14285 libdir="$acl_save_libdir"
14286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14290 if test "X$ltrpathdirs" != "X"; then
14291 for found_dir in $ltrpathdirs; do
14292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14296 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14297 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14298 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 gt_save_CPPFLAGS="$CPPFLAGS"
14302 CPPFLAGS="$CPPFLAGS $INCINTL"
14303 gt_save_LIBS="$LIBS"
14304 LIBS="$LIBS $LIBINTL"
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <libintl.h>
14312 extern int _nl_msg_cat_cntr;
14317 const char *_nl_expand_alias (const char *);
14321 bindtextdomain ("", "");
14322 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_link") 2>conftest.er1
14336 grep -v '^ *+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest$ac_exeext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 gt_cv_func_gnugettext1_libintl=yes
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 gt_cv_func_gnugettext1_libintl=no
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14372 LIBS="$LIBS $LIBICONV"
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #include <libintl.h>
14380 extern int _nl_msg_cat_cntr;
14385 const char *_nl_expand_alias (const char *);
14389 bindtextdomain ("", "");
14390 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 LIBINTL="$LIBINTL $LIBICONV"
14430 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14431 gt_cv_func_gnugettext1_libintl=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14443 CPPFLAGS="$gt_save_CPPFLAGS"
14444 LIBS="$gt_save_LIBS"
14446 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14447 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14450 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14451 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14452 && test "$PACKAGE" != gettext-runtime \
14453 && test "$PACKAGE" != gettext-tools; }; then
14454 gt_use_preinstalled_gnugettext=yes
14462 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14463 nls_cv_use_gnu_gettext=yes
14467 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14468 BUILD_INCLUDED_LIBINTL=yes
14469 USE_INCLUDED_LIBINTL=yes
14470 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14471 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14472 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14476 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14477 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14482 if test -n "$INTL_MACOSX_LIBS"; then
14483 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14484 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14485 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14486 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14490 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14491 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14493 cat >>confdefs.h <<\_ACEOF
14494 #define ENABLE_NLS 1
14502 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14503 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14504 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14505 echo "${ECHO_T}$USE_NLS" >&6; }
14506 if test "$USE_NLS" = "yes"; then
14507 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14508 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14509 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14510 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14511 gt_source="external libintl"
14516 gt_source="included intl directory"
14518 { echo "$as_me:$LINENO: result: $gt_source" >&5
14519 echo "${ECHO_T}$gt_source" >&6; }
14522 if test "$USE_NLS" = "yes"; then
14524 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14525 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14526 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14527 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14528 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14529 echo "${ECHO_T}$LIBINTL" >&6; }
14531 for element in $INCINTL; do
14533 for x in $CPPFLAGS; do
14535 acl_save_prefix="$prefix"
14536 prefix="$acl_final_prefix"
14537 acl_save_exec_prefix="$exec_prefix"
14538 exec_prefix="$acl_final_exec_prefix"
14540 exec_prefix="$acl_save_exec_prefix"
14541 prefix="$acl_save_prefix"
14543 if test "X$x" = "X$element"; then
14548 if test -z "$haveit"; then
14549 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_GETTEXT 1
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_DCGETTEXT 1
14571 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14572 BUILD_INCLUDED_LIBINTL=yes
14579 nls_cv_header_intl=
14580 nls_cv_header_libgt=
14592 if test "$USE_INCLUDED_LIBINTL" = yes; then
14593 INTLOBJS="\$(GETTOBJS)"
14597 INTL_LIBTOOL_SUFFIX_PREFIX=
14601 INTLLIBS="$LIBINTL"
14614 support_postgresql=no
14615 support_smartalloc=yes
14616 support_readline=yes
14619 support_wx_console=no
14624 support_static_tools=no
14625 support_static_fd=no
14626 support_static_sd=no
14627 support_static_dir=no
14628 support_static_cons=no
14630 build_client_only=no
14638 # -------------------------------------------
14639 # gnome (default off)
14640 # -------------------------------------------
14641 # Check whether --enable-gnome was given.
14642 if test "${enable_gnome+set}" = set; then
14643 enableval=$enable_gnome; if test x$enableval = xyes; then
14650 if test x$support_gnome = xyes; then
14651 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14653 if test $pkg = 0; then
14654 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14655 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14656 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14657 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14662 GNOME_DIR=src/gnome2-console
14663 gnome_version="Version 2.x"
14665 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14666 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14667 { (exit 1); exit 1; }; }
14673 # -------------------------------------------
14674 # wx-console (default off)
14675 # -------------------------------------------
14676 # Check whether --enable-wx-console was given.
14677 if test "${enable_wx_console+set}" = set; then
14678 enableval=$enable_wx_console; if test x$enableval = xyes; then
14679 support_wx_console=yes
14685 if test x$support_wx_console = xyes; then
14686 abc=`$WXCONFIG $WXFLAGS --cppflags`
14688 if test $pkg = 0; then
14689 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14690 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14691 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14695 WX_DIR=src/wx-console
14698 echo "wx-config program not found. wx-console disabled."
14700 support_wx_console=no
14706 # -------------------------------------------
14707 # tray-monitor (default off)
14708 # -------------------------------------------
14709 # Check whether --enable-tray-monitor was given.
14710 if test "${enable_tray_monitor+set}" = set; then
14711 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14712 support_tray_monitor=yes
14718 if test x$support_tray_monitor = xyes; then
14719 abc=`$PKGCONFIG --exists gtk+-2.0`
14721 if test $pkg = 0; then
14722 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14723 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14726 TRAY_MONITOR_DIR=src/tray-monitor
14727 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14729 if test $pkg = 0; then
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_GTK_2_4 1
14739 # -------------------------------------------
14740 # smartalloc (default off)
14741 # -------------------------------------------
14742 # Check whether --enable-smartalloc was given.
14743 if test "${enable_smartalloc+set}" = set; then
14744 enableval=$enable_smartalloc; if test x$enableval = xno; then
14745 support_smartalloc=no
14750 if test x$support_smartalloc = xyes; then
14751 cat >>confdefs.h <<\_ACEOF
14752 #define SMARTALLOC 1
14757 # -------------------------------------------
14758 # static-tools (default off)
14759 # -------------------------------------------
14760 # Check whether --enable-static-tools was given.
14761 if test "${enable_static_tools+set}" = set; then
14762 enableval=$enable_static_tools; if test x$enableval = xyes; then
14763 support_static_tools=yes
14769 if test x$support_static_tools = xyes; then
14770 TTOOL_LDFLAGS="-static"
14774 # -------------------------------------------
14775 # static-fd (default off)
14776 # -------------------------------------------
14777 # Check whether --enable-static-fd was given.
14778 if test "${enable_static_fd+set}" = set; then
14779 enableval=$enable_static_fd; if test x$enableval = xyes; then
14780 support_static_fd=yes
14786 if test x$support_static_fd = xyes; then
14787 STATIC_FD="static-bacula-fd"
14791 # -------------------------------------------
14792 # static-sd (default off)
14793 # -------------------------------------------
14794 # Check whether --enable-static-sd was given.
14795 if test "${enable_static_sd+set}" = set; then
14796 enableval=$enable_static_sd; if test x$enableval = xyes; then
14797 support_static_sd=yes
14803 if test x$support_static_sd = xyes; then
14804 STATIC_SD="static-bacula-sd"
14808 # -------------------------------------------
14809 # static-dir (default off)
14810 # -------------------------------------------
14811 # Check whether --enable-static-dir was given.
14812 if test "${enable_static_dir+set}" = set; then
14813 enableval=$enable_static_dir; if test x$enableval = xyes; then
14814 support_static_dir=yes
14820 if test x$support_static_dir = xyes; then
14821 STATIC_DIR="static-bacula-dir"
14825 # -------------------------------------------
14826 # static-cons (default off)
14827 # -------------------------------------------
14828 # Check whether --enable-static-cons was given.
14829 if test "${enable_static_cons+set}" = set; then
14830 enableval=$enable_static_cons; if test x$enableval = xyes; then
14831 support_static_cons=yes
14839 if test x$support_static_cons = xyes; then
14840 STATIC_CONS="static-bconsole"
14841 STATIC_GNOME_CONS="static-gnome-console"
14842 STATIC_WX_CONS="static-wx-console"
14848 # -------------------------------------------
14849 # client_only (default off)
14850 # -------------------------------------------
14851 # Check whether --enable-client-only was given.
14852 if test "${enable_client_only+set}" = set; then
14853 enableval=$enable_client_only; if test x$enableval = xyes; then
14854 build_client_only=yes
14860 if test x$build_client_only = xno; then
14867 # -------------------------------------------
14868 # director (default on)
14869 # -------------------------------------------
14870 # Check whether --enable-build-dird was given.
14871 if test "${enable_build_dird+set}" = set; then
14872 enableval=$enable_build_dird; if test x$enableval = xno; then
14877 if test x$build_dird = xyes; then
14878 DIRD_DIR="src/dird"
14879 DIR_TOOLS="DIRTOOLS"
14882 DIR_TOOLS="NODIRTOOLS"
14887 # -------------------------------------------
14888 # stored (default on)
14889 # -------------------------------------------
14890 # Check whether --enable-build-stored was given.
14891 if test "${enable_build_stored+set}" = set; then
14892 enableval=$enable_build_stored; if test x$enableval = xno; then
14897 if test x$build_stored = xyes; then
14898 STORED_DIR="src/stored"
14904 # ---------------------------------------------------
14905 # Check for conio (Bacula readline substitute)(
14906 # ---------------------------------------------------
14907 # this allows you to turn it completely off
14908 # Check whether --enable-conio was given.
14909 if test "${enable_conio+set}" = set; then
14910 enableval=$enable_conio; if test x$enableval = xno; then
14918 # ---------------------------------------------------
14919 # Check for IPv6 support
14920 # ---------------------------------------------------
14921 # this allows you to turn it completely off
14923 # Check whether --enable-ipv6 was given.
14924 if test "${enable_ipv6+set}" = set; then
14925 enableval=$enable_ipv6; if test x$enableval = xno; then
14932 if test x$support_ipv6 = xyes; then
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #include <sys/types.h>
14940 #include <sys/socket.h>
14941 #include <netinet/in.h>
14945 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (ac_try="$ac_link"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_link") 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; } &&
14974 { ac_try='test -s conftest$ac_exeext'
14975 { (case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_try") 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14996 if test x$support_ipv6 = xyes; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_IPV6 1
15007 if test x$support_conio = xyes; then
15008 if test "${ac_cv_header_termcap_h+set}" = set; then
15009 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15010 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15011 if test "${ac_cv_header_termcap_h+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15015 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15017 # Is the header compilable?
15018 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15019 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 $ac_includes_default
15027 #include <termcap.h>
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_compile") 2>conftest.er1
15038 grep -v '^ *+' conftest.er1 >conftest.err
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044 { (case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest.$ac_objext'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_header_compiler=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_header_compiler=no
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15073 echo "${ECHO_T}$ac_header_compiler" >&6; }
15075 # Is the header present?
15076 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15077 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15078 cat >conftest.$ac_ext <<_ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084 #include <termcap.h>
15086 if { (ac_try="$ac_cpp conftest.$ac_ext"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } >/dev/null; then
15099 if test -s conftest.err; then
15100 ac_cpp_err=$ac_c_preproc_warn_flag
15101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15108 if test -z "$ac_cpp_err"; then
15109 ac_header_preproc=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_header_preproc=no
15117 rm -f conftest.err conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15119 echo "${ECHO_T}$ac_header_preproc" >&6; }
15121 # So? What about this header?
15122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15125 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15126 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15127 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15128 ac_header_preproc=yes
15131 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15132 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15134 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15136 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15138 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15140 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15142 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15146 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15147 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_termcap_h+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 ac_cv_header_termcap_h=$ac_header_preproc
15153 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15154 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15157 if test $ac_cv_header_termcap_h = yes; then
15158 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15159 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15160 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-ltermcap $LIBS"
15165 cat >conftest.$ac_ext <<_ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15172 /* Override any GCC internal prototype to avoid an error.
15173 Use char because int might match the return type of a GCC
15174 builtin and then its argument prototype would still apply. */
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (ac_try="$ac_link"
15189 case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_link") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15202 { (case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_try") 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest$ac_exeext'
15212 { (case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_try") 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_lib_termcap_tgetent=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_cv_lib_termcap_tgetent=no
15229 rm -f core conftest.err conftest.$ac_objext \
15230 conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15233 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15234 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15235 if test $ac_cv_lib_termcap_tgetent = yes; then
15236 CONS_LIBS="-ltermcap"
15240 support_readline=no
15242 cat >>confdefs.h <<\_ACEOF
15243 #define HAVE_CONIO 1
15248 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15249 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15250 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-lncurses $LIBS"
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply. */
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_link") 2>conftest.er1
15286 grep -v '^ *+' conftest.er1 >conftest.err
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292 { (case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_try") 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest$ac_exeext'
15302 { (case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_try") 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_lib_ncurses_tgetent=yes
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_cv_lib_ncurses_tgetent=no
15319 rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15321 LIBS=$ac_check_lib_save_LIBS
15323 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15324 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15325 if test $ac_cv_lib_ncurses_tgetent = yes; then
15326 CONS_LIBS="-lncurses"
15330 support_readline=no
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_CONIO 1
15346 for ac_header in curses.h
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 ac_res=`eval echo '${'$as_ac_Header'}'`
15356 { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15359 # Is the header compilable?
15360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 $ac_includes_default
15369 #include <$ac_header>
15371 rm -f conftest.$ac_objext
15372 if { (ac_try="$ac_compile"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_compile") 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15386 { (case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_try") 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_try") 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_header_compiler=yes
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_header_compiler=no
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415 echo "${ECHO_T}$ac_header_compiler" >&6; }
15417 # Is the header present?
15418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <$ac_header>
15428 if { (ac_try="$ac_cpp conftest.$ac_ext"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } >/dev/null; then
15441 if test -s conftest.err; then
15442 ac_cpp_err=$ac_c_preproc_warn_flag
15443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15450 if test -z "$ac_cpp_err"; then
15451 ac_header_preproc=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_header_preproc=no
15459 rm -f conftest.err conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15461 echo "${ECHO_T}$ac_header_preproc" >&6; }
15463 # So? What about this header?
15464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15470 ac_header_preproc=yes
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 eval "$as_ac_Header=\$ac_header_preproc"
15495 ac_res=`eval echo '${'$as_ac_Header'}'`
15496 { echo "$as_me:$LINENO: result: $ac_res" >&5
15497 echo "${ECHO_T}$ac_res" >&6; }
15500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15501 cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 { echo "$as_me:$LINENO: checking for term.h" >&5
15510 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15511 if test "${ac_cv_header_term_h+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15521 #include <curses.h>
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_compile") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_header_term_h=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_header_term_h=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15572 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15573 if test $ac_cv_header_term_h = yes; then
15574 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15575 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15576 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 ac_check_lib_save_LIBS=$LIBS
15580 LIBS="-lcurses $LIBS"
15581 cat >conftest.$ac_ext <<_ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_link") 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
15617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15618 { (case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_try") 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_lib_curses_tgetent=yes
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_curses_tgetent=no
15645 rm -f core conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15650 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15651 if test $ac_cv_lib_curses_tgetent = yes; then
15652 CONS_LIBS="-lcurses"
15656 support_readline=no
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_CONIO 1
15667 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15678 # ---------------------------------------------------
15679 # Check for readline support/directory (default off)
15680 # ---------------------------------------------------
15681 # this allows you to turn it completely off
15682 # Check whether --enable-readline was given.
15683 if test "${enable_readline+set}" = set; then
15684 enableval=$enable_readline; if test x$enableval = xno; then
15685 support_readline=no
15692 if test x$support_readline = xyes; then
15694 # Check whether --with-readline was given.
15695 if test "${with_readline+set}" = set; then
15696 withval=$with_readline;
15697 case "$with_readline" in
15700 if test -f ${with_readline}/readline.h; then
15701 CONS_INC="-I${with_readline}"
15702 CONS_LDFLAGS="-L$with_readline"
15703 elif test -f ${with_readline}/include/readline/readline.h; then
15704 CONS_INC="-I${with_readline}/include/readline"
15705 CONS_LDFLAGS="-L${with_readline}/lib"
15706 with_readline="${with_readline}/include/readline"
15708 with_readline="/usr/include/readline"
15710 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15713 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_res=`eval echo '${'$as_ac_Header'}'`
15718 { echo "$as_me:$LINENO: result: $ac_res" >&5
15719 echo "${ECHO_T}$ac_res" >&6; }
15721 # Is the header compilable?
15722 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15723 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 $ac_includes_default
15731 #include <${with_readline}/readline.h>
15733 rm -f conftest.$ac_objext
15734 if { (ac_try="$ac_compile"
15735 case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15742 grep -v '^ *+' conftest.er1 >conftest.err
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_try") 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_header_compiler=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_compiler=no
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777 echo "${ECHO_T}$ac_header_compiler" >&6; }
15779 # Is the header present?
15780 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15781 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 #include <${with_readline}/readline.h>
15790 if { (ac_try="$ac_cpp conftest.$ac_ext"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15798 grep -v '^ *+' conftest.er1 >conftest.err
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev/null; then
15803 if test -s conftest.err; then
15804 ac_cpp_err=$ac_c_preproc_warn_flag
15805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812 if test -z "$ac_cpp_err"; then
15813 ac_header_preproc=yes
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_header_preproc=no
15821 rm -f conftest.err conftest.$ac_ext
15822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823 echo "${ECHO_T}$ac_header_preproc" >&6; }
15825 # So? What about this header?
15826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15828 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15829 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15831 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15832 ac_header_preproc=yes
15835 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15836 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15838 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15840 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15842 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15846 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15850 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15851 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 eval "$as_ac_Header=\$ac_header_preproc"
15857 ac_res=`eval echo '${'$as_ac_Header'}'`
15858 { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE_READLINE 1
15867 CONS_LIBS="-lreadline -lhistory -ltermcap"
15872 echo "readline.h not found. readline turned off ..."
15884 # check for standard readline library
15885 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15886 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15887 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15888 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15892 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15894 # Is the header compilable?
15895 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15896 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 $ac_includes_default
15904 #include </usr/include/readline/readline.h>
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950 echo "${ECHO_T}$ac_header_compiler" >&6; }
15952 # Is the header present?
15953 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15954 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #include </usr/include/readline/readline.h>
15963 if { (ac_try="$ac_cpp conftest.$ac_ext"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15985 if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_preproc=no
15994 rm -f conftest.err conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6; }
15998 # So? What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16008 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16023 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16024 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16025 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16030 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16031 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16034 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_READLINE 1
16040 CONS_INC="-I/usr/include/readline"
16041 CONS_LIBS="-lreadline -ltermcap"
16045 # Did not find standard library, so try Bacula's default
16046 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16049 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_res=`eval echo '${'$as_ac_Header'}'`
16054 { echo "$as_me:$LINENO: result: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16057 # Is the header compilable?
16058 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16059 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 $ac_includes_default
16067 #include <${TOP_DIR}/depkgs/readline/readline.h>
16069 rm -f conftest.$ac_objext
16070 if { (ac_try="$ac_compile"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_compile") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1 >conftest.err
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16084 { (case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_try") 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_header_compiler=yes
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_header_compiler=no
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16113 echo "${ECHO_T}$ac_header_compiler" >&6; }
16115 # Is the header present?
16116 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16117 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #include <${TOP_DIR}/depkgs/readline/readline.h>
16126 if { (ac_try="$ac_cpp conftest.$ac_ext"
16127 case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16134 grep -v '^ *+' conftest.er1 >conftest.err
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev/null; then
16139 if test -s conftest.err; then
16140 ac_cpp_err=$ac_c_preproc_warn_flag
16141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16148 if test -z "$ac_cpp_err"; then
16149 ac_header_preproc=yes
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_header_preproc=no
16157 rm -f conftest.err conftest.$ac_ext
16158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16159 echo "${ECHO_T}$ac_header_preproc" >&6; }
16161 # So? What about this header?
16162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16164 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16165 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16167 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16168 ac_header_preproc=yes
16171 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16172 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16174 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16175 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16176 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16178 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16180 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16182 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16186 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16187 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 eval "$as_ac_Header=\$ac_header_preproc"
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_READLINE 1
16204 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16205 CONS_LIBS="-lreadline -lhistory -ltermcap"
16206 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16207 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16211 echo "readline.h not found. readline turned off ..."
16238 # Minimal stuff for readline Makefile configuration
16241 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16242 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16243 if test "${ac_cv_header_stat_broken+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <sys/types.h>
16253 #include <sys/stat.h>
16255 #if defined S_ISBLK && defined S_IFDIR
16256 # if S_ISBLK (S_IFDIR)
16261 #if defined S_ISBLK && defined S_IFCHR
16262 # if S_ISBLK (S_IFCHR)
16267 #if defined S_ISLNK && defined S_IFREG
16268 # if S_ISLNK (S_IFREG)
16273 #if defined S_ISSOCK && defined S_IFREG
16274 # if S_ISSOCK (S_IFREG)
16280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16281 $EGREP "You lose" >/dev/null 2>&1; then
16282 ac_cv_header_stat_broken=yes
16284 ac_cv_header_stat_broken=no
16289 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16290 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16291 if test $ac_cv_header_stat_broken = yes; then
16293 cat >>confdefs.h <<\_ACEOF
16294 #define STAT_MACROS_BROKEN 1
16304 ac_header_dirent=no
16305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16306 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16307 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16308 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 cat >conftest.$ac_ext <<_ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16318 #include <sys/types.h>
16330 rm -f conftest.$ac_objext
16331 if { (ac_try="$ac_compile"
16332 case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_compile") 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 eval "$as_ac_Header=yes"
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 eval "$as_ac_Header=no"
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 ac_res=`eval echo '${'$as_ac_Header'}'`
16375 { echo "$as_me:$LINENO: result: $ac_res" >&5
16376 echo "${ECHO_T}$ac_res" >&6; }
16377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16378 cat >>confdefs.h <<_ACEOF
16379 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16382 ac_header_dirent=$ac_hdr; break
16386 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16387 if test $ac_header_dirent = dirent.h; then
16388 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16390 if test "${ac_cv_search_opendir+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 ac_func_search_save_LIBS=$LIBS
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16416 for ac_lib in '' dir; do
16417 if test -z "$ac_lib"; then
16418 ac_res="none required"
16421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_cv_search_opendir=$ac_res
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16465 rm -f core conftest.err conftest.$ac_objext \
16467 if test "${ac_cv_search_opendir+set}" = set; then
16471 if test "${ac_cv_search_opendir+set}" = set; then
16474 ac_cv_search_opendir=no
16476 rm conftest.$ac_ext
16477 LIBS=$ac_func_search_save_LIBS
16479 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16480 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16481 ac_res=$ac_cv_search_opendir
16482 if test "$ac_res" != no; then
16483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16488 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16489 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16490 if test "${ac_cv_search_opendir+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_func_search_save_LIBS=$LIBS
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 /* Override any GCC internal prototype to avoid an error.
16502 Use char because int might match the return type of a GCC
16503 builtin and then its argument prototype would still apply. */
16516 for ac_lib in '' x; do
16517 if test -z "$ac_lib"; then
16518 ac_res="none required"
16521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16523 rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16538 { (case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_try") 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; } &&
16547 { ac_try='test -s conftest$ac_exeext'
16548 { (case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_try") 2>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_cv_search_opendir=$ac_res
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16565 rm -f core conftest.err conftest.$ac_objext \
16567 if test "${ac_cv_search_opendir+set}" = set; then
16571 if test "${ac_cv_search_opendir+set}" = set; then
16574 ac_cv_search_opendir=no
16576 rm conftest.$ac_ext
16577 LIBS=$ac_func_search_save_LIBS
16579 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16580 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16581 ac_res=$ac_cv_search_opendir
16582 if test "$ac_res" != no; then
16583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16596 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16612 #define $ac_func innocuous_$ac_func
16614 /* System header to define __stub macros and hopefully few prototypes,
16615 which can conflict with char $ac_func (); below.
16616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16617 <limits.h> exists even on freestanding compilers. */
16620 # include <limits.h>
16622 # include <assert.h>
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16634 /* The GNU C library defines this for functions which it implements
16635 to always fail with ENOSYS. Some functions are actually named
16636 something starting with __ and the normal name is an alias. */
16637 #if defined __stub_$ac_func || defined __stub___$ac_func
16644 return $ac_func ();
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_link") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest$ac_exeext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 eval "$as_ac_var=yes"
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 eval "$as_ac_var=no"
16691 rm -f core conftest.err conftest.$ac_objext \
16692 conftest$ac_exeext conftest.$ac_ext
16694 ac_res=`eval echo '${'$as_ac_var'}'`
16695 { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16697 if test `eval echo '${'$as_ac_var'}'` = yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16707 for ac_func in nanosleep nl_langinfo
16709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 cat >conftest.$ac_ext <<_ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16723 #define $ac_func innocuous_$ac_func
16725 /* System header to define __stub macros and hopefully few prototypes,
16726 which can conflict with char $ac_func (); below.
16727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16728 <limits.h> exists even on freestanding compilers. */
16731 # include <limits.h>
16733 # include <assert.h>
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16745 /* The GNU C library defines this for functions which it implements
16746 to always fail with ENOSYS. Some functions are actually named
16747 something starting with __ and the normal name is an alias. */
16748 #if defined __stub_$ac_func || defined __stub___$ac_func
16755 return $ac_func ();
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_link") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest$ac_exeext'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 eval "$as_ac_var=yes"
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 eval "$as_ac_var=no"
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16805 ac_res=`eval echo '${'$as_ac_var'}'`
16806 { echo "$as_me:$LINENO: result: $ac_res" >&5
16807 echo "${ECHO_T}$ac_res" >&6; }
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809 cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 for ac_header in varargs.h
16819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_res=`eval echo '${'$as_ac_Header'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16830 # Is the header compilable?
16831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 $ac_includes_default
16840 #include <$ac_header>
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_compile") 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_header_compiler=yes
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_header_compiler=no
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6; }
16888 # Is the header present?
16889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 #include <$ac_header>
16899 if { (ac_try="$ac_cpp conftest.$ac_ext"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } >/dev/null; then
16912 if test -s conftest.err; then
16913 ac_cpp_err=$ac_c_preproc_warn_flag
16914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16921 if test -z "$ac_cpp_err"; then
16922 ac_header_preproc=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_preproc=no
16930 rm -f conftest.err conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932 echo "${ECHO_T}$ac_header_preproc" >&6; }
16934 # So? What about this header?
16935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941 ac_header_preproc=yes
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 eval "$as_ac_Header=\$ac_header_preproc"
16966 ac_res=`eval echo '${'$as_ac_Header'}'`
16967 { echo "$as_me:$LINENO: result: $ac_res" >&5
16968 echo "${ECHO_T}$ac_res" >&6; }
16971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 # End of readline/conio stuff
16982 # -----------------------------------------------------------------------
16984 # -----------------------------------------------------------------------
16985 # Check for Python support
16987 { echo "$as_me:$LINENO: checking for Python support" >&5
16988 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
16990 # Check whether --with-python was given.
16991 if test "${with_python+set}" = set; then
16992 withval=$with_python;
16995 if test "$withval" != "no"; then
16996 if test "$withval" = "yes"; then
16997 for python_root in /usr /usr/local /usr/sfw; do
16998 for ver in python2.2 python2.3 python2.4 python2.5; do
16999 if test -f $python_root/include/${ver}/Python.h; then
17000 PYTHON_INCDIR=-I$python_root/include/${ver}
17001 if test -d $python_root/lib64/${ver}/config; then
17002 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17004 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17010 if test x$PYTHON_INCDIR = x; then
17011 if test -f $prefix/include/Python.h; then
17012 PYTHON_INCDIR=-I$prefix/include
17013 if test -d $prefix/lib64/config; then
17014 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17016 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17019 { echo "$as_me:$LINENO: result: no" >&5
17020 echo "${ECHO_T}no" >&6; }
17021 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17022 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17023 { (exit 1); exit 1; }; }
17027 if test -f $withval/Python.h; then
17028 PYTHON_INCDIR=-I$withval
17029 PYTHON_LIBS="-L$withval/config -lpython"
17030 elif test -f $withval/include/Python.h; then
17031 PYTHON_INCDIR=-I$withval/include
17032 if test -d $withval/lib64/config; then
17033 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17035 PYTHON_LIBS="-L$withval/lib/config -lpython"
17037 elif test -f $withval/include/python/Python.h; then
17038 PYTHON_INCDIR=-I$withval/include/python
17039 if test -d $withval/lib64/python/config; then
17040 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17042 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17045 { echo "$as_me:$LINENO: result: no" >&5
17046 echo "${ECHO_T}no" >&6; }
17047 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17048 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17049 { (exit 1); exit 1; }; }
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_PYTHON 1
17056 { echo "$as_me:$LINENO: result: yes" >&5
17057 echo "${ECHO_T}yes" >&6; }
17059 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17060 echo "$as_me: checking for more Python libs" >&6;}
17061 saved_LIBS="$LIBS"; LIBS=
17062 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17063 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17064 if test "${ac_cv_search_shm_open+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_func_search_save_LIBS=$LIBS
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17085 return shm_open ();
17090 for ac_lib in '' rt; do
17091 if test -z "$ac_lib"; then
17092 ac_res="none required"
17095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest$ac_exeext'
17122 { (case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_search_shm_open=$ac_res
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17139 rm -f core conftest.err conftest.$ac_objext \
17141 if test "${ac_cv_search_shm_open+set}" = set; then
17145 if test "${ac_cv_search_shm_open+set}" = set; then
17148 ac_cv_search_shm_open=no
17150 rm conftest.$ac_ext
17151 LIBS=$ac_func_search_save_LIBS
17153 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17154 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17155 ac_res=$ac_cv_search_shm_open
17156 if test "$ac_res" != no; then
17157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17162 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17163 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17164 if test "${ac_cv_lib_util_openpty+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 ac_check_lib_save_LIBS=$LIBS
17168 LIBS="-lutil $LIBS"
17169 cat >conftest.$ac_ext <<_ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 /* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_lib_util_openpty=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_cv_lib_util_openpty=no
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235 LIBS=$ac_check_lib_save_LIBS
17237 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17238 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17239 if test $ac_cv_lib_util_openpty = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define HAVE_LIBUTIL 1
17244 LIBS="-lutil $LIBS"
17248 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17251 { echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6; }
17257 { echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6; }
17266 # Find where sockets are (especially for Solaris)
17267 # Do this before the TCP Wrappers test since tcp wrappers
17268 # uses the socket library and some linkers are stupid.
17270 { echo "$as_me:$LINENO: checking for socket" >&5
17271 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17272 if test "${ac_cv_func_socket+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define socket innocuous_socket
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char socket (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17291 # include <limits.h>
17293 # include <assert.h>
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_socket || defined __stub___socket
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_func_socket=yes
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_cv_func_socket=no
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17365 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17366 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17367 if test $ac_cv_func_socket = yes; then
17368 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17369 echo "${ECHO_T}using libc's socket" >&6; }
17372 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17373 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17374 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 ac_check_lib_save_LIBS=$LIBS
17378 LIBS="-lxnet $LIBS"
17379 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
17415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest$ac_exeext'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_xnet_socket=yes
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 ac_cv_lib_xnet_socket=no
17443 rm -f core conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17445 LIBS=$ac_check_lib_save_LIBS
17447 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17448 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17449 if test $ac_cv_lib_xnet_socket = yes; then
17450 cat >>confdefs.h <<_ACEOF
17451 #define HAVE_LIBXNET 1
17454 LIBS="-lxnet $LIBS"
17459 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17460 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17461 if test "${ac_cv_lib_socket_socket+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 ac_check_lib_save_LIBS=$LIBS
17465 LIBS="-lsocket $LIBS"
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any GCC internal prototype to avoid an error.
17474 Use char because int might match the return type of a GCC
17475 builtin and then its argument prototype would still apply. */
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_try") 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_lib_socket_socket=yes
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_lib_socket_socket=no
17530 rm -f core conftest.err conftest.$ac_objext \
17531 conftest$ac_exeext conftest.$ac_ext
17532 LIBS=$ac_check_lib_save_LIBS
17534 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17535 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17536 if test $ac_cv_lib_socket_socket = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define HAVE_LIBSOCKET 1
17541 LIBS="-lsocket $LIBS"
17546 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17547 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17548 if test "${ac_cv_lib_inet_socket+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 ac_check_lib_save_LIBS=$LIBS
17552 LIBS="-linet $LIBS"
17553 cat >conftest.$ac_ext <<_ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17560 /* Override any GCC internal prototype to avoid an error.
17561 Use char because int might match the return type of a GCC
17562 builtin and then its argument prototype would still apply. */
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 ac_cv_lib_inet_socket=yes
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17614 ac_cv_lib_inet_socket=no
17617 rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619 LIBS=$ac_check_lib_save_LIBS
17621 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17622 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17623 if test $ac_cv_lib_inet_socket = yes; then
17624 cat >>confdefs.h <<_ACEOF
17625 #define HAVE_LIBINET 1
17628 LIBS="-linet $LIBS"
17636 # -----------------------------------------------------------
17637 # Check whether user wants TCP wrappers support (default off)
17638 # -----------------------------------------------------------
17642 # Check whether --with-tcp-wrappers was given.
17643 if test "${with_tcp_wrappers+set}" = set; then
17644 withval=$with_tcp_wrappers;
17645 if test "x$withval" != "xno" ; then
17647 LIBS="$saved_LIBS -lwrap"
17648 { echo "$as_me:$LINENO: checking for libwrap" >&5
17649 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17650 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17651 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17652 if test "${ac_cv_search_nanosleep+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 ac_func_search_save_LIBS=$LIBS
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17663 /* Override any GCC internal prototype to avoid an error.
17664 Use char because int might match the return type of a GCC
17665 builtin and then its argument prototype would still apply. */
17673 return nanosleep ();
17678 for ac_lib in '' rt; do
17679 if test -z "$ac_lib"; then
17680 ac_res="none required"
17683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (ac_try="$ac_link"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_link") 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_search_nanosleep=$ac_res
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17727 rm -f core conftest.err conftest.$ac_objext \
17729 if test "${ac_cv_search_nanosleep+set}" = set; then
17733 if test "${ac_cv_search_nanosleep+set}" = set; then
17736 ac_cv_search_nanosleep=no
17738 rm conftest.$ac_ext
17739 LIBS=$ac_func_search_save_LIBS
17741 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17742 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17743 ac_res=$ac_cv_search_nanosleep
17744 if test "$ac_res" != no; then
17745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 #include <sys/types.h>
17757 int deny_severity = 0;
17758 int allow_severity = 0;
17759 struct request_info *req;
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_link") 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17783 { (case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_try") 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest$ac_exeext'
17793 { (case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_try") 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17803 { echo "$as_me:$LINENO: result: yes" >&5
17804 echo "${ECHO_T}yes" >&6; }
17805 cat >>confdefs.h <<\_ACEOF
17806 #define HAVE_LIBWRAP 1
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17818 LIBS="$saved_LIBS -lwrap -lnsl"
17819 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 #include <sys/types.h>
17828 int deny_severity = 0;
17829 int allow_severity = 0;
17830 struct request_info *req;
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (ac_try="$ac_link"
17841 case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_link") 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest$ac_exeext'
17864 { (case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_try") 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17874 { echo "$as_me:$LINENO: result: yes" >&5
17875 echo "${ECHO_T}yes" >&6; }
17876 cat >>confdefs.h <<\_ACEOF
17877 #define HAVE_LIBWRAP 1
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17889 echo "$as_me: error: *** libwrap missing" >&2;}
17890 { (exit 1); exit 1; }; }
17894 rm -f core conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17899 rm -f core conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17907 # -----------------------------------------------------------
17908 # Check whether OpenSSL is available
17909 # -----------------------------------------------------------
17910 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17911 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17913 # Check whether --with-openssl was given.
17914 if test "${with_openssl+set}" = set; then
17915 withval=$with_openssl; with_openssl_directory=${withval}
17919 if test "x$with_openssl_directory" != "x"; then
17920 OPENSSL_LIBS="-lssl -lcrypto"
17923 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17924 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17925 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17928 saved_LIBS="${LIBS}"
17929 saved_CFLAGS="${CFLAGS}"
17930 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17931 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17933 cat >conftest.$ac_ext <<_ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 #include <openssl/ssl.h>
17943 CRYPTO_set_id_callback(NULL);
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17963 { (case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_try") 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; } &&
17972 { ac_try='test -s conftest$ac_exeext'
17973 { (case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_try") 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17984 support_crypto="yes"
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 #include <openssl/evp.h>
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (ac_try="$ac_link"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_link") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest$ac_exeext'
18037 { (case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_try") 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_openssl_sha2="yes"
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_cv_openssl_sha2="no"
18055 rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18058 LIBS="${saved_LIBS}"
18059 CFLAGS="${saved_CFLAGS}"
18061 if test "$support_tls" = "yes"; then
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_OPENSSL 1
18068 cat >>confdefs.h <<\_ACEOF
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_CRYPTO 1
18079 if test "$ac_cv_openssl_sha2" = "yes"; then
18081 cat >>confdefs.h <<\_ACEOF
18082 #define HAVE_SHA2 1
18088 support_crypto="no"
18093 { echo "$as_me:$LINENO: result: $support_tls" >&5
18094 echo "${ECHO_T}$support_tls" >&6; }
18099 # -----------------------------------------------------------
18100 # Python and OpenSSL are using dlopen
18101 # -----------------------------------------------------------
18103 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18104 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18105 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18106 if test "${ac_cv_search_dlopen+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_func_search_save_LIBS=$LIBS
18110 cat >conftest.$ac_ext <<_ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18117 /* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18132 for ac_lib in '' dl; do
18133 if test -z "$ac_lib"; then
18134 ac_res="none required"
18137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_search_dlopen=$ac_res
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18181 rm -f core conftest.err conftest.$ac_objext \
18183 if test "${ac_cv_search_dlopen+set}" = set; then
18187 if test "${ac_cv_search_dlopen+set}" = set; then
18190 ac_cv_search_dlopen=no
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18196 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18197 ac_res=$ac_cv_search_dlopen
18198 if test "$ac_res" != no; then
18199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18205 # ------------------------------------------
18206 # Where to place working dir
18207 # ------------------------------------------
18208 working_dir=`eval echo ${prefix}/var/bacula/working`
18210 # Check whether --with-working-dir was given.
18211 if test "${with_working_dir+set}" = set; then
18212 withval=$with_working_dir;
18213 if test "x$withval" != "xno" ; then
18214 working_dir=$withval
18224 # ------------------------------------------
18225 # Where to place scriptdir (script files)
18226 # ------------------------------------------
18227 scriptdir=`eval echo ${sysconfdir}`
18229 # Check whether --with-scriptdir was given.
18230 if test "${with_scriptdir+set}" = set; then
18231 withval=$with_scriptdir;
18232 if test "x$withval" != "xno" ; then
18243 # ------------------------------------------
18244 # Where to send dump email
18245 # ------------------------------------------
18246 dump_email=root@localhost
18248 # Check whether --with-dump-email was given.
18249 if test "${with_dump_email+set}" = set; then
18250 withval=$with_dump_email;
18251 if test "x$withval" != "xno" ; then
18252 dump_email=$withval
18261 # ------------------------------------------
18262 # Where to send job email
18263 # ------------------------------------------
18264 job_email=root@localhost
18266 # Check whether --with-job-email was given.
18267 if test "${with_job_email+set}" = set; then
18268 withval=$with_job_email;
18269 if test "x$withval" != "xno" ; then
18279 # ------------------------------------------
18280 # Where to find smtp host
18281 # ------------------------------------------
18282 smtp_host=localhost
18284 # Check whether --with-smtp_host was given.
18285 if test "${with_smtp_host+set}" = set; then
18286 withval=$with_smtp_host;
18287 if test "x$withval" != "xno" ; then
18298 # ------------------------------------
18299 # Where to place pid files
18300 # ------------------------------------
18303 # Check whether --with-pid-dir was given.
18304 if test "${with_pid_dir+set}" = set; then
18305 withval=$with_pid_dir;
18306 if test "x$withval" != "xno" ; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define _PATH_BACULA_PIDDIR "$piddir"
18321 # ------------------------------------
18322 # Where to place subsys "lock file"
18323 # ------------------------------------
18324 subsysdir=/var/run/subsys
18326 # Check whether --with-subsys-dir was given.
18327 if test "${with_subsys_dir+set}" = set; then
18328 withval=$with_subsys_dir;
18329 if test "x$withval" != "xno" ; then
18341 # ------------------------------------
18342 # Where to start assigning ports
18343 # ------------------------------------
18346 # Check whether --with-baseport was given.
18347 if test "${with_baseport+set}" = set; then
18348 withval=$with_baseport;
18349 if test "x$withval" != "xno" ; then
18358 dir_port=`expr $baseport`
18359 fd_port=`expr $baseport + 1`
18360 sd_port=`expr $fd_port + 1`
18367 # ------------------------------------------
18368 # Generate passwords
18369 # ------------------------------------------
18372 # Check whether --with-dir-password was given.
18373 if test "${with_dir_password+set}" = set; then
18374 withval=$with_dir_password;
18375 if test "x$withval" != "xno" ; then
18376 dir_password=$withval
18383 if test "x$dir_password" = "x" ; then
18384 if test "x$OPENSSL" = "xnone" ; then
18385 key=`autoconf/randpass 33`
18387 key=`openssl rand -base64 33`
18394 # Check whether --with-fd-password was given.
18395 if test "${with_fd_password+set}" = set; then
18396 withval=$with_fd_password;
18397 if test "x$withval" != "xno" ; then
18398 fd_password=$withval
18405 if test "x$fd_password" = "x" ; then
18406 if test "x$OPENSSL" = "xnone" ; then
18407 key=`autoconf/randpass 37`
18409 key=`openssl rand -base64 33`
18416 # Check whether --with-sd-password was given.
18417 if test "${with_sd_password+set}" = set; then
18418 withval=$with_sd_password;
18419 if test "x$withval" != "xno" ; then
18420 sd_password=$withval
18427 if test "x$sd_password" = "x" ; then
18428 if test "x$OPENSSL" = "xnone" ; then
18429 key=`autoconf/randpass 41`
18431 key=`openssl rand -base64 33`
18438 # Check whether --with-mon-dir-password was given.
18439 if test "${with_mon_dir_password+set}" = set; then
18440 withval=$with_mon_dir_password;
18441 if test "x$withval" != "xno" ; then
18442 mon_dir_password=$withval
18449 if test "x$mon_dir_password" = "x" ; then
18450 if test "x$OPENSSL" = "xnone" ; then
18451 key=`autoconf/randpass 33`
18453 key=`openssl rand -base64 33`
18455 mon_dir_password=$key
18460 # Check whether --with-mon-fd-password was given.
18461 if test "${with_mon_fd_password+set}" = set; then
18462 withval=$with_mon_fd_password;
18463 if test "x$withval" != "xno" ; then
18464 mon_fd_password=$withval
18471 if test "x$mon_fd_password" = "x" ; then
18472 if test "x$OPENSSL" = "xnone" ; then
18473 key=`autoconf/randpass 37`
18475 key=`openssl rand -base64 33`
18477 mon_fd_password=$key
18482 # Check whether --with-mon-sd-password was given.
18483 if test "${with_mon_sd_password+set}" = set; then
18484 withval=$with_mon_sd_password;
18485 if test "x$withval" != "xno" ; then
18486 mon_sd_password=$withval
18493 if test "x$mon_sd_password" = "x" ; then
18494 if test "x$OPENSSL" = "xnone" ; then
18495 key=`autoconf/randpass 41`
18497 key=`openssl rand -base64 33`
18499 mon_sd_password=$key
18511 # Handle users and groups for each daemon
18515 # Check whether --with-dir_user was given.
18516 if test "${with_dir_user+set}" = set; then
18517 withval=$with_dir_user;
18518 if test "x$withval" != "x" ; then
18528 # Check whether --with-dir_group was given.
18529 if test "${with_dir_group+set}" = set; then
18530 withval=$with_dir_group;
18531 if test "x$withval" != "x" ; then
18541 # Check whether --with-sd_user was given.
18542 if test "${with_sd_user+set}" = set; then
18543 withval=$with_sd_user;
18544 if test "x$withval" != "x" ; then
18554 # Check whether --with-sd_group was given.
18555 if test "${with_sd_group+set}" = set; then
18556 withval=$with_sd_group;
18557 if test "x$withval" != "x" ; then
18567 # Check whether --with-fd_user was given.
18568 if test "${with_fd_user+set}" = set; then
18569 withval=$with_fd_user;
18570 if test "x$withval" != "x" ; then
18580 # Check whether --with-fd_group was given.
18581 if test "${with_fd_group+set}" = set; then
18582 withval=$with_fd_group;
18583 if test "x$withval" != "x" ; then
18602 # allow setting default executable permissions
18606 # Check whether --with-sbin-perm was given.
18607 if test "${with_sbin_perm+set}" = set; then
18608 withval=$with_sbin_perm;
18609 if test "x$withval" != "x" ; then
18619 # ------------------------------------------------
18620 # Bacula check for various SQL database engines
18621 # ------------------------------------------------
18624 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18625 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18627 # Check whether --with-postgresql was given.
18628 if test "${with_postgresql+set}" = set; then
18629 withval=$with_postgresql;
18630 if test "$withval" != "no"; then
18631 if test "$db_found" = "yes"; then
18632 { echo "$as_me:$LINENO: result: error" >&5
18633 echo "${ECHO_T}error" >&6; }
18634 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18635 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18636 { (exit 1); exit 1; }; };
18638 if test "$withval" = "yes"; then
18639 PG_CONFIG=`which pg_config`
18640 if test -n "$PG_CONFIG";then
18641 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18642 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18643 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18644 elif test -f /usr/local/include/libpq-fe.h; then
18645 POSTGRESQL_INCDIR=/usr/local/include
18646 if test -d /usr/local/lib64; then
18647 POSTGRESQL_LIBDIR=/usr/local/lib64
18649 POSTGRESQL_LIBDIR=/usr/local/lib
18651 POSTGRESQL_BINDIR=/usr/local/bin
18652 elif test -f /usr/include/libpq-fe.h; then
18653 POSTGRESQL_INCDIR=/usr/include
18654 if test -d /usr/lib64; then
18655 POSTGRESQL_LIBDIR=/usr/lib64
18657 POSTGRESQL_LIBDIR=/usr/lib
18659 POSTGRESQL_BINDIR=/usr/bin
18660 elif test -f /usr/include/pgsql/libpq-fe.h; then
18661 POSTGRESQL_INCDIR=/usr/include/pgsql
18662 if test -d /usr/lib64/pgsql; then
18663 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18665 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18667 POSTGRESQL_BINDIR=/usr/bin
18668 elif test -f /usr/include/postgresql/libpq-fe.h; then
18669 POSTGRESQL_INCDIR=/usr/include/postgresql
18670 if test -d /usr/lib64/postgresql; then
18671 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18673 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18675 POSTGRESQL_BINDIR=/usr/bin
18677 { echo "$as_me:$LINENO: result: no" >&5
18678 echo "${ECHO_T}no" >&6; }
18679 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18680 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18681 { (exit 1); exit 1; }; }
18683 elif test -f $withval/include/libpq-fe.h; then
18684 POSTGRESQL_INCDIR=$withval/include
18685 POSTGRESQL_LIBDIR=$withval/lib
18686 POSTGRESQL_BINDIR=$withval/bin
18687 elif test -f $withval/include/postgresql/libpq-fe.h; then
18688 POSTGRESQL_INCDIR=$withval/include/postgresql
18689 if test -d $withval/lib64; then
18690 POSTGRESQL_LIBDIR=$withval/lib64
18692 POSTGRESQL_LIBDIR=$withval/lib
18694 POSTGRESQL_BINDIR=$withval/bin
18696 { echo "$as_me:$LINENO: result: no" >&5
18697 echo "${ECHO_T}no" >&6; }
18698 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18699 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18700 { (exit 1); exit 1; }; }
18702 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18703 { echo "$as_me:$LINENO: checking for crypt" >&5
18704 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18705 if test "${ac_cv_func_crypt+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18714 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18716 #define crypt innocuous_crypt
18718 /* System header to define __stub macros and hopefully few prototypes,
18719 which can conflict with char crypt (); below.
18720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18721 <limits.h> exists even on freestanding compilers. */
18724 # include <limits.h>
18726 # include <assert.h>
18731 /* Override any GCC internal prototype to avoid an error.
18732 Use char because int might match the return type of a GCC
18733 builtin and then its argument prototype would still apply. */
18738 /* The GNU C library defines this for functions which it implements
18739 to always fail with ENOSYS. Some functions are actually named
18740 something starting with __ and the normal name is an alias. */
18741 #if defined __stub_crypt || defined __stub___crypt
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest$ac_exeext'
18778 { (case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_try") 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_func_crypt=yes
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_func_crypt=no
18795 rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18798 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18799 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18800 if test $ac_cv_func_crypt = yes; then
18803 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18804 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-lcrypt $LIBS"
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_link") 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847 { (case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_try") 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest$ac_exeext'
18857 { (case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_try") 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_lib_crypt_crypt=yes
18868 echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18871 ac_cv_lib_crypt_crypt=no
18874 rm -f core conftest.err conftest.$ac_objext \
18875 conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_lib_save_LIBS
18878 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18879 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18880 if test $ac_cv_lib_crypt_crypt = yes; then
18881 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18886 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18887 SQL_LFLAGS=$POSTGRESQL_LFLAGS
18888 SQL_BINDIR=$POSTGRESQL_BINDIR
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_POSTGRESQL 1
18893 { echo "$as_me:$LINENO: result: yes" >&5
18894 echo "${ECHO_T}yes" >&6; }
18896 support_postgresql=yes
18900 { echo "$as_me:$LINENO: result: no" >&5
18901 echo "${ECHO_T}no" >&6; }
18906 { echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6; }
18919 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18920 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18922 # Check whether --with-mysql was given.
18923 if test "${with_mysql+set}" = set; then
18924 withval=$with_mysql;
18925 if test "$withval" != "no"; then
18926 if test "$withval" = "yes"; then
18927 if test -f /usr/local/mysql/include/mysql/mysql.h; then
18928 MYSQL_INCDIR=/usr/local/mysql/include/mysql
18929 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18930 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18932 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18934 MYSQL_BINDIR=/usr/local/mysql/bin
18935 elif test -f /usr/include/mysql/mysql.h; then
18936 MYSQL_INCDIR=/usr/include/mysql
18937 if test -f /usr/lib64/mysql/libmysqlclient.a; then
18938 MYSQL_LIBDIR=/usr/lib64/mysql
18940 MYSQL_LIBDIR=/usr/lib/mysql
18942 MYSQL_BINDIR=/usr/bin
18943 elif test -f /usr/include/mysql.h; then
18944 MYSQL_INCDIR=/usr/include
18945 if test -f /usr/lib64/libmysqlclient.a; then
18946 MYSQL_LIBDIR=/usr/lib64
18948 MYSQL_LIBDIR=/usr/lib
18950 MYSQL_BINDIR=/usr/bin
18951 elif test -f /usr/local/include/mysql/mysql.h; then
18952 MYSQL_INCDIR=/usr/local/include/mysql
18953 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18954 MYSQL_LIBDIR=/usr/local/lib64/mysql
18956 MYSQL_LIBDIR=/usr/local/lib/mysql
18958 MYSQL_BINDIR=/usr/local/bin
18959 elif test -f /usr/local/include/mysql.h; then
18960 MYSQL_INCDIR=/usr/local/include
18961 if test -f /usr/local/lib64/libmysqlclient.a; then
18962 MYSQL_LIBDIR=/usr/local/lib64
18964 MYSQL_LIBDIR=/usr/local/lib
18966 MYSQL_BINDIR=/usr/local/bin
18968 { echo "$as_me:$LINENO: result: no" >&5
18969 echo "${ECHO_T}no" >&6; }
18970 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
18971 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
18972 { (exit 1); exit 1; }; }
18975 if test -f $withval/include/mysql/mysql.h; then
18976 MYSQL_INCDIR=$withval/include/mysql
18977 if test -f $withval/lib64/mysql/libmysqlclient.a; then
18978 MYSQL_LIBDIR=$withval/lib64/mysql
18980 MYSQL_LIBDIR=$withval/lib/mysql
18982 if test -f $withval/lib/libmysqlclient.so; then
18983 MYSQL_LIBDIR=$withval/lib
18986 MYSQL_BINDIR=$withval/bin
18987 elif test -f $withval/include/mysql.h; then
18988 MYSQL_INCDIR=$withval/include
18989 if test -f "$withval/lib64/libmysqlclient.a"; then
18990 MYSQL_LIBDIR=$withval/lib64
18992 MYSQL_LIBDIR=$withval/lib
18994 MYSQL_BINDIR=$withval/bin
18996 { echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6; }
18998 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
18999 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19000 { (exit 1); exit 1; }; }
19003 SQL_INCLUDE=-I$MYSQL_INCDIR
19004 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
19005 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE_THREAD_SAFE_MYSQL 1
19011 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
19013 SQL_BINDIR=$MYSQL_BINDIR
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE_MYSQL 1
19019 { echo "$as_me:$LINENO: result: yes" >&5
19020 echo "${ECHO_T}yes" >&6; }
19027 { echo "$as_me:$LINENO: result: no" >&5
19028 echo "${ECHO_T}no" >&6; }
19036 # Check whether --with-embedded-mysql was given.
19037 if test "${with_embedded_mysql+set}" = set; then
19038 withval=$with_embedded_mysql;
19039 if test "$withval" != "no"; then
19040 if test "$withval" = "yes"; then
19041 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19042 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19043 if test -d /usr/local/mysql/lib64/mysql; then
19044 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19046 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19048 MYSQL_BINDIR=/usr/local/mysql/bin
19049 elif test -f /usr/include/mysql/mysql.h; then
19050 MYSQL_INCDIR=/usr/include/mysql
19051 if test -d /usr/lib64/mysql; then
19052 MYSQL_LIBDIR=/usr/lib64/mysql
19054 MYSQL_LIBDIR=/usr/lib/mysql
19056 MYSQL_BINDIR=/usr/bin
19057 elif test -f /usr/include/mysql.h; then
19058 MYSQL_INCDIR=/usr/include
19059 if test -d /usr/lib64; then
19060 MYSQL_LIBDIR=/usr/lib64
19062 MYSQL_LIBDIR=/usr/lib
19064 MYSQL_BINDIR=/usr/bin
19065 elif test -f /usr/local/include/mysql/mysql.h; then
19066 MYSQL_INCDIR=/usr/local/include/mysql
19067 if test -d /usr/local/lib64/mysql; then
19068 MYSQL_LIBDIR=/usr/local/lib64/mysql
19070 MYSQL_LIBDIR=/usr/local/lib/mysql
19072 MYSQL_BINDIR=/usr/local/bin
19073 elif test -f /usr/local/include/mysql.h; then
19074 MYSQL_INCDIR=/usr/local/include
19075 if test -d /usr/local/lib64; then
19076 MYSQL_LIBDIR=/usr/local/lib64
19078 MYSQL_LIBDIR=/usr/local/lib
19080 MYSQL_BINDIR=/usr/local/bin
19082 { echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6; }
19084 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19085 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19086 { (exit 1); exit 1; }; }
19089 if test -f $withval/include/mysql/mysql.h; then
19090 MYSQL_INCDIR=$withval/include/mysql
19091 if test -d $withval/lib64/mysql; then
19092 MYSQL_LIBDIR=$withval/lib64/mysql
19094 MYSQL_LIBDIR=$withval/lib/mysql
19096 MYSQL_BINDIR=$withval/bin
19097 elif test -f $withval/include/mysql.h; then
19098 MYSQL_INCDIR=$withval/include
19099 if test -d $withval/lib64; then
19100 MYSQL_LIBDIR=$withval/lib64
19102 MYSQL_LIBDIR=$withval/lib
19104 MYSQL_BINDIR=$withval/bin
19106 { echo "$as_me:$LINENO: result: no" >&5
19107 echo "${ECHO_T}no" >&6; }
19108 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19109 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19110 { (exit 1); exit 1; }; }
19113 SQL_INCLUDE=-I$MYSQL_INCDIR
19114 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19115 SQL_BINDIR=$MYSQL_BINDIR
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_MYSQL 1
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_EMBEDDED_MYSQL 1
19125 { echo "$as_me:$LINENO: result: yes" >&5
19126 echo "${ECHO_T}yes" >&6; }
19133 { echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6; }
19150 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19151 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19153 # Check whether --with-sqlite3 was given.
19154 if test "${with_sqlite3+set}" = set; then
19155 withval=$with_sqlite3;
19156 if test "$withval" != "no"; then
19157 if test "$withval" = "yes"; then
19158 if test -f /usr/local/include/sqlite3.h; then
19159 SQLITE_INCDIR=/usr/local/include
19160 if test -d /usr/local/lib64; then
19161 SQLITE_LIBDIR=/usr/local/lib64
19163 SQLITE_LIBDIR=/usr/local/lib
19165 SQLITE_BINDIR=/usr/local/bin
19166 elif test -f /usr/include/sqlite3.h; then
19167 SQLITE_INCDIR=/usr/include
19168 if test -d /usr/lib64; then
19169 SQLITE_LIBDIR=/usr/lib64
19171 SQLITE_LIBDIR=/usr/lib
19173 SQLITE_BINDIR=/usr/bin
19174 elif test -f $prefix/include/sqlite3.h; then
19175 SQLITE_INCDIR=$prefix/include
19176 if test -d $prefix/lib64; then
19177 SQLITE_LIBDIR=$prefix/lib64
19179 SQLITE_LIBDIR=$prefix/lib
19181 SQLITE_BINDIR=$prefix/bin
19183 { echo "$as_me:$LINENO: result: no" >&5
19184 echo "${ECHO_T}no" >&6; }
19185 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19186 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19187 { (exit 1); exit 1; }; }
19190 if test -f $withval/sqlite3.h; then
19191 SQLITE_INCDIR=$withval
19192 SQLITE_LIBDIR=$withval
19193 SQLITE_BINDIR=$withval
19194 elif test -f $withval/include/sqlite3.h; then
19195 SQLITE_INCDIR=$withval/include
19196 if test -d $withval/lib64; then
19197 SQLITE_LIBDIR=$withval/lib64
19199 SQLITE_LIBDIR=$withval/lib
19201 SQLITE_BINDIR=$withval/bin
19203 { echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6; }
19205 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19206 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19207 { (exit 1); exit 1; }; }
19210 SQL_INCLUDE=-I$SQLITE_INCDIR
19211 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19212 SQL_BINDIR=$SQLITE_BINDIR
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_SQLITE3 1
19218 { echo "$as_me:$LINENO: result: yes" >&5
19219 echo "${ECHO_T}yes" >&6; }
19221 support_sqlite3=yes
19226 { echo "$as_me:$LINENO: result: no" >&5
19227 echo "${ECHO_T}no" >&6; }
19232 { echo "$as_me:$LINENO: result: no" >&5
19233 echo "${ECHO_T}no" >&6; }
19245 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19246 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19248 # Check whether --with-sqlite was given.
19249 if test "${with_sqlite+set}" = set; then
19250 withval=$with_sqlite;
19251 if test "$withval" != "no"; then
19252 if test "$withval" = "yes"; then
19253 if test -f /usr/local/include/sqlite.h; then
19254 SQLITE_INCDIR=/usr/local/include
19255 if test -d /usr/local/lib64; then
19256 SQLITE_LIBDIR=/usr/local/lib64
19258 SQLITE_LIBDIR=/usr/local/lib
19260 SQLITE_BINDIR=/usr/local/bin
19261 elif test -f /usr/include/sqlite.h; then
19262 SQLITE_INCDIR=/usr/include
19263 if test -d /usr/lib64; then
19264 SQLITE_LIBDIR=/usr/lib64
19266 SQLITE_LIBDIR=/usr/lib
19268 SQLITE_BINDIR=/usr/bin
19269 elif test -f $prefix/include/sqlite.h; then
19270 SQLITE_INCDIR=$prefix/include
19271 if test -d $prefix/lib64; then
19272 SQLITE_LIBDIR=$prefix/lib64
19274 SQLITE_LIBDIR=$prefix/lib
19276 SQLITE_BINDIR=$prefix/bin
19278 { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19281 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19282 { (exit 1); exit 1; }; }
19285 if test -f $withval/sqlite.h; then
19286 SQLITE_INCDIR=$withval
19287 SQLITE_LIBDIR=$withval
19288 SQLITE_BINDIR=$withval
19289 elif test -f $withval/include/sqlite.h; then
19290 SQLITE_INCDIR=$withval/include
19291 if test -d $withval/lib64; then
19292 SQLITE_LIBDIR=$withval/lib64
19294 SQLITE_LIBDIR=$withval/lib
19296 SQLITE_BINDIR=$withval/bin
19298 { echo "$as_me:$LINENO: result: no" >&5
19299 echo "${ECHO_T}no" >&6; }
19300 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19301 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19302 { (exit 1); exit 1; }; }
19305 SQL_INCLUDE=-I$SQLITE_INCDIR
19306 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19307 SQL_BINDIR=$SQLITE_BINDIR
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_SQLITE 1
19313 { echo "$as_me:$LINENO: result: yes" >&5
19314 echo "${ECHO_T}yes" >&6; }
19321 { echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6; }
19327 { echo "$as_me:$LINENO: result: no" >&5
19328 echo "${ECHO_T}no" >&6; }
19341 cat >>confdefs.h <<\_ACEOF
19342 #define PROTOTYPES 1
19346 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19347 if test -z "$CCOPTS"; then
19348 CCOPTS='-g -O2 -Wall'
19356 largefile_support="no"
19358 # Check whether --enable-largefile was given.
19359 if test "${enable_largefile+set}" = set; then
19360 enableval=$enable_largefile;
19363 if test "$enable_largefile" != no; then
19364 if test -n "$ac_tool_prefix"; then
19365 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19366 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19369 if test "${ac_cv_prog_GETCONF+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 if test -n "$GETCONF"; then
19373 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in $PATH
19379 test -z "$as_dir" && as_dir=.
19380 for ac_exec_ext in '' $ac_executable_extensions; do
19381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19382 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19392 GETCONF=$ac_cv_prog_GETCONF
19393 if test -n "$GETCONF"; then
19394 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19395 echo "${ECHO_T}$GETCONF" >&6; }
19397 { echo "$as_me:$LINENO: result: no" >&5
19398 echo "${ECHO_T}no" >&6; }
19403 if test -z "$ac_cv_prog_GETCONF"; then
19404 ac_ct_GETCONF=$GETCONF
19405 # Extract the first word of "getconf", so it can be a program name with args.
19406 set dummy getconf; ac_word=$2
19407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19409 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 if test -n "$ac_ct_GETCONF"; then
19413 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19416 for as_dir in $PATH
19419 test -z "$as_dir" && as_dir=.
19420 for ac_exec_ext in '' $ac_executable_extensions; do
19421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19422 ac_cv_prog_ac_ct_GETCONF="getconf"
19423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19432 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19433 if test -n "$ac_ct_GETCONF"; then
19434 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19435 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19437 { echo "$as_me:$LINENO: result: no" >&5
19438 echo "${ECHO_T}no" >&6; }
19441 if test "x$ac_ct_GETCONF" = x; then
19444 case $cross_compiling:$ac_tool_warned in
19446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19447 whose name does not start with the host triplet. If you think this
19448 configuration is useful to you, please write to autoconf@gnu.org." >&5
19449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19450 whose name does not start with the host triplet. If you think this
19451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19452 ac_tool_warned=yes ;;
19454 GETCONF=$ac_ct_GETCONF
19457 GETCONF="$ac_cv_prog_GETCONF"
19460 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19461 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19462 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19466 ac_cv_sys_largefile_CFLAGS=no
19468 # IRIX 6.2 and later require cc -n32.
19469 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19470 if test "$GCC" != yes; then
19471 ac_cv_sys_largefile_CFLAGS=-n32
19474 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest$ac_exeext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_sys_largefile_CFLAGS=no
19532 rm -f core conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
19538 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19539 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19540 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19541 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19542 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19546 ac_cv_sys_largefile_LDFLAGS=no
19550 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19551 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19552 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19553 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19554 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19558 ac_cv_sys_largefile_LIBS=no
19562 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19563 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19565 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19568 -D_FILE_OFFSET_BITS=*) ;;
19569 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19570 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19575 case "$CPPFLAGS" in
19576 '') CPPFLAGS="$ac_flag" ;;
19577 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19585 '') CFLAGS="$ac_flag" ;;
19586 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19591 case "$ac_cv_sys_largefile_LDFLAGS" in
19595 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19596 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19599 case "$ac_cv_sys_largefile_LIBS" in
19603 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19604 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19607 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19608 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19609 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_cv_sys_file_offset_bits=no
19613 ac_cv_sys_file_offset_bits=64
19614 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19616 -D_FILE_OFFSET_BITS)
19617 ac_cv_sys_file_offset_bits=1 ;;
19618 -D_FILE_OFFSET_BITS=*)
19619 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19624 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19625 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19626 if test "$ac_cv_sys_file_offset_bits" != no; then
19628 cat >>confdefs.h <<_ACEOF
19629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19633 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19634 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19635 if test "${ac_cv_sys_largefile_source+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 ac_cv_sys_largefile_source=no
19639 ac_cv_sys_largefile_source=1
19640 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19642 -D_LARGEFILE_SOURCE)
19643 ac_cv_sys_largefile_source=1 ;;
19644 -D_LARGEFILE_SOURCE=*)
19645 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19650 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19651 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19652 if test "$ac_cv_sys_largefile_source" != no; then
19654 cat >>confdefs.h <<_ACEOF
19655 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19659 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19660 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19661 if test "${ac_cv_sys_large_files+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_cv_sys_large_files=no
19665 ac_cv_sys_large_files=1
19666 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19669 ac_cv_sys_large_files=1 ;;
19671 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19676 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19677 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19678 if test "$ac_cv_sys_large_files" != no; then
19680 cat >>confdefs.h <<_ACEOF
19681 #define _LARGE_FILES $ac_cv_sys_large_files
19689 { echo "$as_me:$LINENO: checking for X" >&5
19690 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19693 # Check whether --with-x was given.
19694 if test "${with_x+set}" = set; then
19698 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19699 if test "x$with_x" = xno; then
19700 # The user explicitly disabled X.
19703 case $x_includes,$x_libraries in #(
19704 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19705 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19706 { (exit 1); exit 1; }; };; #(
19707 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 # One or both of the vars are not set, and there is no cached value.
19711 ac_x_includes=no ac_x_libraries=no
19712 rm -f -r conftest.dir
19713 if mkdir conftest.dir; then
19715 cat >Imakefile <<'_ACEOF'
19717 @echo incroot='${INCROOT}'
19719 @echo usrlibdir='${USRLIBDIR}'
19721 @echo libdir='${LIBDIR}'
19723 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19725 for ac_var in incroot usrlibdir libdir; do
19726 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19728 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19729 for ac_extension in a so sl; do
19730 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19731 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19732 ac_im_usrlibdir=$ac_im_libdir; break
19735 # Screen out bogus values from the imake configuration. They are
19736 # bogus both because they are the default anyway, and because
19737 # using them would break gcc on systems where it needs fixed includes.
19738 case $ac_im_incroot in
19739 /usr/include) ac_x_includes= ;;
19740 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19742 case $ac_im_usrlibdir in
19743 /usr/lib | /lib) ;;
19744 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19748 rm -f -r conftest.dir
19751 # Standard set of common directories for X headers.
19752 # Check X11 before X11Rn because it is often a symlink to the current release.
19764 /usr/local/X11/include
19765 /usr/local/X11R6/include
19766 /usr/local/X11R5/include
19767 /usr/local/X11R4/include
19769 /usr/local/include/X11
19770 /usr/local/include/X11R6
19771 /usr/local/include/X11R5
19772 /usr/local/include/X11R4
19776 /usr/XFree86/include/X11
19780 /usr/unsupported/include
19781 /usr/athena/include
19782 /usr/local/x11r5/include
19783 /usr/lpp/Xamples/include
19785 /usr/openwin/include
19786 /usr/openwin/share/include'
19788 if test "$ac_x_includes" = no; then
19789 # Guess where to find include files, by looking for Xlib.h.
19790 # First, try using that file with no special directory specified.
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <X11/Xlib.h>
19799 if { (ac_try="$ac_cpp conftest.$ac_ext"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null; then
19812 if test -s conftest.err; then
19813 ac_cpp_err=$ac_c_preproc_warn_flag
19814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19821 if test -z "$ac_cpp_err"; then
19822 # We can compile using X headers with no special include directory.
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 for ac_dir in $ac_x_header_dirs; do
19829 if test -r "$ac_dir/X11/Xlib.h"; then
19830 ac_x_includes=$ac_dir
19836 rm -f conftest.err conftest.$ac_ext
19837 fi # $ac_x_includes = no
19839 if test "$ac_x_libraries" = no; then
19840 # Check for the libraries.
19841 # See if we find them without any special options.
19842 # Don't add to $LIBS permanently.
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include <X11/Xlib.h>
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } &&
19874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19875 { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; } &&
19884 { ac_try='test -s conftest$ac_exeext'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19895 # We can link X programs with no special library path.
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19902 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19904 # Don't even attempt the hair of trying to link an X program!
19905 for ac_extension in a so sl; do
19906 if test -r "$ac_dir/libXt.$ac_extension"; then
19907 ac_x_libraries=$ac_dir
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 fi # $ac_x_libraries = no
19918 case $ac_x_includes,$ac_x_libraries in #(
19919 no,* | *,no | *\'*)
19920 # Didn't find X, or a directory has "'" in its name.
19921 ac_cv_have_x="have_x=no";; #(
19923 # Record where we found X for the cache.
19924 ac_cv_have_x="have_x=yes\
19925 ac_x_includes='$ac_x_includes'\
19926 ac_x_libraries='$ac_x_libraries'"
19932 eval "$ac_cv_have_x"
19935 if test "$have_x" != yes; then
19936 { echo "$as_me:$LINENO: result: $have_x" >&5
19937 echo "${ECHO_T}$have_x" >&6; }
19940 # If each of the values was on the command line, it overrides each guess.
19941 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19942 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19943 # Update the cache value to reflect the command line values.
19944 ac_cv_have_x="have_x=yes\
19945 ac_x_includes='$x_includes'\
19946 ac_x_libraries='$x_libraries'"
19947 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19948 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19951 if test "$no_x" = yes; then
19952 # Not all programs may use this symbol, but it does not hurt to define it.
19954 cat >>confdefs.h <<\_ACEOF
19955 #define X_DISPLAY_MISSING 1
19958 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19960 if test -n "$x_includes"; then
19961 X_CFLAGS="$X_CFLAGS -I$x_includes"
19964 # It would also be nice to do this for all -L options, not just this one.
19965 if test -n "$x_libraries"; then
19966 X_LIBS="$X_LIBS -L$x_libraries"
19967 # For Solaris; some versions of Sun CC require a space after -R and
19968 # others require no space. Words are not sufficient . . . .
19969 case `(uname -sr) 2>/dev/null` in
19971 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19972 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19973 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_link") 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest$ac_exeext'
20014 { (case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_try") 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20031 rm -f core conftest.err conftest.$ac_objext \
20032 conftest$ac_exeext conftest.$ac_ext
20033 if test $ac_R_nospace = yes; then
20034 { echo "$as_me:$LINENO: result: no" >&5
20035 echo "${ECHO_T}no" >&6; }
20036 X_LIBS="$X_LIBS -R$x_libraries"
20038 LIBS="$ac_xsave_LIBS -R $x_libraries"
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest$ac_exeext'
20079 { (case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_try") 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20098 if test $ac_R_space = yes; then
20099 { echo "$as_me:$LINENO: result: yes" >&5
20100 echo "${ECHO_T}yes" >&6; }
20101 X_LIBS="$X_LIBS -R $x_libraries"
20103 { echo "$as_me:$LINENO: result: neither works" >&5
20104 echo "${ECHO_T}neither works" >&6; }
20107 LIBS=$ac_xsave_LIBS
20111 # Check for system-dependent libraries X programs must link with.
20112 # Do this before checking for the system-independent R6 libraries
20113 # (-lICE), since we may need -lsocket or whatever for X linking.
20115 if test "$ISC" = yes; then
20116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20118 # Martyn Johnson says this is needed for Ultrix, if the X
20119 # libraries were built with DECnet support. And Karl Berry says
20120 # the Alpha needs dnet_stub (dnet does not exist).
20121 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply. */
20135 char XOpenDisplay ();
20139 return XOpenDisplay ();
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20159 { (case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest$ac_exeext'
20169 { (case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_try") 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20183 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20184 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-ldnet $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20197 /* Override any GCC internal prototype to avoid an error.
20198 Use char because int might match the return type of a GCC
20199 builtin and then its argument prototype would still apply. */
20207 return dnet_ntoa ();
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_lib_dnet_dnet_ntoa=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_lib_dnet_dnet_ntoa=no
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20259 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20260 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20261 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20264 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20265 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20266 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20267 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-ldnet_stub $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any GCC internal prototype to avoid an error.
20280 Use char because int might match the return type of a GCC
20281 builtin and then its argument prototype would still apply. */
20289 return dnet_ntoa ();
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_link") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest$ac_exeext'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_cv_lib_dnet_stub_dnet_ntoa=no
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20338 LIBS=$ac_check_lib_save_LIBS
20340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20341 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20342 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20343 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20349 rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
20351 LIBS="$ac_xsave_LIBS"
20353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20354 # to get the SysV transport functions.
20355 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20357 # The nsl library prevents programs from opening the X display
20358 # on Irix 5.2, according to T.E. Dickey.
20359 # The functions gethostbyname, getservbyname, and inet_addr are
20360 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20361 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20362 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20363 if test "${ac_cv_func_gethostbyname+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20374 #define gethostbyname innocuous_gethostbyname
20376 /* System header to define __stub macros and hopefully few prototypes,
20377 which can conflict with char gethostbyname (); below.
20378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379 <limits.h> exists even on freestanding compilers. */
20382 # include <limits.h>
20384 # include <assert.h>
20387 #undef gethostbyname
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20395 char gethostbyname ();
20396 /* The GNU C library defines this for functions which it implements
20397 to always fail with ENOSYS. Some functions are actually named
20398 something starting with __ and the normal name is an alias. */
20399 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20406 return gethostbyname ();
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_link") 2>conftest.er1
20420 grep -v '^ *+' conftest.er1 >conftest.err
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
20425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ac_cv_func_gethostbyname=yes
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_cv_func_gethostbyname=no
20453 rm -f core conftest.err conftest.$ac_objext \
20454 conftest$ac_exeext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20457 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20459 if test $ac_cv_func_gethostbyname = no; then
20460 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20461 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20462 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 ac_check_lib_save_LIBS=$LIBS
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20480 char gethostbyname ();
20484 return gethostbyname ();
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest$ac_exeext'
20514 { (case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_try") 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_cv_lib_nsl_gethostbyname=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_cv_lib_nsl_gethostbyname=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20536 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20537 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20541 if test $ac_cv_lib_nsl_gethostbyname = no; then
20542 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20543 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20544 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_check_lib_save_LIBS=$LIBS
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 /* Override any GCC internal prototype to avoid an error.
20557 Use char because int might match the return type of a GCC
20558 builtin and then its argument prototype would still apply. */
20562 char gethostbyname ();
20566 return gethostbyname ();
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (ac_try="$ac_link"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_link") 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest$ac_exeext'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 ac_cv_lib_bsd_gethostbyname=yes
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 ac_cv_lib_bsd_gethostbyname=no
20613 rm -f core conftest.err conftest.$ac_objext \
20614 conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20617 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20618 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20619 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20626 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20627 # socket/setsockopt and other routines are undefined under SCO ODT
20628 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20629 # on later versions), says Simon Leinen: it contains gethostby*
20630 # variants that don't use the name server (or something). -lsocket
20631 # must be given before -lnsl if both are needed. We assume that
20632 # if connect needs -lnsl, so does gethostbyname.
20633 { echo "$as_me:$LINENO: checking for connect" >&5
20634 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20635 if test "${ac_cv_func_connect+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20644 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20646 #define connect innocuous_connect
20648 /* System header to define __stub macros and hopefully few prototypes,
20649 which can conflict with char connect (); below.
20650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20651 <limits.h> exists even on freestanding compilers. */
20654 # include <limits.h>
20656 # include <assert.h>
20661 /* Override any GCC internal prototype to avoid an error.
20662 Use char because int might match the return type of a GCC
20663 builtin and then its argument prototype would still apply. */
20668 /* The GNU C library defines this for functions which it implements
20669 to always fail with ENOSYS. Some functions are actually named
20670 something starting with __ and the normal name is an alias. */
20671 #if defined __stub_connect || defined __stub___connect
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_link") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20698 { (case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_try") 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest$ac_exeext'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_cv_func_connect=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_func_connect=no
20725 rm -f core conftest.err conftest.$ac_objext \
20726 conftest$ac_exeext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20729 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20731 if test $ac_cv_func_connect = no; then
20732 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20733 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20734 if test "${ac_cv_lib_socket_connect+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 ac_check_lib_save_LIBS=$LIBS
20738 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20746 /* Override any GCC internal prototype to avoid an error.
20747 Use char because int might match the return type of a GCC
20748 builtin and then its argument prototype would still apply. */
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_link") 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
20775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest$ac_exeext'
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_try") 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 ac_cv_lib_socket_connect=yes
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ac_cv_lib_socket_connect=no
20803 rm -f core conftest.err conftest.$ac_objext \
20804 conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20807 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20808 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20809 if test $ac_cv_lib_socket_connect = yes; then
20810 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20815 # Guillermo Gomez says -lposix is necessary on A/UX.
20816 { echo "$as_me:$LINENO: checking for remove" >&5
20817 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20818 if test "${ac_cv_func_remove+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20829 #define remove innocuous_remove
20831 /* System header to define __stub macros and hopefully few prototypes,
20832 which can conflict with char remove (); below.
20833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834 <limits.h> exists even on freestanding compilers. */
20837 # include <limits.h>
20839 # include <assert.h>
20844 /* Override any GCC internal prototype to avoid an error.
20845 Use char because int might match the return type of a GCC
20846 builtin and then its argument prototype would still apply. */
20851 /* The GNU C library defines this for functions which it implements
20852 to always fail with ENOSYS. Some functions are actually named
20853 something starting with __ and the normal name is an alias. */
20854 #if defined __stub_remove || defined __stub___remove
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20881 { (case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_try") 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest$ac_exeext'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_func_remove=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_func_remove=no
20908 rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20912 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20914 if test $ac_cv_func_remove = no; then
20915 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20916 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20917 if test "${ac_cv_lib_posix_remove+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 ac_check_lib_save_LIBS=$LIBS
20921 LIBS="-lposix $LIBS"
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20929 /* Override any GCC internal prototype to avoid an error.
20930 Use char because int might match the return type of a GCC
20931 builtin and then its argument prototype would still apply. */
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (ac_try="$ac_link"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_link") 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959 { (case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_try") 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest$ac_exeext'
20969 { (case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_try") 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 ac_cv_lib_posix_remove=yes
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_cv_lib_posix_remove=no
20986 rm -f core conftest.err conftest.$ac_objext \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20990 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20991 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20992 if test $ac_cv_lib_posix_remove = yes; then
20993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20998 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20999 { echo "$as_me:$LINENO: checking for shmat" >&5
21000 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21001 if test "${ac_cv_func_shmat+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21012 #define shmat innocuous_shmat
21014 /* System header to define __stub macros and hopefully few prototypes,
21015 which can conflict with char shmat (); below.
21016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21017 <limits.h> exists even on freestanding compilers. */
21020 # include <limits.h>
21022 # include <assert.h>
21027 /* Override any GCC internal prototype to avoid an error.
21028 Use char because int might match the return type of a GCC
21029 builtin and then its argument prototype would still apply. */
21034 /* The GNU C library defines this for functions which it implements
21035 to always fail with ENOSYS. Some functions are actually named
21036 something starting with __ and the normal name is an alias. */
21037 #if defined __stub_shmat || defined __stub___shmat
21049 rm -f conftest.$ac_objext conftest$ac_exeext
21050 if { (ac_try="$ac_link"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_link") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; } &&
21073 { ac_try='test -s conftest$ac_exeext'
21074 { (case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_try") 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_func_shmat=yes
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_cv_func_shmat=no
21091 rm -f core conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
21094 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21095 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21097 if test $ac_cv_func_shmat = no; then
21098 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21099 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21100 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 ac_check_lib_save_LIBS=$LIBS
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21142 { (case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_try") 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest$ac_exeext'
21152 { (case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_try") 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_cv_lib_ipc_shmat=yes
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ac_cv_lib_ipc_shmat=no
21169 rm -f core conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21171 LIBS=$ac_check_lib_save_LIBS
21173 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21174 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21175 if test $ac_cv_lib_ipc_shmat = yes; then
21176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21182 # Check for libraries that X11R6 Xt/Xaw programs need.
21183 ac_save_LDFLAGS=$LDFLAGS
21184 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21185 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21186 # check for ICE first), but we must link in the order -lSM -lICE or
21187 # we get undefined symbols. So assume we have SM if we have ICE.
21188 # These have to be linked with before -lX11, unlike the other
21189 # libraries we check for below, so use a different variable.
21190 # John Interrante, Karl Berry
21191 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21192 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21193 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 ac_check_lib_save_LIBS=$LIBS
21197 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21205 /* Override any GCC internal prototype to avoid an error.
21206 Use char because int might match the return type of a GCC
21207 builtin and then its argument prototype would still apply. */
21211 char IceConnectionNumber ();
21215 return IceConnectionNumber ();
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try='test -s conftest$ac_exeext'
21245 { (case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_try") 2>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 ac_cv_lib_ICE_IceConnectionNumber=yes
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21259 ac_cv_lib_ICE_IceConnectionNumber=no
21262 rm -f core conftest.err conftest.$ac_objext \
21263 conftest$ac_exeext conftest.$ac_ext
21264 LIBS=$ac_check_lib_save_LIBS
21266 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21267 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21268 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21269 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21272 LDFLAGS=$ac_save_LDFLAGS
21334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 ac_res=`eval echo '${'$as_ac_Header'}'`
21342 { echo "$as_me:$LINENO: result: $ac_res" >&5
21343 echo "${ECHO_T}$ac_res" >&6; }
21345 # Is the header compilable?
21346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #include <$ac_header>
21357 rm -f conftest.$ac_objext
21358 if { (ac_try="$ac_compile"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_compile") 2>conftest.er1
21366 grep -v '^ *+' conftest.er1 >conftest.err
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21372 { (case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_try") 2>&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest.$ac_objext'
21382 { (case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_try") 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_header_compiler=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_header_compiler=no
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6; }
21403 # Is the header present?
21404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 #include <$ac_header>
21414 if { (ac_try="$ac_cpp conftest.$ac_ext"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } >/dev/null; then
21427 if test -s conftest.err; then
21428 ac_cpp_err=$ac_c_preproc_warn_flag
21429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21436 if test -z "$ac_cpp_err"; then
21437 ac_header_preproc=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_header_preproc=no
21445 rm -f conftest.err conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21447 echo "${ECHO_T}$ac_header_preproc" >&6; }
21449 # So? What about this header?
21450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21456 ac_header_preproc=yes
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 eval "$as_ac_Header=\$ac_header_preproc"
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482 { echo "$as_me:$LINENO: result: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21495 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21497 if test "${ac_cv_header_stdc+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 #include <stdlib.h>
21507 #include <stdarg.h>
21508 #include <string.h>
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_compile") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21534 { (case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_try") 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } &&
21543 { ac_try='test -s conftest.$ac_objext'
21544 { (case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_try") 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_header_stdc=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_header_stdc=no
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 if test $ac_cv_header_stdc = yes; then
21564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 #include <string.h>
21574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575 $EGREP "memchr" >/dev/null 2>&1; then
21578 ac_cv_header_stdc=no
21584 if test $ac_cv_header_stdc = yes; then
21585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 #include <stdlib.h>
21595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21596 $EGREP "free" >/dev/null 2>&1; then
21599 ac_cv_header_stdc=no
21605 if test $ac_cv_header_stdc = yes; then
21606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21607 if test "$cross_compiling" = yes; then
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21617 #include <stdlib.h>
21618 #if ((' ' & 0x0FF) == 0x020)
21619 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21620 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21622 # define ISLOWER(c) \
21623 (('a' <= (c) && (c) <= 'i') \
21624 || ('j' <= (c) && (c) <= 'r') \
21625 || ('s' <= (c) && (c) <= 'z'))
21626 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21634 for (i = 0; i < 256; i++)
21635 if (XOR (islower (i), ISLOWER (i))
21636 || toupper (i) != TOUPPER (i))
21641 rm -f conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648 (eval "$ac_link") 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652 { (case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_try") 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; }; then
21663 echo "$as_me: program exited with status $ac_status" >&5
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ( exit $ac_status )
21668 ac_cv_header_stdc=no
21670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21676 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21677 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21678 if test $ac_cv_header_stdc = yes; then
21680 cat >>confdefs.h <<\_ACEOF
21681 #define STDC_HEADERS 1
21686 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21687 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21688 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 #include <sys/types.h>
21701 return makedev(0, 0);
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1 >conftest.err
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
21720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest$ac_exeext'
21731 { (case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_try") 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_cv_header_sys_types_h_makedev=yes
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_cv_header_sys_types_h_makedev=no
21748 rm -f core conftest.err conftest.$ac_objext \
21749 conftest$ac_exeext conftest.$ac_ext
21752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21753 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21755 if test $ac_cv_header_sys_types_h_makedev = no; then
21756 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21757 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21758 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21759 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21763 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21765 # Is the header compilable?
21766 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21767 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 $ac_includes_default
21775 #include <sys/mkdev.h>
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_compile") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792 { (case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_try") 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; } &&
21801 { ac_try='test -s conftest.$ac_objext'
21802 { (case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_try") 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_header_compiler=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_header_compiler=no
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21821 echo "${ECHO_T}$ac_header_compiler" >&6; }
21823 # Is the header present?
21824 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21825 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21826 cat >conftest.$ac_ext <<_ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <sys/mkdev.h>
21834 if { (ac_try="$ac_cpp conftest.$ac_ext"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } >/dev/null; then
21847 if test -s conftest.err; then
21848 ac_cpp_err=$ac_c_preproc_warn_flag
21849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21856 if test -z "$ac_cpp_err"; then
21857 ac_header_preproc=yes
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_header_preproc=no
21865 rm -f conftest.err conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6; }
21869 # So? What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21872 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21876 ac_header_preproc=yes
21879 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21894 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21895 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21896 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 ac_cv_header_sys_mkdev_h=$ac_header_preproc
21901 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21902 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21905 if test $ac_cv_header_sys_mkdev_h = yes; then
21907 cat >>confdefs.h <<\_ACEOF
21908 #define MAJOR_IN_MKDEV 1
21915 if test $ac_cv_header_sys_mkdev_h = no; then
21916 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21917 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21918 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21919 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21923 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21925 # Is the header compilable?
21926 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21927 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21934 $ac_includes_default
21935 #include <sys/sysmacros.h>
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_compile") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest.$ac_objext'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_header_compiler=yes
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_header_compiler=no
21979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21981 echo "${ECHO_T}$ac_header_compiler" >&6; }
21983 # Is the header present?
21984 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
21985 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 #include <sys/sysmacros.h>
21994 if { (ac_try="$ac_cpp conftest.$ac_ext"
21995 case "(($ac_try" in
21996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997 *) ac_try_echo=$ac_try;;
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } >/dev/null; then
22007 if test -s conftest.err; then
22008 ac_cpp_err=$ac_c_preproc_warn_flag
22009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22016 if test -z "$ac_cpp_err"; then
22017 ac_header_preproc=yes
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022 ac_header_preproc=no
22025 rm -f conftest.err conftest.$ac_ext
22026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22027 echo "${ECHO_T}$ac_header_preproc" >&6; }
22029 # So? What about this header?
22030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22032 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22033 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22035 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22036 ac_header_preproc=yes
22039 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22040 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22042 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22044 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22046 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22048 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22050 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22054 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22055 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22056 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22062 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22065 if test $ac_cv_header_sys_sysmacros_h = yes; then
22067 cat >>confdefs.h <<\_ACEOF
22068 #define MAJOR_IN_SYSMACROS 1
22082 ac_header_dirent=no
22083 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22084 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22085 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22086 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <sys/types.h>
22108 rm -f conftest.$ac_objext
22109 if { (ac_try="$ac_compile"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_compile") 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
22122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; } &&
22132 { ac_try='test -s conftest.$ac_objext'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 eval "$as_ac_Header=yes"
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 eval "$as_ac_Header=no"
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22156 cat >>confdefs.h <<_ACEOF
22157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22160 ac_header_dirent=$ac_hdr; break
22164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22165 if test $ac_header_dirent = dirent.h; then
22166 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22168 if test "${ac_cv_search_opendir+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 ac_func_search_save_LIBS=$LIBS
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22179 /* Override any GCC internal prototype to avoid an error.
22180 Use char because int might match the return type of a GCC
22181 builtin and then its argument prototype would still apply. */
22194 for ac_lib in '' dir; do
22195 if test -z "$ac_lib"; then
22196 ac_res="none required"
22199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22201 rm -f conftest.$ac_objext conftest$ac_exeext
22202 if { (ac_try="$ac_link"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_link") 2>conftest.er1
22210 grep -v '^ *+' conftest.er1 >conftest.err
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
22215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22216 { (case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_try") 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest$ac_exeext'
22226 { (case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_try") 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 ac_cv_search_opendir=$ac_res
22237 echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22243 rm -f core conftest.err conftest.$ac_objext \
22245 if test "${ac_cv_search_opendir+set}" = set; then
22249 if test "${ac_cv_search_opendir+set}" = set; then
22252 ac_cv_search_opendir=no
22254 rm conftest.$ac_ext
22255 LIBS=$ac_func_search_save_LIBS
22257 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22258 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22259 ac_res=$ac_cv_search_opendir
22260 if test "$ac_res" != no; then
22261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22266 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22268 if test "${ac_cv_search_opendir+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 ac_func_search_save_LIBS=$LIBS
22272 cat >conftest.$ac_ext <<_ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22279 /* Override any GCC internal prototype to avoid an error.
22280 Use char because int might match the return type of a GCC
22281 builtin and then its argument prototype would still apply. */
22294 for ac_lib in '' x; do
22295 if test -z "$ac_lib"; then
22296 ac_res="none required"
22299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22301 rm -f conftest.$ac_objext conftest$ac_exeext
22302 if { (ac_try="$ac_link"
22303 case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_link") 2>conftest.er1
22310 grep -v '^ *+' conftest.er1 >conftest.err
22312 cat conftest.err >&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
22315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22316 { (case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_try") 2>&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; } &&
22325 { ac_try='test -s conftest$ac_exeext'
22326 { (case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_try") 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }; then
22335 ac_cv_search_opendir=$ac_res
22337 echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22343 rm -f core conftest.err conftest.$ac_objext \
22345 if test "${ac_cv_search_opendir+set}" = set; then
22349 if test "${ac_cv_search_opendir+set}" = set; then
22352 ac_cv_search_opendir=no
22354 rm conftest.$ac_ext
22355 LIBS=$ac_func_search_save_LIBS
22357 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22358 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22359 ac_res=$ac_cv_search_opendir
22360 if test "$ac_res" != no; then
22361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22367 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22368 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22369 if test "${ac_cv_header_stat_broken+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 cat >conftest.$ac_ext <<_ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22378 #include <sys/types.h>
22379 #include <sys/stat.h>
22381 #if defined S_ISBLK && defined S_IFDIR
22382 # if S_ISBLK (S_IFDIR)
22387 #if defined S_ISBLK && defined S_IFCHR
22388 # if S_ISBLK (S_IFCHR)
22393 #if defined S_ISLNK && defined S_IFREG
22394 # if S_ISLNK (S_IFREG)
22399 #if defined S_ISSOCK && defined S_IFREG
22400 # if S_ISSOCK (S_IFREG)
22406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22407 $EGREP "You lose" >/dev/null 2>&1; then
22408 ac_cv_header_stat_broken=yes
22410 ac_cv_header_stat_broken=no
22415 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22416 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22417 if test $ac_cv_header_stat_broken = yes; then
22419 cat >>confdefs.h <<\_ACEOF
22420 #define STAT_MACROS_BROKEN 1
22425 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22426 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22427 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 #include <sys/types.h>
22437 #include <sys/wait.h>
22438 #ifndef WEXITSTATUS
22439 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22442 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22450 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_header_sys_wait_h=yes
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_cv_header_sys_wait_h=no
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22500 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22501 if test $ac_cv_header_sys_wait_h = yes; then
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_SYS_WAIT_H 1
22509 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22510 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22511 if test "${ac_cv_header_time+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 #include <sys/types.h>
22521 #include <sys/time.h>
22527 if ((struct tm *) 0)
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
22547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22548 { (case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_try") 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try='test -s conftest.$ac_objext'
22558 { (case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_try") 2>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; }; then
22567 ac_cv_header_time=yes
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_cv_header_time=no
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22579 if test $ac_cv_header_time = yes; then
22581 cat >>confdefs.h <<\_ACEOF
22582 #define TIME_WITH_SYS_TIME 1
22587 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 $ac_includes_default
22602 static struct stat ac_aggr;
22603 if (ac_aggr.st_blksize)
22609 rm -f conftest.$ac_objext
22610 if { (ac_try="$ac_compile"
22611 case "(($ac_try" in
22612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613 *) ac_try_echo=$ac_try;;
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616 (eval "$ac_compile") 2>conftest.er1
22618 grep -v '^ *+' conftest.er1 >conftest.err
22620 cat conftest.err >&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } &&
22623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22624 { (case "(($ac_try" in
22625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626 *) ac_try_echo=$ac_try;;
22628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22629 (eval "$ac_try") 2>&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest.$ac_objext'
22634 { (case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_try") 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_member_struct_stat_st_blksize=yes
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 $ac_includes_default
22658 static struct stat ac_aggr;
22659 if (sizeof ac_aggr.st_blksize)
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_compile") 2>conftest.er1
22674 grep -v '^ *+' conftest.er1 >conftest.err
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22680 { (case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_try") 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; } &&
22689 { ac_try='test -s conftest.$ac_objext'
22690 { (case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_try") 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_member_struct_stat_st_blksize=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ac_cv_member_struct_stat_st_blksize=no
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22714 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22721 cat >>confdefs.h <<\_ACEOF
22722 #define HAVE_ST_BLKSIZE 1
22728 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22729 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22730 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 $ac_includes_default
22743 static struct stat ac_aggr;
22744 if (ac_aggr.st_blocks)
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_compile") 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } &&
22764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22765 { (case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_try") 2>&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; } &&
22774 { ac_try='test -s conftest.$ac_objext'
22775 { (case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_try") 2>&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); }; }; then
22784 ac_cv_member_struct_stat_st_blocks=yes
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 cat >conftest.$ac_ext <<_ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22795 $ac_includes_default
22799 static struct stat ac_aggr;
22800 if (sizeof ac_aggr.st_blocks)
22806 rm -f conftest.$ac_objext
22807 if { (ac_try="$ac_compile"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_compile") 2>conftest.er1
22815 grep -v '^ *+' conftest.er1 >conftest.err
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
22820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22821 { (case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_try") 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest.$ac_objext'
22831 { (case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_try") 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ac_cv_member_struct_stat_st_blocks=yes
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_cv_member_struct_stat_st_blocks=no
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22855 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22857 cat >>confdefs.h <<_ACEOF
22858 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_ST_BLOCKS 1
22867 case " $LIBOBJS " in
22868 *" fileblocks.$ac_objext "* ) ;;
22869 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22876 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22878 if test "${ac_cv_struct_tm+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <sys/types.h>
22893 struct tm *tp; tp->tm_sec;
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_compile") 2>conftest.er1
22907 grep -v '^ *+' conftest.er1 >conftest.err
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } &&
22912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22913 { (case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_try") 2>&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; } &&
22922 { ac_try='test -s conftest.$ac_objext'
22923 { (case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_try") 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 ac_cv_struct_tm=time.h
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_cv_struct_tm=sys/time.h
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22943 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22944 if test $ac_cv_struct_tm = sys/time.h; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define TM_IN_SYS_TIME 1
22952 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22953 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22954 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 #include <sys/types.h>
22964 #include <$ac_cv_struct_tm>
22970 static struct tm ac_aggr;
22971 if (ac_aggr.tm_zone)
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_compile") 2>conftest.er1
22986 grep -v '^ *+' conftest.er1 >conftest.err
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } &&
22991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22992 { (case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_try") 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; } &&
23001 { ac_try='test -s conftest.$ac_objext'
23002 { (case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007 (eval "$ac_try") 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ac_cv_member_struct_tm_tm_zone=yes
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 cat >conftest.$ac_ext <<_ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 #include <sys/types.h>
23023 #include <$ac_cv_struct_tm>
23029 static struct tm ac_aggr;
23030 if (sizeof ac_aggr.tm_zone)
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_compile") 2>conftest.er1
23045 grep -v '^ *+' conftest.er1 >conftest.err
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
23050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23051 { (case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_try") 2>&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; } &&
23060 { ac_try='test -s conftest.$ac_objext'
23061 { (case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066 (eval "$ac_try") 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 ac_cv_member_struct_tm_tm_zone=yes
23072 echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 ac_cv_member_struct_tm_tm_zone=no
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_STRUCT_TM_TM_ZONE 1
23094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23096 cat >>confdefs.h <<\_ACEOF
23097 #define HAVE_TM_ZONE 1
23101 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23102 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23103 if test "${ac_cv_have_decl_tzname+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23118 char *p = (char *) tzname;
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
23140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23141 { (case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_try") 2>&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; } &&
23150 { ac_try='test -s conftest.$ac_objext'
23151 { (case "(($ac_try" in
23152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153 *) ac_try_echo=$ac_try;;
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156 (eval "$ac_try") 2>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 ac_cv_have_decl_tzname=yes
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_cv_have_decl_tzname=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23171 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23172 if test $ac_cv_have_decl_tzname = yes; then
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_DECL_TZNAME 1
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_TZNAME 0
23188 { echo "$as_me:$LINENO: checking for tzname" >&5
23189 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23190 if test "${ac_cv_var_tzname+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 cat >conftest.$ac_ext <<_ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23200 #if !HAVE_DECL_TZNAME
23201 extern char *tzname[];
23207 return tzname[0][0];
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>conftest.er1
23221 grep -v '^ *+' conftest.er1 >conftest.err
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } &&
23226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23227 { (case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_try") 2>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try='test -s conftest$ac_exeext'
23237 { (case "(($ac_try" in
23238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239 *) ac_try_echo=$ac_try;;
23241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23242 (eval "$ac_try") 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; }; then
23246 ac_cv_var_tzname=yes
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 ac_cv_var_tzname=no
23254 rm -f core conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
23257 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23258 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23259 if test $ac_cv_var_tzname = yes; then
23261 cat >>confdefs.h <<\_ACEOF
23262 #define HAVE_TZNAME 1
23269 { echo "$as_me:$LINENO: checking for utime.h" >&5
23270 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23271 if test "${ba_cv_header_utime_h+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23281 #include <sys/types.h>
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_compile") 2>conftest.er1
23300 grep -v '^ *+' conftest.er1 >conftest.err
23302 cat conftest.err >&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } &&
23305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23306 { (case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_try") 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; } &&
23315 { ac_try='test -s conftest.$ac_objext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ba_cv_header_utime_h=yes
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330 ba_cv_header_utime_h=no
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23335 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23336 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23337 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23338 #define HAVE_UTIME_H 1
23342 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23343 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23344 if test "${ba_cv_header_socklen_t+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 cat >conftest.$ac_ext <<_ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h. */
23354 #include <sys/types.h>
23355 #include <sys/socket.h>
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_compile") 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379 { (case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384 (eval "$ac_try") 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest.$ac_objext'
23389 { (case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_try") 2>&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; }; then
23398 ba_cv_header_socklen_t=yes
23400 echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ba_cv_header_socklen_t=no
23406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23408 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23409 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23410 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23411 #define HAVE_SOCKLEN_T 1
23415 { echo "$as_me:$LINENO: checking for bigendian" >&5
23416 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23417 if test "${ba_cv_bigendian+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 if test "$cross_compiling" = yes; then
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23431 rm -f conftest$ac_exeext
23432 if { (ac_try="$ac_link"
23433 case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438 (eval "$ac_link") 2>&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23442 { (case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_try") 2>&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
23451 ba_cv_bigendian=yes
23453 echo "$as_me: program exited with status $ac_status" >&5
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23457 ( exit $ac_status )
23460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23466 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23467 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23468 #define HAVE_BIGENDIAN 1
23473 ac_cpp='$CXXCPP $CPPFLAGS'
23474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23479 { echo "$as_me:$LINENO: checking for typeof" >&5
23480 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23481 if test "${ba_cv_have_typeof+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 if test "$cross_compiling" = yes; then
23485 ba_cv_have_typeof=no
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 main(){char *a = 0; a = (typeof a)a;}
23495 rm -f conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_link") 2>&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23506 { (case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511 (eval "$ac_try") 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 ba_cv_have_typeof=yes
23517 echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ( exit $ac_status )
23522 ba_cv_have_typeof=no
23524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23529 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23530 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23531 test $ba_cv_have_typeof = yes &&
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_TYPEOF 1
23537 ac_cpp='$CPP $CPPFLAGS'
23538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23543 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23545 if test "${ac_cv_c_const+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23548 cat >conftest.$ac_ext <<_ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h. */
23558 /* FIXME: Include the comments suggested by Paul. */
23559 #ifndef __cplusplus
23560 /* Ultrix mips cc rejects this. */
23561 typedef int charset[2];
23563 /* SunOS 4.1.1 cc rejects this. */
23564 char const *const *ccp;
23566 /* NEC SVR4.0.2 mips cc rejects this. */
23567 struct point {int x, y;};
23568 static struct point const zero = {0,0};
23569 /* AIX XL C 1.02.0.0 rejects this.
23570 It does not let you subtract one const X* pointer from another in
23571 an arm of an if-expression whose if-part is not a constant
23573 const char *g = "string";
23574 ccp = &g + (g ? g-g : 0);
23575 /* HPUX 7.0 cc rejects these. */
23578 ccp = (char const *const *) p;
23579 { /* SCO 3.2v4 cc rejects this. */
23581 char const *s = 0 ? (char *) 0 : (char const *) 0;
23586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23587 int x[] = {25, 17};
23588 const int *foo = &x[0];
23591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23592 typedef const int *iptr;
23596 { /* AIX XL C 1.02.0.0 rejects this saying
23597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23598 struct s { int j; const int *ap[3]; };
23599 struct s *b; b->j = 5;
23601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23602 const int foo = 10;
23603 if (!foo) return 0;
23605 return !x[0] && !zero.x;
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_compile") 2>conftest.er1
23621 grep -v '^ *+' conftest.er1 >conftest.err
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } &&
23626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23627 { (case "(($ac_try" in
23628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23629 *) ac_try_echo=$ac_try;;
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632 (eval "$ac_try") 2>&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest.$ac_objext'
23637 { (case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642 (eval "$ac_try") 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23658 if test $ac_cv_c_const = no; then
23660 cat >>confdefs.h <<\_ACEOF
23668 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23669 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23671 # The order of these tests is important.
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23678 #include <sys/statvfs.h>
23679 #include <sys/fstyp.h>
23681 if { (ac_try="$ac_cpp conftest.$ac_ext"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23689 grep -v '^ *+' conftest.er1 >conftest.err
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } >/dev/null; then
23694 if test -s conftest.err; then
23695 ac_cpp_err=$ac_c_preproc_warn_flag
23696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23703 if test -z "$ac_cpp_err"; then
23704 cat >>confdefs.h <<\_ACEOF
23705 #define FSTYPE_STATVFS 1
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23715 rm -f conftest.err conftest.$ac_ext
23716 if test $fstype = no; then
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <sys/statfs.h>
23724 #include <sys/fstyp.h>
23726 if { (ac_try="$ac_cpp conftest.$ac_ext"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } >/dev/null; then
23739 if test -s conftest.err; then
23740 ac_cpp_err=$ac_c_preproc_warn_flag
23741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23748 if test -z "$ac_cpp_err"; then
23749 cat >>confdefs.h <<\_ACEOF
23750 #define FSTYPE_USG_STATFS 1
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23760 rm -f conftest.err conftest.$ac_ext
23762 if test $fstype = no; then
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <sys/statfs.h>
23770 #include <sys/vmount.h>
23772 if { (ac_try="$ac_cpp conftest.$ac_ext"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23780 grep -v '^ *+' conftest.er1 >conftest.err
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } >/dev/null; then
23785 if test -s conftest.err; then
23786 ac_cpp_err=$ac_c_preproc_warn_flag
23787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23794 if test -z "$ac_cpp_err"; then
23795 cat >>confdefs.h <<\_ACEOF
23796 #define FSTYPE_AIX_STATFS 1
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23806 rm -f conftest.err conftest.$ac_ext
23808 if test $fstype = no; then
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 #include <mntent.h>
23817 if { (ac_try="$ac_cpp conftest.$ac_ext"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23825 grep -v '^ *+' conftest.er1 >conftest.err
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } >/dev/null; then
23830 if test -s conftest.err; then
23831 ac_cpp_err=$ac_c_preproc_warn_flag
23832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23839 if test -z "$ac_cpp_err"; then
23840 cat >>confdefs.h <<\_ACEOF
23841 #define FSTYPE_MNTENT 1
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23851 rm -f conftest.err conftest.$ac_ext
23853 if test $fstype = no; then
23854 cat >conftest.$ac_ext <<_ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include <sys/mount.h>
23863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23864 $EGREP "f_type;" >/dev/null 2>&1; then
23865 cat >>confdefs.h <<\_ACEOF
23866 #define FSTYPE_STATFS 1
23873 if test $fstype = no; then
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 #include <sys/mount.h>
23881 #include <sys/fs_types.h>
23883 if { (ac_try="$ac_cpp conftest.$ac_ext"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23891 grep -v '^ *+' conftest.er1 >conftest.err
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } >/dev/null; then
23896 if test -s conftest.err; then
23897 ac_cpp_err=$ac_c_preproc_warn_flag
23898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23905 if test -z "$ac_cpp_err"; then
23906 cat >>confdefs.h <<\_ACEOF
23907 #define FSTYPE_GETMNT 1
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23917 rm -f conftest.err conftest.$ac_ext
23919 { echo "$as_me:$LINENO: result: $fstype" >&5
23920 echo "${ECHO_T}$fstype" >&6; }
23922 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23923 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23924 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23925 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23929 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23931 # Is the header compilable?
23932 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23933 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23940 $ac_includes_default
23941 #include <sys/statvfs.h>
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_compile") 2>conftest.er1
23952 grep -v '^ *+' conftest.er1 >conftest.err
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } &&
23957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23958 { (case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_try") 2>&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; } &&
23967 { ac_try='test -s conftest.$ac_objext'
23968 { (case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_try") 2>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23977 ac_header_compiler=yes
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23982 ac_header_compiler=no
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23987 echo "${ECHO_T}$ac_header_compiler" >&6; }
23989 # Is the header present?
23990 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
23991 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 #include <sys/statvfs.h>
24000 if { (ac_try="$ac_cpp conftest.$ac_ext"
24001 case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } >/dev/null; then
24013 if test -s conftest.err; then
24014 ac_cpp_err=$ac_c_preproc_warn_flag
24015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24022 if test -z "$ac_cpp_err"; then
24023 ac_header_preproc=yes
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 ac_header_preproc=no
24031 rm -f conftest.err conftest.$ac_ext
24032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24033 echo "${ECHO_T}$ac_header_preproc" >&6; }
24035 # So? What about this header?
24036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24038 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24039 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24040 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24041 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24042 ac_header_preproc=yes
24045 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24046 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24047 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24048 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24049 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24050 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24051 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24052 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24053 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24054 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24055 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24056 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24060 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24061 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24062 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24068 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24071 if test $ac_cv_header_sys_statvfs_h = yes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_SYS_STATVFS_H 1
24081 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24082 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24083 if test "${ac_cv_type_signal+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 cat >conftest.$ac_ext <<_ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h. */
24092 #include <sys/types.h>
24093 #include <signal.h>
24098 return *(signal (0, 0)) (0) == 1;
24103 rm -f conftest.$ac_objext
24104 if { (ac_try="$ac_compile"
24105 case "(($ac_try" in
24106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107 *) ac_try_echo=$ac_try;;
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110 (eval "$ac_compile") 2>conftest.er1
24112 grep -v '^ *+' conftest.er1 >conftest.err
24114 cat conftest.err >&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); } &&
24117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24118 { (case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123 (eval "$ac_try") 2>&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; } &&
24127 { ac_try='test -s conftest.$ac_objext'
24128 { (case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_try") 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 ac_cv_type_signal=int
24139 echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24142 ac_cv_type_signal=void
24145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24148 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24150 cat >>confdefs.h <<_ACEOF
24151 #define RETSIGTYPE $ac_cv_type_signal
24156 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24157 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24158 if test "${bash_cv_signal_vintage+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 #include <signal.h>
24174 struct sigaction sa;
24175 sigemptyset(&ss); sigsuspend(&ss);
24176 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24177 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24183 rm -f conftest.$ac_objext conftest$ac_exeext
24184 if { (ac_try="$ac_link"
24185 case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190 (eval "$ac_link") 2>conftest.er1
24192 grep -v '^ *+' conftest.er1 >conftest.err
24194 cat conftest.err >&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } &&
24197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24198 { (case "(($ac_try" in
24199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200 *) ac_try_echo=$ac_try;;
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203 (eval "$ac_try") 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest$ac_exeext'
24208 { (case "(($ac_try" in
24209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210 *) ac_try_echo=$ac_try;;
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_try") 2>&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; }; then
24217 bash_cv_signal_vintage="posix"
24219 echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24223 cat >conftest.$ac_ext <<_ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24229 #include <signal.h>
24234 int mask = sigmask(SIGINT);
24235 sigsetmask(mask); sigblock(mask); sigpause(mask);
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_link") 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24256 { (case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_try") 2>&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); }; } &&
24265 { ac_try='test -s conftest$ac_exeext'
24266 { (case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271 (eval "$ac_try") 2>&5
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; }; then
24275 bash_cv_signal_vintage="4.2bsd"
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24281 cat >conftest.$ac_ext <<_ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24288 #include <signal.h>
24289 RETSIGTYPE foo() { }
24294 int mask = sigmask(SIGINT);
24295 sigset(SIGINT, foo); sigrelse(SIGINT);
24296 sighold(SIGINT); sigpause(SIGINT);
24302 rm -f conftest.$ac_objext conftest$ac_exeext
24303 if { (ac_try="$ac_link"
24304 case "(($ac_try" in
24305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306 *) ac_try_echo=$ac_try;;
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309 (eval "$ac_link") 2>conftest.er1
24311 grep -v '^ *+' conftest.er1 >conftest.err
24313 cat conftest.err >&5
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } &&
24316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24317 { (case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_try") 2>&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; } &&
24326 { ac_try='test -s conftest$ac_exeext'
24327 { (case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_try") 2>&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; }; then
24336 bash_cv_signal_vintage="svr3"
24338 echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 bash_cv_signal_vintage="v7"
24345 rm -f core conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
24350 rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
24355 rm -f core conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24360 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24361 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24362 if test "$bash_cv_signal_vintage" = "posix"; then
24363 cat >>confdefs.h <<\_ACEOF
24364 #define HAVE_POSIX_SIGNALS 1
24367 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24368 cat >>confdefs.h <<\_ACEOF
24369 #define HAVE_BSD_SIGNALS 1
24372 elif test "$bash_cv_signal_vintage" = "svr3"; then
24373 cat >>confdefs.h <<\_ACEOF
24374 #define HAVE_USG_SIGHOLD 1
24379 { echo "$as_me:$LINENO: checking for mode_t" >&5
24380 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24381 if test "${ac_cv_type_mode_t+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 $ac_includes_default
24391 typedef mode_t ac__type_new_;
24395 if ((ac__type_new_ *) 0)
24397 if (sizeof (ac__type_new_))
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } &&
24417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24418 { (case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_try") 2>&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); }; } &&
24427 { ac_try='test -s conftest.$ac_objext'
24428 { (case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24433 (eval "$ac_try") 2>&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
24437 ac_cv_type_mode_t=yes
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 ac_cv_type_mode_t=no
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24448 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24449 if test $ac_cv_type_mode_t = yes; then
24453 cat >>confdefs.h <<_ACEOF
24459 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24460 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24461 if test "${ac_cv_type_uid_t+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 #include <sys/types.h>
24473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24474 $EGREP "uid_t" >/dev/null 2>&1; then
24475 ac_cv_type_uid_t=yes
24477 ac_cv_type_uid_t=no
24482 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24483 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24484 if test $ac_cv_type_uid_t = no; then
24486 cat >>confdefs.h <<\_ACEOF
24491 cat >>confdefs.h <<\_ACEOF
24497 { echo "$as_me:$LINENO: checking for size_t" >&5
24498 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24499 if test "${ac_cv_type_size_t+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 $ac_includes_default
24509 typedef size_t ac__type_new_;
24513 if ((ac__type_new_ *) 0)
24515 if (sizeof (ac__type_new_))
24521 rm -f conftest.$ac_objext
24522 if { (ac_try="$ac_compile"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_compile") 2>conftest.er1
24530 grep -v '^ *+' conftest.er1 >conftest.err
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24536 { (case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_try") 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest.$ac_objext'
24546 { (case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_try") 2>&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
24555 ac_cv_type_size_t=yes
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 ac_cv_type_size_t=no
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24566 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24567 if test $ac_cv_type_size_t = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572 #define size_t unsigned int
24577 { echo "$as_me:$LINENO: checking for pid_t" >&5
24578 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24579 if test "${ac_cv_type_pid_t+set}" = set; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 cat >conftest.$ac_ext <<_ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24588 $ac_includes_default
24589 typedef pid_t ac__type_new_;
24593 if ((ac__type_new_ *) 0)
24595 if (sizeof (ac__type_new_))
24601 rm -f conftest.$ac_objext
24602 if { (ac_try="$ac_compile"
24603 case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_compile") 2>conftest.er1
24610 grep -v '^ *+' conftest.er1 >conftest.err
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } &&
24615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24616 { (case "(($ac_try" in
24617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618 *) ac_try_echo=$ac_try;;
24620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24621 (eval "$ac_try") 2>&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest.$ac_objext'
24626 { (case "(($ac_try" in
24627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628 *) ac_try_echo=$ac_try;;
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631 (eval "$ac_try") 2>&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); }; }; then
24635 ac_cv_type_pid_t=yes
24637 echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24640 ac_cv_type_pid_t=no
24643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24646 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24647 if test $ac_cv_type_pid_t = yes; then
24651 cat >>confdefs.h <<_ACEOF
24657 { echo "$as_me:$LINENO: checking for off_t" >&5
24658 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24659 if test "${ac_cv_type_off_t+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 cat >conftest.$ac_ext <<_ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 $ac_includes_default
24669 typedef off_t ac__type_new_;
24673 if ((ac__type_new_ *) 0)
24675 if (sizeof (ac__type_new_))
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_compile") 2>conftest.er1
24690 grep -v '^ *+' conftest.er1 >conftest.err
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } &&
24695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24696 { (case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_try") 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; } &&
24705 { ac_try='test -s conftest.$ac_objext'
24706 { (case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_try") 2>&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); }; }; then
24715 ac_cv_type_off_t=yes
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ac_cv_type_off_t=no
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24725 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24726 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24727 if test $ac_cv_type_off_t = yes; then
24731 cat >>confdefs.h <<_ACEOF
24732 #define off_t long int
24737 { echo "$as_me:$LINENO: checking for ino_t" >&5
24738 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24739 if test "${ac_cv_type_ino_t+set}" = set; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 cat >conftest.$ac_ext <<_ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h. */
24748 $ac_includes_default
24749 typedef ino_t ac__type_new_;
24753 if ((ac__type_new_ *) 0)
24755 if (sizeof (ac__type_new_))
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } &&
24775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24776 { (case "(($ac_try" in
24777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_try") 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest.$ac_objext'
24786 { (case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791 (eval "$ac_try") 2>&5
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_cv_type_ino_t=yes
24797 echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24800 ac_cv_type_ino_t=no
24803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24805 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24806 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24807 if test $ac_cv_type_ino_t = yes; then
24811 cat >>confdefs.h <<_ACEOF
24812 #define ino_t unsigned long
24817 { echo "$as_me:$LINENO: checking for dev_t" >&5
24818 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24819 if test "${ac_cv_type_dev_t+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 $ac_includes_default
24829 typedef dev_t ac__type_new_;
24833 if ((ac__type_new_ *) 0)
24835 if (sizeof (ac__type_new_))
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_compile") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1 >conftest.err
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_try") 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try='test -s conftest.$ac_objext'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_type_dev_t=yes
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 ac_cv_type_dev_t=no
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24886 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24887 if test $ac_cv_type_dev_t = yes; then
24891 cat >>confdefs.h <<_ACEOF
24892 #define dev_t unsigned long
24897 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24898 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24899 if test "${ac_cv_type_daddr_t+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 typedef daddr_t ac__type_new_;
24913 if ((ac__type_new_ *) 0)
24915 if (sizeof (ac__type_new_))
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } &&
24935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; } &&
24945 { ac_try='test -s conftest.$ac_objext'
24946 { (case "(($ac_try" in
24947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24948 *) ac_try_echo=$ac_try;;
24950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24951 (eval "$ac_try") 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; }; then
24955 ac_cv_type_daddr_t=yes
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_cv_type_daddr_t=no
24963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24965 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24966 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
24967 if test $ac_cv_type_daddr_t = yes; then
24971 cat >>confdefs.h <<_ACEOF
24972 #define daddr_t long
24977 { echo "$as_me:$LINENO: checking for major_t" >&5
24978 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
24979 if test "${ac_cv_type_major_t+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 $ac_includes_default
24989 typedef major_t ac__type_new_;
24993 if ((ac__type_new_ *) 0)
24995 if (sizeof (ac__type_new_))
25001 rm -f conftest.$ac_objext
25002 if { (ac_try="$ac_compile"
25003 case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25010 grep -v '^ *+' conftest.er1 >conftest.err
25012 cat conftest.err >&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } &&
25015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25016 { (case "(($ac_try" in
25017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018 *) ac_try_echo=$ac_try;;
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_try") 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest.$ac_objext'
25026 { (case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031 (eval "$ac_try") 2>&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_type_major_t=yes
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_cv_type_major_t=no
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25045 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25046 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25047 if test $ac_cv_type_major_t = yes; then
25051 cat >>confdefs.h <<_ACEOF
25052 #define major_t int
25057 { echo "$as_me:$LINENO: checking for minor_t" >&5
25058 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25059 if test "${ac_cv_type_minor_t+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 cat >conftest.$ac_ext <<_ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h. */
25068 $ac_includes_default
25069 typedef minor_t ac__type_new_;
25073 if ((ac__type_new_ *) 0)
25075 if (sizeof (ac__type_new_))
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25090 grep -v '^ *+' conftest.er1 >conftest.err
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } &&
25095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25096 { (case "(($ac_try" in
25097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_try") 2>&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; } &&
25105 { ac_try='test -s conftest.$ac_objext'
25106 { (case "(($ac_try" in
25107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108 *) ac_try_echo=$ac_try;;
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111 (eval "$ac_try") 2>&5
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_type_minor_t=yes
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25120 ac_cv_type_minor_t=no
25123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25125 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25126 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25127 if test $ac_cv_type_minor_t = yes; then
25131 cat >>confdefs.h <<_ACEOF
25132 #define minor_t int
25137 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25138 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25139 if test "${ac_cv_type_ssize_t+set}" = set; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25148 $ac_includes_default
25149 typedef ssize_t ac__type_new_;
25153 if ((ac__type_new_ *) 0)
25155 if (sizeof (ac__type_new_))
25161 rm -f conftest.$ac_objext
25162 if { (ac_try="$ac_compile"
25163 case "(($ac_try" in
25164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165 *) ac_try_echo=$ac_try;;
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168 (eval "$ac_compile") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
25175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25176 { (case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_try") 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; } &&
25185 { ac_try='test -s conftest.$ac_objext'
25186 { (case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_try") 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_cv_type_ssize_t=yes
25197 echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25200 ac_cv_type_ssize_t=no
25203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25205 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25206 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25207 if test $ac_cv_type_ssize_t = yes; then
25211 cat >>confdefs.h <<_ACEOF
25212 #define ssize_t int
25217 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25218 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25219 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 $ac_includes_default
25232 static struct stat ac_aggr;
25233 if (ac_aggr.st_blocks)
25239 rm -f conftest.$ac_objext
25240 if { (ac_try="$ac_compile"
25241 case "(($ac_try" in
25242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243 *) ac_try_echo=$ac_try;;
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246 (eval "$ac_compile") 2>conftest.er1
25248 grep -v '^ *+' conftest.er1 >conftest.err
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25254 { (case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259 (eval "$ac_try") 2>&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); }; } &&
25263 { ac_try='test -s conftest.$ac_objext'
25264 { (case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_try") 2>&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; }; then
25273 ac_cv_member_struct_stat_st_blocks=yes
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 $ac_includes_default
25288 static struct stat ac_aggr;
25289 if (sizeof ac_aggr.st_blocks)
25295 rm -f conftest.$ac_objext
25296 if { (ac_try="$ac_compile"
25297 case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302 (eval "$ac_compile") 2>conftest.er1
25304 grep -v '^ *+' conftest.er1 >conftest.err
25306 cat conftest.err >&5
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } &&
25309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25310 { (case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315 (eval "$ac_try") 2>&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; } &&
25319 { ac_try='test -s conftest.$ac_objext'
25320 { (case "(($ac_try" in
25321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322 *) ac_try_echo=$ac_try;;
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325 (eval "$ac_try") 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; }; then
25329 ac_cv_member_struct_stat_st_blocks=yes
25331 echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_cv_member_struct_stat_st_blocks=no
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25344 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25346 cat >>confdefs.h <<_ACEOF
25347 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25351 cat >>confdefs.h <<\_ACEOF
25352 #define HAVE_ST_BLOCKS 1
25356 case " $LIBOBJS " in
25357 *" fileblocks.$ac_objext "* ) ;;
25358 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25365 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25366 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25367 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25370 cat >conftest.$ac_ext <<_ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25376 $ac_includes_default
25380 static struct stat ac_aggr;
25381 if (ac_aggr.st_rdev)
25387 rm -f conftest.$ac_objext
25388 if { (ac_try="$ac_compile"
25389 case "(($ac_try" in
25390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391 *) ac_try_echo=$ac_try;;
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394 (eval "$ac_compile") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } &&
25401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25402 { (case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_try") 2>&5
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; } &&
25411 { ac_try='test -s conftest.$ac_objext'
25412 { (case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417 (eval "$ac_try") 2>&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
25421 ac_cv_member_struct_stat_st_rdev=yes
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25432 $ac_includes_default
25436 static struct stat ac_aggr;
25437 if (sizeof ac_aggr.st_rdev)
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25458 { (case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_try") 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; } &&
25467 { ac_try='test -s conftest.$ac_objext'
25468 { (case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_try") 2>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; }; then
25477 ac_cv_member_struct_stat_st_rdev=yes
25479 echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ac_cv_member_struct_stat_st_rdev=no
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25491 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25492 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25494 cat >>confdefs.h <<_ACEOF
25495 #define HAVE_STRUCT_STAT_ST_RDEV 1
25499 cat >>confdefs.h <<\_ACEOF
25500 #define HAVE_ST_RDEV 1
25506 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25508 if test "${ac_cv_struct_tm+set}" = set; then
25509 echo $ECHO_N "(cached) $ECHO_C" >&6
25511 cat >conftest.$ac_ext <<_ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h. */
25517 #include <sys/types.h>
25523 struct tm *tp; tp->tm_sec;
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_compile") 2>conftest.er1
25537 grep -v '^ *+' conftest.er1 >conftest.err
25539 cat conftest.err >&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } &&
25542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25543 { (case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_try") 2>&5
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; } &&
25552 { ac_try='test -s conftest.$ac_objext'
25553 { (case "(($ac_try" in
25554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555 *) ac_try_echo=$ac_try;;
25557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25558 (eval "$ac_try") 2>&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; }; then
25562 ac_cv_struct_tm=time.h
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_cv_struct_tm=sys/time.h
25570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25572 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25573 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25574 if test $ac_cv_struct_tm = sys/time.h; then
25576 cat >>confdefs.h <<\_ACEOF
25577 #define TM_IN_SYS_TIME 1
25582 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25584 if test "${ac_cv_c_const+set}" = set; then
25585 echo $ECHO_N "(cached) $ECHO_C" >&6
25587 cat >conftest.$ac_ext <<_ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25597 /* FIXME: Include the comments suggested by Paul. */
25598 #ifndef __cplusplus
25599 /* Ultrix mips cc rejects this. */
25600 typedef int charset[2];
25602 /* SunOS 4.1.1 cc rejects this. */
25603 char const *const *ccp;
25605 /* NEC SVR4.0.2 mips cc rejects this. */
25606 struct point {int x, y;};
25607 static struct point const zero = {0,0};
25608 /* AIX XL C 1.02.0.0 rejects this.
25609 It does not let you subtract one const X* pointer from another in
25610 an arm of an if-expression whose if-part is not a constant
25612 const char *g = "string";
25613 ccp = &g + (g ? g-g : 0);
25614 /* HPUX 7.0 cc rejects these. */
25617 ccp = (char const *const *) p;
25618 { /* SCO 3.2v4 cc rejects this. */
25620 char const *s = 0 ? (char *) 0 : (char const *) 0;
25625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25626 int x[] = {25, 17};
25627 const int *foo = &x[0];
25630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25631 typedef const int *iptr;
25635 { /* AIX XL C 1.02.0.0 rejects this saying
25636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25637 struct s { int j; const int *ap[3]; };
25638 struct s *b; b->j = 5;
25640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25641 const int foo = 10;
25642 if (!foo) return 0;
25644 return !x[0] && !zero.x;
25651 rm -f conftest.$ac_objext
25652 if { (ac_try="$ac_compile"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_compile") 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } &&
25665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25666 { (case "(($ac_try" in
25667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668 *) ac_try_echo=$ac_try;;
25670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671 (eval "$ac_try") 2>&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; } &&
25675 { ac_try='test -s conftest.$ac_objext'
25676 { (case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681 (eval "$ac_try") 2>&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); }; }; then
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25696 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25697 if test $ac_cv_c_const = no; then
25699 cat >>confdefs.h <<\_ACEOF
25707 { echo "$as_me:$LINENO: checking for char" >&5
25708 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25709 if test "${ac_cv_type_char+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25719 typedef char ac__type_new_;
25723 if ((ac__type_new_ *) 0)
25725 if (sizeof (ac__type_new_))
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735 *) ac_try_echo=$ac_try;;
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738 (eval "$ac_compile") 2>conftest.er1
25740 grep -v '^ *+' conftest.er1 >conftest.err
25742 cat conftest.err >&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); } &&
25745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25746 { (case "(($ac_try" in
25747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748 *) ac_try_echo=$ac_try;;
25750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25751 (eval "$ac_try") 2>&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; } &&
25755 { ac_try='test -s conftest.$ac_objext'
25756 { (case "(($ac_try" in
25757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758 *) ac_try_echo=$ac_try;;
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761 (eval "$ac_try") 2>&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; }; then
25765 ac_cv_type_char=yes
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25776 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25778 { echo "$as_me:$LINENO: checking size of char" >&5
25779 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25780 if test "${ac_cv_sizeof_char+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25783 if test "$ac_cv_type_char" = yes; then
25784 # The cast to long int works around a bug in the HP C Compiler
25785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25787 # This bug is HP SR number 8606223364.
25788 if test "$cross_compiling" = yes; then
25789 # Depending upon the size, compute the lo and hi bounds.
25790 cat >conftest.$ac_ext <<_ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h. */
25796 $ac_includes_default
25797 typedef char ac__type_sizeof_;
25801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_compile") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1 >conftest.err
25819 cat conftest.err >&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } &&
25822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25823 { (case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828 (eval "$ac_try") 2>&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } &&
25832 { ac_try='test -s conftest.$ac_objext'
25833 { (case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838 (eval "$ac_try") 2>&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25851 typedef char ac__type_sizeof_;
25855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_compile") 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } &&
25876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25877 { (case "(($ac_try" in
25878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879 *) ac_try_echo=$ac_try;;
25881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882 (eval "$ac_try") 2>&5
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; } &&
25886 { ac_try='test -s conftest.$ac_objext'
25887 { (case "(($ac_try" in
25888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25889 *) ac_try_echo=$ac_try;;
25891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25892 (eval "$ac_try") 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; }; then
25896 ac_hi=$ac_mid; break
25898 echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25901 ac_lo=`expr $ac_mid + 1`
25902 if test $ac_lo -le $ac_mid; then
25906 ac_mid=`expr 2 '*' $ac_mid + 1`
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 $ac_includes_default
25922 typedef char ac__type_sizeof_;
25926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25933 rm -f conftest.$ac_objext
25934 if { (ac_try="$ac_compile"
25935 case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940 (eval "$ac_compile") 2>conftest.er1
25942 grep -v '^ *+' conftest.er1 >conftest.err
25944 cat conftest.err >&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25948 { (case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_try") 2>&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); }; } &&
25957 { ac_try='test -s conftest.$ac_objext'
25958 { (case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_try") 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; }; then
25969 cat >conftest.$ac_ext <<_ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 $ac_includes_default
25976 typedef char ac__type_sizeof_;
25980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25987 rm -f conftest.$ac_objext
25988 if { (ac_try="$ac_compile"
25989 case "(($ac_try" in
25990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25991 *) ac_try_echo=$ac_try;;
25993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26002 { (case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_try") 2>&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); }; } &&
26011 { ac_try='test -s conftest.$ac_objext'
26012 { (case "(($ac_try" in
26013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014 *) ac_try_echo=$ac_try;;
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017 (eval "$ac_try") 2>&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 ac_lo=$ac_mid; break
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ac_hi=`expr '(' $ac_mid ')' - 1`
26027 if test $ac_mid -le $ac_hi; then
26031 ac_mid=`expr 2 '*' $ac_mid`
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26047 # Binary search between lo and hi bounds.
26048 while test "x$ac_lo" != "x$ac_hi"; do
26049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26050 cat >conftest.$ac_ext <<_ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 $ac_includes_default
26057 typedef char ac__type_sizeof_;
26061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26068 rm -f conftest.$ac_objext
26069 if { (ac_try="$ac_compile"
26070 case "(($ac_try" in
26071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072 *) ac_try_echo=$ac_try;;
26074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075 (eval "$ac_compile") 2>conftest.er1
26077 grep -v '^ *+' conftest.er1 >conftest.err
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } &&
26082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26083 { (case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088 (eval "$ac_try") 2>&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; } &&
26092 { ac_try='test -s conftest.$ac_objext'
26093 { (case "(($ac_try" in
26094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095 *) ac_try_echo=$ac_try;;
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098 (eval "$ac_try") 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; }; then
26104 echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26107 ac_lo=`expr '(' $ac_mid ')' + 1`
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 ?*) ac_cv_sizeof_char=$ac_lo;;
26114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26115 See \`config.log' for more details." >&5
26116 echo "$as_me: error: cannot compute sizeof (char)
26117 See \`config.log' for more details." >&2;}
26118 { (exit 77); exit 77; }; } ;;
26121 cat >conftest.$ac_ext <<_ACEOF
26124 cat confdefs.h >>conftest.$ac_ext
26125 cat >>conftest.$ac_ext <<_ACEOF
26126 /* end confdefs.h. */
26127 $ac_includes_default
26128 typedef char ac__type_sizeof_;
26129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26132 #include <stdlib.h>
26137 FILE *f = fopen ("conftest.val", "w");
26140 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26142 long int i = longval ();
26143 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26145 fprintf (f, "%ld\n", i);
26149 unsigned long int i = ulongval ();
26150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26152 fprintf (f, "%lu\n", i);
26154 return ferror (f) || fclose (f) != 0;
26160 rm -f conftest$ac_exeext
26161 if { (ac_try="$ac_link"
26162 case "(($ac_try" in
26163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26164 *) ac_try_echo=$ac_try;;
26166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26167 (eval "$ac_link") 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26171 { (case "(($ac_try" in
26172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173 *) ac_try_echo=$ac_try;;
26175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176 (eval "$ac_try") 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_cv_sizeof_char=`cat conftest.val`
26182 echo "$as_me: program exited with status $ac_status" >&5
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 ( exit $ac_status )
26187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26188 See \`config.log' for more details." >&5
26189 echo "$as_me: error: cannot compute sizeof (char)
26190 See \`config.log' for more details." >&2;}
26191 { (exit 77); exit 77; }; }
26193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26197 ac_cv_sizeof_char=0
26200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26201 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26202 cat >>confdefs.h <<_ACEOF
26203 #define SIZEOF_CHAR $ac_cv_sizeof_char
26207 { echo "$as_me:$LINENO: checking for short int" >&5
26208 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26209 if test "${ac_cv_type_short_int+set}" = set; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26212 cat >conftest.$ac_ext <<_ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 $ac_includes_default
26219 typedef short int ac__type_new_;
26223 if ((ac__type_new_ *) 0)
26225 if (sizeof (ac__type_new_))
26231 rm -f conftest.$ac_objext
26232 if { (ac_try="$ac_compile"
26233 case "(($ac_try" in
26234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235 *) ac_try_echo=$ac_try;;
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238 (eval "$ac_compile") 2>conftest.er1
26240 grep -v '^ *+' conftest.er1 >conftest.err
26242 cat conftest.err >&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } &&
26245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26246 { (case "(($ac_try" in
26247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248 *) ac_try_echo=$ac_try;;
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251 (eval "$ac_try") 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; } &&
26255 { ac_try='test -s conftest.$ac_objext'
26256 { (case "(($ac_try" in
26257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26258 *) ac_try_echo=$ac_try;;
26260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26261 (eval "$ac_try") 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 ac_cv_type_short_int=yes
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_cv_type_short_int=no
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26276 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26278 { echo "$as_me:$LINENO: checking size of short int" >&5
26279 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26280 if test "${ac_cv_sizeof_short_int+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 if test "$ac_cv_type_short_int" = yes; then
26284 # The cast to long int works around a bug in the HP C Compiler
26285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26287 # This bug is HP SR number 8606223364.
26288 if test "$cross_compiling" = yes; then
26289 # Depending upon the size, compute the lo and hi bounds.
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 $ac_includes_default
26297 typedef short int ac__type_sizeof_;
26301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312 *) ac_try_echo=$ac_try;;
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315 (eval "$ac_compile") 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
26322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26323 { (case "(($ac_try" in
26324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325 *) ac_try_echo=$ac_try;;
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328 (eval "$ac_try") 2>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; } &&
26332 { ac_try='test -s conftest.$ac_objext'
26333 { (case "(($ac_try" in
26334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338 (eval "$ac_try") 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; }; then
26344 cat >conftest.$ac_ext <<_ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 $ac_includes_default
26351 typedef short int ac__type_sizeof_;
26355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26362 rm -f conftest.$ac_objext
26363 if { (ac_try="$ac_compile"
26364 case "(($ac_try" in
26365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366 *) ac_try_echo=$ac_try;;
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369 (eval "$ac_compile") 2>conftest.er1
26371 grep -v '^ *+' conftest.er1 >conftest.err
26373 cat conftest.err >&5
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } &&
26376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26377 { (case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382 (eval "$ac_try") 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; } &&
26386 { ac_try='test -s conftest.$ac_objext'
26387 { (case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392 (eval "$ac_try") 2>&5
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; }; then
26396 ac_hi=$ac_mid; break
26398 echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26401 ac_lo=`expr $ac_mid + 1`
26402 if test $ac_lo -le $ac_mid; then
26406 ac_mid=`expr 2 '*' $ac_mid + 1`
26409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 cat >conftest.$ac_ext <<_ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26421 $ac_includes_default
26422 typedef short int ac__type_sizeof_;
26426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440 (eval "$ac_compile") 2>conftest.er1
26442 grep -v '^ *+' conftest.er1 >conftest.err
26444 cat conftest.err >&5
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } &&
26447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26448 { (case "(($ac_try" in
26449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450 *) ac_try_echo=$ac_try;;
26452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453 (eval "$ac_try") 2>&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; } &&
26457 { ac_try='test -s conftest.$ac_objext'
26458 { (case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_try") 2>&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); }; }; then
26469 cat >conftest.$ac_ext <<_ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h. */
26475 $ac_includes_default
26476 typedef short int ac__type_sizeof_;
26480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26487 rm -f conftest.$ac_objext
26488 if { (ac_try="$ac_compile"
26489 case "(($ac_try" in
26490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26491 *) ac_try_echo=$ac_try;;
26493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26494 (eval "$ac_compile") 2>conftest.er1
26496 grep -v '^ *+' conftest.er1 >conftest.err
26498 cat conftest.err >&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
26501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26502 { (case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_try") 2>&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; } &&
26511 { ac_try='test -s conftest.$ac_objext'
26512 { (case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_try") 2>&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; }; then
26521 ac_lo=$ac_mid; break
26523 echo "$as_me: failed program was:" >&5
26524 sed 's/^/| /' conftest.$ac_ext >&5
26526 ac_hi=`expr '(' $ac_mid ')' - 1`
26527 if test $ac_mid -le $ac_hi; then
26531 ac_mid=`expr 2 '*' $ac_mid`
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537 echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26547 # Binary search between lo and hi bounds.
26548 while test "x$ac_lo" != "x$ac_hi"; do
26549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26550 cat >conftest.$ac_ext <<_ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h. */
26556 $ac_includes_default
26557 typedef short int ac__type_sizeof_;
26561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26568 rm -f conftest.$ac_objext
26569 if { (ac_try="$ac_compile"
26570 case "(($ac_try" in
26571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572 *) ac_try_echo=$ac_try;;
26574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575 (eval "$ac_compile") 2>conftest.er1
26577 grep -v '^ *+' conftest.er1 >conftest.err
26579 cat conftest.err >&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } &&
26582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26583 { (case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588 (eval "$ac_try") 2>&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; } &&
26592 { ac_try='test -s conftest.$ac_objext'
26593 { (case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_try") 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; }; then
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26607 ac_lo=`expr '(' $ac_mid ')' + 1`
26610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26615 See \`config.log' for more details." >&5
26616 echo "$as_me: error: cannot compute sizeof (short int)
26617 See \`config.log' for more details." >&2;}
26618 { (exit 77); exit 77; }; } ;;
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 $ac_includes_default
26628 typedef short int ac__type_sizeof_;
26629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26632 #include <stdlib.h>
26637 FILE *f = fopen ("conftest.val", "w");
26640 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26642 long int i = longval ();
26643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26645 fprintf (f, "%ld\n", i);
26649 unsigned long int i = ulongval ();
26650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26652 fprintf (f, "%lu\n", i);
26654 return ferror (f) || fclose (f) != 0;
26660 rm -f conftest$ac_exeext
26661 if { (ac_try="$ac_link"
26662 case "(($ac_try" in
26663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26664 *) ac_try_echo=$ac_try;;
26666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26667 (eval "$ac_link") 2>&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26671 { (case "(($ac_try" in
26672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673 *) ac_try_echo=$ac_try;;
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676 (eval "$ac_try") 2>&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); }; }; then
26680 ac_cv_sizeof_short_int=`cat conftest.val`
26682 echo "$as_me: program exited with status $ac_status" >&5
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26686 ( exit $ac_status )
26687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26688 See \`config.log' for more details." >&5
26689 echo "$as_me: error: cannot compute sizeof (short int)
26690 See \`config.log' for more details." >&2;}
26691 { (exit 77); exit 77; }; }
26693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26697 ac_cv_sizeof_short_int=0
26700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26701 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26702 cat >>confdefs.h <<_ACEOF
26703 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26707 { echo "$as_me:$LINENO: checking for int" >&5
26708 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26709 if test "${ac_cv_type_int+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 cat >conftest.$ac_ext <<_ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h. */
26718 $ac_includes_default
26719 typedef int ac__type_new_;
26723 if ((ac__type_new_ *) 0)
26725 if (sizeof (ac__type_new_))
26731 rm -f conftest.$ac_objext
26732 if { (ac_try="$ac_compile"
26733 case "(($ac_try" in
26734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735 *) ac_try_echo=$ac_try;;
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738 (eval "$ac_compile") 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
26742 cat conftest.err >&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
26745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26746 { (case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_try") 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; } &&
26755 { ac_try='test -s conftest.$ac_objext'
26756 { (case "(($ac_try" in
26757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758 *) ac_try_echo=$ac_try;;
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761 (eval "$ac_try") 2>&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); }; }; then
26767 echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26775 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26776 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26778 { echo "$as_me:$LINENO: checking size of int" >&5
26779 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26780 if test "${ac_cv_sizeof_int+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 if test "$ac_cv_type_int" = yes; then
26784 # The cast to long int works around a bug in the HP C Compiler
26785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26787 # This bug is HP SR number 8606223364.
26788 if test "$cross_compiling" = yes; then
26789 # Depending upon the size, compute the lo and hi bounds.
26790 cat >conftest.$ac_ext <<_ACEOF
26793 cat confdefs.h >>conftest.$ac_ext
26794 cat >>conftest.$ac_ext <<_ACEOF
26795 /* end confdefs.h. */
26796 $ac_includes_default
26797 typedef int ac__type_sizeof_;
26801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26808 rm -f conftest.$ac_objext
26809 if { (ac_try="$ac_compile"
26810 case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815 (eval "$ac_compile") 2>conftest.er1
26817 grep -v '^ *+' conftest.er1 >conftest.err
26819 cat conftest.err >&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } &&
26822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26823 { (case "(($ac_try" in
26824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825 *) ac_try_echo=$ac_try;;
26827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26828 (eval "$ac_try") 2>&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); }; } &&
26832 { ac_try='test -s conftest.$ac_objext'
26833 { (case "(($ac_try" in
26834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835 *) ac_try_echo=$ac_try;;
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838 (eval "$ac_try") 2>&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; }; then
26844 cat >conftest.$ac_ext <<_ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26850 $ac_includes_default
26851 typedef int ac__type_sizeof_;
26855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26862 rm -f conftest.$ac_objext
26863 if { (ac_try="$ac_compile"
26864 case "(($ac_try" in
26865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866 *) ac_try_echo=$ac_try;;
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869 (eval "$ac_compile") 2>conftest.er1
26871 grep -v '^ *+' conftest.er1 >conftest.err
26873 cat conftest.err >&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
26876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26877 { (case "(($ac_try" in
26878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879 *) ac_try_echo=$ac_try;;
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_try") 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; } &&
26886 { ac_try='test -s conftest.$ac_objext'
26887 { (case "(($ac_try" in
26888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892 (eval "$ac_try") 2>&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; }; then
26896 ac_hi=$ac_mid; break
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_lo=`expr $ac_mid + 1`
26902 if test $ac_lo -le $ac_mid; then
26906 ac_mid=`expr 2 '*' $ac_mid + 1`
26909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26915 cat >conftest.$ac_ext <<_ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h. */
26921 $ac_includes_default
26922 typedef int ac__type_sizeof_;
26926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940 (eval "$ac_compile") 2>conftest.er1
26942 grep -v '^ *+' conftest.er1 >conftest.err
26944 cat conftest.err >&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
26947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26948 { (case "(($ac_try" in
26949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950 *) ac_try_echo=$ac_try;;
26952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26953 (eval "$ac_try") 2>&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; } &&
26957 { ac_try='test -s conftest.$ac_objext'
26958 { (case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_try") 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26969 cat >conftest.$ac_ext <<_ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 $ac_includes_default
26976 typedef int ac__type_sizeof_;
26980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26987 rm -f conftest.$ac_objext
26988 if { (ac_try="$ac_compile"
26989 case "(($ac_try" in
26990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991 *) ac_try_echo=$ac_try;;
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_compile") 2>conftest.er1
26996 grep -v '^ *+' conftest.er1 >conftest.err
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } &&
27001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27002 { (case "(($ac_try" in
27003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004 *) ac_try_echo=$ac_try;;
27006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27007 (eval "$ac_try") 2>&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); }; } &&
27011 { ac_try='test -s conftest.$ac_objext'
27012 { (case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_try") 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; }; then
27021 ac_lo=$ac_mid; break
27023 echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27026 ac_hi=`expr '(' $ac_mid ')' - 1`
27027 if test $ac_mid -le $ac_hi; then
27031 ac_mid=`expr 2 '*' $ac_mid`
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 # Binary search between lo and hi bounds.
27048 while test "x$ac_lo" != "x$ac_hi"; do
27049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27050 cat >conftest.$ac_ext <<_ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h. */
27056 $ac_includes_default
27057 typedef int ac__type_sizeof_;
27061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_compile") 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27083 { (case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_try") 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_try") 2>&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27107 ac_lo=`expr '(' $ac_mid ')' + 1`
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 ?*) ac_cv_sizeof_int=$ac_lo;;
27114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27115 See \`config.log' for more details." >&5
27116 echo "$as_me: error: cannot compute sizeof (int)
27117 See \`config.log' for more details." >&2;}
27118 { (exit 77); exit 77; }; } ;;
27121 cat >conftest.$ac_ext <<_ACEOF
27124 cat confdefs.h >>conftest.$ac_ext
27125 cat >>conftest.$ac_ext <<_ACEOF
27126 /* end confdefs.h. */
27127 $ac_includes_default
27128 typedef int ac__type_sizeof_;
27129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27132 #include <stdlib.h>
27137 FILE *f = fopen ("conftest.val", "w");
27140 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27142 long int i = longval ();
27143 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27145 fprintf (f, "%ld\n", i);
27149 unsigned long int i = ulongval ();
27150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27152 fprintf (f, "%lu\n", i);
27154 return ferror (f) || fclose (f) != 0;
27160 rm -f conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 ac_cv_sizeof_int=`cat conftest.val`
27182 echo "$as_me: program exited with status $ac_status" >&5
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27186 ( exit $ac_status )
27187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27188 See \`config.log' for more details." >&5
27189 echo "$as_me: error: cannot compute sizeof (int)
27190 See \`config.log' for more details." >&2;}
27191 { (exit 77); exit 77; }; }
27193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27201 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27202 cat >>confdefs.h <<_ACEOF
27203 #define SIZEOF_INT $ac_cv_sizeof_int
27207 { echo "$as_me:$LINENO: checking for long int" >&5
27208 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27209 if test "${ac_cv_type_long_int+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 cat >conftest.$ac_ext <<_ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 $ac_includes_default
27219 typedef long int ac__type_new_;
27223 if ((ac__type_new_ *) 0)
27225 if (sizeof (ac__type_new_))
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_compile") 2>conftest.er1
27240 grep -v '^ *+' conftest.er1 >conftest.err
27242 cat conftest.err >&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } &&
27245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27246 { (case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251 (eval "$ac_try") 2>&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; } &&
27255 { ac_try='test -s conftest.$ac_objext'
27256 { (case "(($ac_try" in
27257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258 *) ac_try_echo=$ac_try;;
27260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261 (eval "$ac_try") 2>&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); }; }; then
27265 ac_cv_type_long_int=yes
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 ac_cv_type_long_int=no
27273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27276 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27278 { echo "$as_me:$LINENO: checking size of long int" >&5
27279 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27280 if test "${ac_cv_sizeof_long_int+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27283 if test "$ac_cv_type_long_int" = yes; then
27284 # The cast to long int works around a bug in the HP C Compiler
27285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27287 # This bug is HP SR number 8606223364.
27288 if test "$cross_compiling" = yes; then
27289 # Depending upon the size, compute the lo and hi bounds.
27290 cat >conftest.$ac_ext <<_ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27296 $ac_includes_default
27297 typedef long int ac__type_sizeof_;
27301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27308 rm -f conftest.$ac_objext
27309 if { (ac_try="$ac_compile"
27310 case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_compile") 2>conftest.er1
27317 grep -v '^ *+' conftest.er1 >conftest.err
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27323 { (case "(($ac_try" in
27324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325 *) ac_try_echo=$ac_try;;
27327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27328 (eval "$ac_try") 2>&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; } &&
27332 { ac_try='test -s conftest.$ac_objext'
27333 { (case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_try") 2>&5
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); }; }; then
27344 cat >conftest.$ac_ext <<_ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27350 $ac_includes_default
27351 typedef long int ac__type_sizeof_;
27355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27362 rm -f conftest.$ac_objext
27363 if { (ac_try="$ac_compile"
27364 case "(($ac_try" in
27365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366 *) ac_try_echo=$ac_try;;
27368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369 (eval "$ac_compile") 2>conftest.er1
27371 grep -v '^ *+' conftest.er1 >conftest.err
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } &&
27376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27377 { (case "(($ac_try" in
27378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27379 *) ac_try_echo=$ac_try;;
27381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27382 (eval "$ac_try") 2>&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; } &&
27386 { ac_try='test -s conftest.$ac_objext'
27387 { (case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_try") 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; }; then
27396 ac_hi=$ac_mid; break
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ac_lo=`expr $ac_mid + 1`
27402 if test $ac_lo -le $ac_mid; then
27406 ac_mid=`expr 2 '*' $ac_mid + 1`
27409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27412 echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27415 cat >conftest.$ac_ext <<_ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h. */
27421 $ac_includes_default
27422 typedef long int ac__type_sizeof_;
27426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27433 rm -f conftest.$ac_objext
27434 if { (ac_try="$ac_compile"
27435 case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_compile") 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try='test -s conftest.$ac_objext'
27458 { (case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_try") 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27469 cat >conftest.$ac_ext <<_ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27475 $ac_includes_default
27476 typedef long int ac__type_sizeof_;
27480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27496 grep -v '^ *+' conftest.er1 >conftest.err
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } &&
27501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27502 { (case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_try") 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest.$ac_objext'
27512 { (case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_try") 2>&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; }; then
27521 ac_lo=$ac_mid; break
27523 echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27526 ac_hi=`expr '(' $ac_mid ')' - 1`
27527 if test $ac_mid -le $ac_hi; then
27531 ac_mid=`expr 2 '*' $ac_mid`
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27547 # Binary search between lo and hi bounds.
27548 while test "x$ac_lo" != "x$ac_hi"; do
27549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27550 cat >conftest.$ac_ext <<_ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h. */
27556 $ac_includes_default
27557 typedef long int ac__type_sizeof_;
27561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27568 rm -f conftest.$ac_objext
27569 if { (ac_try="$ac_compile"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_compile") 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest.$ac_objext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27604 echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27607 ac_lo=`expr '(' $ac_mid ')' + 1`
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27613 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27615 See \`config.log' for more details." >&5
27616 echo "$as_me: error: cannot compute sizeof (long int)
27617 See \`config.log' for more details." >&2;}
27618 { (exit 77); exit 77; }; } ;;
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 $ac_includes_default
27628 typedef long int ac__type_sizeof_;
27629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27632 #include <stdlib.h>
27637 FILE *f = fopen ("conftest.val", "w");
27640 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27642 long int i = longval ();
27643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27645 fprintf (f, "%ld\n", i);
27649 unsigned long int i = ulongval ();
27650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27652 fprintf (f, "%lu\n", i);
27654 return ferror (f) || fclose (f) != 0;
27660 rm -f conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_link") 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 ac_cv_sizeof_long_int=`cat conftest.val`
27682 echo "$as_me: program exited with status $ac_status" >&5
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27686 ( exit $ac_status )
27687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27688 See \`config.log' for more details." >&5
27689 echo "$as_me: error: cannot compute sizeof (long int)
27690 See \`config.log' for more details." >&2;}
27691 { (exit 77); exit 77; }; }
27693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27697 ac_cv_sizeof_long_int=0
27700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27701 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27702 cat >>confdefs.h <<_ACEOF
27703 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27707 { echo "$as_me:$LINENO: checking for long long int" >&5
27708 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27709 if test "${ac_cv_type_long_long_int+set}" = set; then
27710 echo $ECHO_N "(cached) $ECHO_C" >&6
27712 cat >conftest.$ac_ext <<_ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h. */
27718 $ac_includes_default
27719 typedef long long int ac__type_new_;
27723 if ((ac__type_new_ *) 0)
27725 if (sizeof (ac__type_new_))
27731 rm -f conftest.$ac_objext
27732 if { (ac_try="$ac_compile"
27733 case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_compile") 2>conftest.er1
27740 grep -v '^ *+' conftest.er1 >conftest.err
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746 { (case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_try") 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest.$ac_objext'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
27765 ac_cv_type_long_long_int=yes
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770 ac_cv_type_long_long_int=no
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27776 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27778 { echo "$as_me:$LINENO: checking size of long long int" >&5
27779 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27780 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
27783 if test "$ac_cv_type_long_long_int" = yes; then
27784 # The cast to long int works around a bug in the HP C Compiler
27785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27787 # This bug is HP SR number 8606223364.
27788 if test "$cross_compiling" = yes; then
27789 # Depending upon the size, compute the lo and hi bounds.
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27796 $ac_includes_default
27797 typedef long long int ac__type_sizeof_;
27801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_compile") 2>conftest.er1
27817 grep -v '^ *+' conftest.er1 >conftest.err
27819 cat conftest.err >&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); } &&
27822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27823 { (case "(($ac_try" in
27824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825 *) ac_try_echo=$ac_try;;
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828 (eval "$ac_try") 2>&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; } &&
27832 { ac_try='test -s conftest.$ac_objext'
27833 { (case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_try") 2>&5
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; }; then
27844 cat >conftest.$ac_ext <<_ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h. */
27850 $ac_includes_default
27851 typedef long long int ac__type_sizeof_;
27855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_compile") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } &&
27876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest.$ac_objext'
27887 { (case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892 (eval "$ac_try") 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; }; then
27896 ac_hi=$ac_mid; break
27898 echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27901 ac_lo=`expr $ac_mid + 1`
27902 if test $ac_lo -le $ac_mid; then
27906 ac_mid=`expr 2 '*' $ac_mid + 1`
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912 echo "$as_me: failed program was:" >&5
27913 sed 's/^/| /' conftest.$ac_ext >&5
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 $ac_includes_default
27922 typedef long long int ac__type_sizeof_;
27926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_compile") 2>conftest.er1
27942 grep -v '^ *+' conftest.er1 >conftest.err
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
27947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27948 { (case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_try") 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; } &&
27957 { ac_try='test -s conftest.$ac_objext'
27958 { (case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_try") 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 $ac_includes_default
27976 typedef long long int ac__type_sizeof_;
27980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27987 rm -f conftest.$ac_objext
27988 if { (ac_try="$ac_compile"
27989 case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_compile") 2>conftest.er1
27996 grep -v '^ *+' conftest.er1 >conftest.err
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } &&
28001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28002 { (case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_try") 2>&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; } &&
28011 { ac_try='test -s conftest.$ac_objext'
28012 { (case "(($ac_try" in
28013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_try") 2>&5
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); }; }; then
28021 ac_lo=$ac_mid; break
28023 echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28026 ac_hi=`expr '(' $ac_mid ')' - 1`
28027 if test $ac_mid -le $ac_hi; then
28031 ac_mid=`expr 2 '*' $ac_mid`
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28047 # Binary search between lo and hi bounds.
28048 while test "x$ac_lo" != "x$ac_hi"; do
28049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28056 $ac_includes_default
28057 typedef long long int ac__type_sizeof_;
28061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28068 rm -f conftest.$ac_objext
28069 if { (ac_try="$ac_compile"
28070 case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_compile") 2>conftest.er1
28077 grep -v '^ *+' conftest.er1 >conftest.err
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
28082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; } &&
28092 { ac_try='test -s conftest.$ac_objext'
28093 { (case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_try") 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; }; then
28104 echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28107 ac_lo=`expr '(' $ac_mid ')' + 1`
28110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28115 See \`config.log' for more details." >&5
28116 echo "$as_me: error: cannot compute sizeof (long long int)
28117 See \`config.log' for more details." >&2;}
28118 { (exit 77); exit 77; }; } ;;
28121 cat >conftest.$ac_ext <<_ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h. */
28127 $ac_includes_default
28128 typedef long long int ac__type_sizeof_;
28129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28132 #include <stdlib.h>
28137 FILE *f = fopen ("conftest.val", "w");
28140 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28142 long int i = longval ();
28143 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28145 fprintf (f, "%ld\n", i);
28149 unsigned long int i = ulongval ();
28150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28152 fprintf (f, "%lu\n", i);
28154 return ferror (f) || fclose (f) != 0;
28160 rm -f conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167 (eval "$ac_link") 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28171 { (case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_try") 2>&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; }; then
28180 ac_cv_sizeof_long_long_int=`cat conftest.val`
28182 echo "$as_me: program exited with status $ac_status" >&5
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 ( exit $ac_status )
28187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28188 See \`config.log' for more details." >&5
28189 echo "$as_me: error: cannot compute sizeof (long long int)
28190 See \`config.log' for more details." >&2;}
28191 { (exit 77); exit 77; }; }
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28197 ac_cv_sizeof_long_long_int=0
28200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28201 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28202 cat >>confdefs.h <<_ACEOF
28203 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28207 { echo "$as_me:$LINENO: checking for int *" >&5
28208 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28209 if test "${ac_cv_type_int_p+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28212 cat >conftest.$ac_ext <<_ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h. */
28218 $ac_includes_default
28219 typedef int * ac__type_new_;
28223 if ((ac__type_new_ *) 0)
28225 if (sizeof (ac__type_new_))
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235 *) ac_try_echo=$ac_try;;
28237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28238 (eval "$ac_compile") 2>conftest.er1
28240 grep -v '^ *+' conftest.er1 >conftest.err
28242 cat conftest.err >&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); } &&
28245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28246 { (case "(($ac_try" in
28247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248 *) ac_try_echo=$ac_try;;
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251 (eval "$ac_try") 2>&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); }; } &&
28255 { ac_try='test -s conftest.$ac_objext'
28256 { (case "(($ac_try" in
28257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_try") 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; }; then
28265 ac_cv_type_int_p=yes
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ac_cv_type_int_p=no
28273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28275 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28276 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28278 { echo "$as_me:$LINENO: checking size of int *" >&5
28279 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28280 if test "${ac_cv_sizeof_int_p+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28283 if test "$ac_cv_type_int_p" = yes; then
28284 # The cast to long int works around a bug in the HP C Compiler
28285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28287 # This bug is HP SR number 8606223364.
28288 if test "$cross_compiling" = yes; then
28289 # Depending upon the size, compute the lo and hi bounds.
28290 cat >conftest.$ac_ext <<_ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h. */
28296 $ac_includes_default
28297 typedef int * ac__type_sizeof_;
28301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_compile") 2>conftest.er1
28317 grep -v '^ *+' conftest.er1 >conftest.err
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } &&
28322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest.$ac_objext'
28333 { (case "(($ac_try" in
28334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335 *) ac_try_echo=$ac_try;;
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338 (eval "$ac_try") 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28350 $ac_includes_default
28351 typedef int * ac__type_sizeof_;
28355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28362 rm -f conftest.$ac_objext
28363 if { (ac_try="$ac_compile"
28364 case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_compile") 2>conftest.er1
28371 grep -v '^ *+' conftest.er1 >conftest.err
28373 cat conftest.err >&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
28376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28377 { (case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_try") 2>&5
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
28386 { ac_try='test -s conftest.$ac_objext'
28387 { (case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392 (eval "$ac_try") 2>&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396 ac_hi=$ac_mid; break
28398 echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28401 ac_lo=`expr $ac_mid + 1`
28402 if test $ac_lo -le $ac_mid; then
28406 ac_mid=`expr 2 '*' $ac_mid + 1`
28409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412 echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28415 cat >conftest.$ac_ext <<_ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h. */
28421 $ac_includes_default
28422 typedef int * ac__type_sizeof_;
28426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440 (eval "$ac_compile") 2>conftest.er1
28442 grep -v '^ *+' conftest.er1 >conftest.err
28444 cat conftest.err >&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } &&
28447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest.$ac_objext'
28458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28469 cat >conftest.$ac_ext <<_ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h. */
28475 $ac_includes_default
28476 typedef int * ac__type_sizeof_;
28480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28487 rm -f conftest.$ac_objext
28488 if { (ac_try="$ac_compile"
28489 case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_compile") 2>conftest.er1
28496 grep -v '^ *+' conftest.er1 >conftest.err
28498 cat conftest.err >&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
28501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest.$ac_objext'
28512 { (case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_try") 2>&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; }; then
28521 ac_lo=$ac_mid; break
28523 echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28526 ac_hi=`expr '(' $ac_mid ')' - 1`
28527 if test $ac_mid -le $ac_hi; then
28531 ac_mid=`expr 2 '*' $ac_mid`
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28547 # Binary search between lo and hi bounds.
28548 while test "x$ac_lo" != "x$ac_hi"; do
28549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 $ac_includes_default
28557 typedef int * ac__type_sizeof_;
28561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28568 rm -f conftest.$ac_objext
28569 if { (ac_try="$ac_compile"
28570 case "(($ac_try" in
28571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572 *) ac_try_echo=$ac_try;;
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_compile") 2>conftest.er1
28577 grep -v '^ *+' conftest.er1 >conftest.err
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
28582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28583 { (case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_try") 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest.$ac_objext'
28593 { (case "(($ac_try" in
28594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_try") 2>&5
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); }; }; then
28604 echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28607 ac_lo=`expr '(' $ac_mid ')' + 1`
28610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28613 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28615 See \`config.log' for more details." >&5
28616 echo "$as_me: error: cannot compute sizeof (int *)
28617 See \`config.log' for more details." >&2;}
28618 { (exit 77); exit 77; }; } ;;
28621 cat >conftest.$ac_ext <<_ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28627 $ac_includes_default
28628 typedef int * ac__type_sizeof_;
28629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28632 #include <stdlib.h>
28637 FILE *f = fopen ("conftest.val", "w");
28640 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28642 long int i = longval ();
28643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28645 fprintf (f, "%ld\n", i);
28649 unsigned long int i = ulongval ();
28650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28652 fprintf (f, "%lu\n", i);
28654 return ferror (f) || fclose (f) != 0;
28660 rm -f conftest$ac_exeext
28661 if { (ac_try="$ac_link"
28662 case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_link") 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28671 { (case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_try") 2>&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680 ac_cv_sizeof_int_p=`cat conftest.val`
28682 echo "$as_me: program exited with status $ac_status" >&5
28683 echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28686 ( exit $ac_status )
28687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28688 See \`config.log' for more details." >&5
28689 echo "$as_me: error: cannot compute sizeof (int *)
28690 See \`config.log' for more details." >&2;}
28691 { (exit 77); exit 77; }; }
28693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28697 ac_cv_sizeof_int_p=0
28700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28701 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28702 cat >>confdefs.h <<_ACEOF
28703 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28708 # Check for sys/types.h types
28709 { echo "$as_me:$LINENO: checking for u_int type" >&5
28710 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28711 if test "${ac_cv_have_u_int+set}" = set; then
28712 echo $ECHO_N "(cached) $ECHO_C" >&6
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 #include <sys/types.h>
28730 rm -f conftest.$ac_objext
28731 if { (ac_try="$ac_compile"
28732 case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_compile") 2>conftest.er1
28739 grep -v '^ *+' conftest.er1 >conftest.err
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
28744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
28755 { (case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_try") 2>&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ac_cv_have_u_int="yes"
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28769 ac_cv_have_u_int="no"
28773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28777 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28778 if test "x$ac_cv_have_u_int" = "xyes" ; then
28779 cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_U_INT 1
28786 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28787 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28788 if test "${ac_cv_have_intmax_t+set}" = set; then
28789 echo $ECHO_N "(cached) $ECHO_C" >&6
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 #include <sys/types.h>
28807 rm -f conftest.$ac_objext
28808 if { (ac_try="$ac_compile"
28809 case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_compile") 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } &&
28821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28822 { (case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_try") 2>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; } &&
28831 { ac_try='test -s conftest.$ac_objext'
28832 { (case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_try") 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 ac_cv_have_intmax_t="yes"
28843 echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28847 cat >conftest.$ac_ext <<_ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28853 #include <stdint.h>
28862 rm -f conftest.$ac_objext
28863 if { (ac_try="$ac_compile"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_compile") 2>conftest.er1
28871 grep -v '^ *+' conftest.er1 >conftest.err
28873 cat conftest.err >&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } &&
28876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28877 { (case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_try") 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; } &&
28886 { ac_try='test -s conftest.$ac_objext'
28887 { (case "(($ac_try" in
28888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889 *) ac_try_echo=$ac_try;;
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892 (eval "$ac_try") 2>&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 ac_cv_have_intmax_t="yes"
28898 echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28901 ac_cv_have_intmax_t="no"
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28914 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28915 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28916 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28917 cat >>confdefs.h <<\_ACEOF
28918 #define HAVE_INTMAX_T 1
28925 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28926 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28927 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28937 #include <sys/types.h>
28941 u_intmax_t a; a = 1;
28946 rm -f conftest.$ac_objext
28947 if { (ac_try="$ac_compile"
28948 case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_compile") 2>conftest.er1
28955 grep -v '^ *+' conftest.er1 >conftest.err
28957 cat conftest.err >&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } &&
28960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28961 { (case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_try") 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; } &&
28970 { ac_try='test -s conftest.$ac_objext'
28971 { (case "(($ac_try" in
28972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973 *) ac_try_echo=$ac_try;;
28975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976 (eval "$ac_try") 2>&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_cv_have_u_intmax_t="yes"
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28992 #include <stdint.h>
28996 u_intmax_t a; a = 1;
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_compile") 2>conftest.er1
29010 grep -v '^ *+' conftest.er1 >conftest.err
29012 cat conftest.err >&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); } &&
29015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29016 { (case "(($ac_try" in
29017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021 (eval "$ac_try") 2>&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_try") 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ac_cv_have_u_intmax_t="yes"
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29040 ac_cv_have_u_intmax_t="no"
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29052 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29053 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29054 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29055 cat >>confdefs.h <<\_ACEOF
29056 #define HAVE_U_INTMAX_T 1
29063 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29064 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29065 if test "${ac_cv_have_intxx_t+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29069 cat >conftest.$ac_ext <<_ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h. */
29075 #include <sys/types.h>
29079 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29084 rm -f conftest.$ac_objext
29085 if { (ac_try="$ac_compile"
29086 case "(($ac_try" in
29087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088 *) ac_try_echo=$ac_try;;
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091 (eval "$ac_compile") 2>conftest.er1
29093 grep -v '^ *+' conftest.er1 >conftest.err
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29099 { (case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_try") 2>&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; } &&
29108 { ac_try='test -s conftest.$ac_objext'
29109 { (case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_try") 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29118 ac_cv_have_intxx_t="yes"
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 ac_cv_have_intxx_t="no"
29127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29130 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29131 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29132 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29133 cat >>confdefs.h <<\_ACEOF
29134 #define HAVE_INTXX_T 1
29140 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29141 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29142 if test "${ac_cv_have_int64_t+set}" = set; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29146 cat >conftest.$ac_ext <<_ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h. */
29152 #include <sys/types.h>
29161 rm -f conftest.$ac_objext
29162 if { (ac_try="$ac_compile"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_compile") 2>conftest.er1
29170 grep -v '^ *+' conftest.er1 >conftest.err
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } &&
29175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29176 { (case "(($ac_try" in
29177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178 *) ac_try_echo=$ac_try;;
29180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181 (eval "$ac_try") 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest.$ac_objext'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_try") 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; }; then
29195 ac_cv_have_int64_t="yes"
29197 echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29200 ac_cv_have_int64_t="no"
29204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29208 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29209 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_INT64_T 1
29217 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29218 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29219 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 cat >conftest.$ac_ext <<_ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h. */
29229 #include <sys/types.h>
29233 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29238 rm -f conftest.$ac_objext
29239 if { (ac_try="$ac_compile"
29240 case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_compile") 2>conftest.er1
29247 grep -v '^ *+' conftest.er1 >conftest.err
29249 cat conftest.err >&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
29252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29253 { (case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_try") 2>&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest.$ac_objext'
29263 { (case "(($ac_try" in
29264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265 *) ac_try_echo=$ac_try;;
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268 (eval "$ac_try") 2>&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_have_u_intxx_t="yes"
29274 echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29277 ac_cv_have_u_intxx_t="no"
29281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29285 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29286 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29287 cat >>confdefs.h <<\_ACEOF
29288 #define HAVE_U_INTXX_T 1
29294 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29295 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29296 if test "${ac_cv_have_u_int64_t+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29300 cat >conftest.$ac_ext <<_ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h. */
29306 #include <sys/types.h>
29310 u_int64_t a; a = 1;
29315 rm -f conftest.$ac_objext
29316 if { (ac_try="$ac_compile"
29317 case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_compile") 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } &&
29329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29330 { (case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_try") 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; } &&
29339 { ac_try='test -s conftest.$ac_objext'
29340 { (case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345 (eval "$ac_try") 2>&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; }; then
29349 ac_cv_have_u_int64_t="yes"
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29354 ac_cv_have_u_int64_t="no"
29358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29361 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29362 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29363 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29364 cat >>confdefs.h <<\_ACEOF
29365 #define HAVE_U_INT64_T 1
29371 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29372 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29374 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29375 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29376 cat >conftest.$ac_ext <<_ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29382 #include <sys/bitypes.h>
29386 int8_t a; int16_t b; int32_t c;
29387 u_int8_t e; u_int16_t f; u_int32_t g;
29388 a = b = c = e = f = g = 1;
29393 rm -f conftest.$ac_objext
29394 if { (ac_try="$ac_compile"
29395 case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_compile") 2>conftest.er1
29402 grep -v '^ *+' conftest.er1 >conftest.err
29404 cat conftest.err >&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; } &&
29417 { ac_try='test -s conftest.$ac_objext'
29418 { (case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_try") 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; }; then
29427 cat >>confdefs.h <<\_ACEOF
29428 #define HAVE_U_INTXX_T 1
29431 cat >>confdefs.h <<\_ACEOF
29432 #define HAVE_INTXX_T 1
29435 cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_SYS_BITYPES_H 1
29439 { echo "$as_me:$LINENO: result: yes" >&5
29440 echo "${ECHO_T}yes" >&6; }
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 { echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6; }
29450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 if test -z "$have_u_intxx_t" ; then
29454 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29455 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29456 if test "${ac_cv_have_uintxx_t+set}" = set; then
29457 echo $ECHO_N "(cached) $ECHO_C" >&6
29460 cat >conftest.$ac_ext <<_ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 #include <sys/types.h>
29470 uint8_t a; uint16_t b;
29471 uint32_t c; a = b = c = 1;
29476 rm -f conftest.$ac_objext
29477 if { (ac_try="$ac_compile"
29478 case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_compile") 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
29490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29491 { (case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_try") 2>&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; } &&
29500 { ac_try='test -s conftest.$ac_objext'
29501 { (case "(($ac_try" in
29502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503 *) ac_try_echo=$ac_try;;
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506 (eval "$ac_try") 2>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 ac_cv_have_uintxx_t="yes"
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29515 ac_cv_have_uintxx_t="no"
29519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29522 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29523 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29524 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29525 cat >>confdefs.h <<\_ACEOF
29526 #define HAVE_UINTXX_T 1
29532 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29533 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29535 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29536 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29543 #include <sys/bitypes.h>
29547 int64_t a; u_int64_t b;
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_compile") 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } &&
29567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29568 { (case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest.$ac_objext'
29578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29587 cat >>confdefs.h <<\_ACEOF
29588 #define HAVE_U_INT64_T 1
29591 cat >>confdefs.h <<\_ACEOF
29592 #define HAVE_INT64_T 1
29595 { echo "$as_me:$LINENO: result: yes" >&5
29596 echo "${ECHO_T}yes" >&6; }
29598 echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29601 { echo "$as_me:$LINENO: result: no" >&5
29602 echo "${ECHO_T}no" >&6; }
29606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29609 if (test -z "$have_uintxx_t" && \
29610 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29612 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29613 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29620 #include <sys/bitypes.h>
29624 uint8_t a; uint16_t b;
29625 uint32_t c; a = b = c = 1;
29630 rm -f conftest.$ac_objext
29631 if { (ac_try="$ac_compile"
29632 case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637 (eval "$ac_compile") 2>conftest.er1
29639 grep -v '^ *+' conftest.er1 >conftest.err
29641 cat conftest.err >&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } &&
29644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; } &&
29654 { ac_try='test -s conftest.$ac_objext'
29655 { (case "(($ac_try" in
29656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29657 *) ac_try_echo=$ac_try;;
29659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29660 (eval "$ac_try") 2>&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664 cat >>confdefs.h <<\_ACEOF
29665 #define HAVE_UINTXX_T 1
29668 { echo "$as_me:$LINENO: result: yes" >&5
29669 echo "${ECHO_T}yes" >&6; }
29671 echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29674 { echo "$as_me:$LINENO: result: no" >&5
29675 echo "${ECHO_T}no" >&6; }
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 cat >conftest.$ac_ext <<_ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29729 #define $ac_func innocuous_$ac_func
29731 /* System header to define __stub macros and hopefully few prototypes,
29732 which can conflict with char $ac_func (); below.
29733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29734 <limits.h> exists even on freestanding compilers. */
29737 # include <limits.h>
29739 # include <assert.h>
29744 /* Override any GCC internal prototype to avoid an error.
29745 Use char because int might match the return type of a GCC
29746 builtin and then its argument prototype would still apply. */
29751 /* The GNU C library defines this for functions which it implements
29752 to always fail with ENOSYS. Some functions are actually named
29753 something starting with __ and the normal name is an alias. */
29754 #if defined __stub_$ac_func || defined __stub___$ac_func
29761 return $ac_func ();
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_link") 2>conftest.er1
29775 grep -v '^ *+' conftest.er1 >conftest.err
29777 cat conftest.err >&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } &&
29780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29781 { (case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_try") 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; } &&
29790 { ac_try='test -s conftest$ac_exeext'
29791 { (case "(($ac_try" in
29792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793 *) ac_try_echo=$ac_try;;
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796 (eval "$ac_try") 2>&5
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29800 eval "$as_ac_var=yes"
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 eval "$as_ac_var=no"
29808 rm -f core conftest.err conftest.$ac_objext \
29809 conftest$ac_exeext conftest.$ac_ext
29811 ac_res=`eval echo '${'$as_ac_var'}'`
29812 { echo "$as_me:$LINENO: result: $ac_res" >&5
29813 echo "${ECHO_T}$ac_res" >&6; }
29814 if test `eval echo '${'$as_ac_var'}'` = yes; then
29815 cat >>confdefs.h <<_ACEOF
29816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29820 echo 'configure: cannot find needed function.'; exit 1
29827 for ac_func in fchdir
29829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 cat >conftest.$ac_ext <<_ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h. */
29841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29843 #define $ac_func innocuous_$ac_func
29845 /* System header to define __stub macros and hopefully few prototypes,
29846 which can conflict with char $ac_func (); below.
29847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848 <limits.h> exists even on freestanding compilers. */
29851 # include <limits.h>
29853 # include <assert.h>
29858 /* Override any GCC internal prototype to avoid an error.
29859 Use char because int might match the return type of a GCC
29860 builtin and then its argument prototype would still apply. */
29865 /* The GNU C library defines this for functions which it implements
29866 to always fail with ENOSYS. Some functions are actually named
29867 something starting with __ and the normal name is an alias. */
29868 #if defined __stub_$ac_func || defined __stub___$ac_func
29875 return $ac_func ();
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_link") 2>conftest.er1
29889 grep -v '^ *+' conftest.er1 >conftest.err
29891 cat conftest.err >&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } &&
29894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29895 { (case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_try") 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='test -s conftest$ac_exeext'
29905 { (case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_try") 2>&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
29914 eval "$as_ac_var=yes"
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29919 eval "$as_ac_var=no"
29922 rm -f core conftest.err conftest.$ac_objext \
29923 conftest$ac_exeext conftest.$ac_ext
29925 ac_res=`eval echo '${'$as_ac_var'}'`
29926 { echo "$as_me:$LINENO: result: $ac_res" >&5
29927 echo "${ECHO_T}$ac_res" >&6; }
29928 if test `eval echo '${'$as_ac_var'}'` = yes; then
29929 cat >>confdefs.h <<_ACEOF
29930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29932 cat >>confdefs.h <<\_ACEOF
29933 #define HAVE_FCHDIR 1
29940 for ac_func in strtoll
29942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29946 echo $ECHO_N "(cached) $ECHO_C" >&6
29948 cat >conftest.$ac_ext <<_ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h. */
29954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29956 #define $ac_func innocuous_$ac_func
29958 /* System header to define __stub macros and hopefully few prototypes,
29959 which can conflict with char $ac_func (); below.
29960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29961 <limits.h> exists even on freestanding compilers. */
29964 # include <limits.h>
29966 # include <assert.h>
29971 /* Override any GCC internal prototype to avoid an error.
29972 Use char because int might match the return type of a GCC
29973 builtin and then its argument prototype would still apply. */
29978 /* The GNU C library defines this for functions which it implements
29979 to always fail with ENOSYS. Some functions are actually named
29980 something starting with __ and the normal name is an alias. */
29981 #if defined __stub_$ac_func || defined __stub___$ac_func
29988 return $ac_func ();
29993 rm -f conftest.$ac_objext conftest$ac_exeext
29994 if { (ac_try="$ac_link"
29995 case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_link") 2>conftest.er1
30002 grep -v '^ *+' conftest.er1 >conftest.err
30004 cat conftest.err >&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); } &&
30007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30008 { (case "(($ac_try" in
30009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010 *) ac_try_echo=$ac_try;;
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_try") 2>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; } &&
30017 { ac_try='test -s conftest$ac_exeext'
30018 { (case "(($ac_try" in
30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020 *) ac_try_echo=$ac_try;;
30022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30023 (eval "$ac_try") 2>&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; }; then
30027 eval "$as_ac_var=yes"
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30032 eval "$as_ac_var=no"
30035 rm -f core conftest.err conftest.$ac_objext \
30036 conftest$ac_exeext conftest.$ac_ext
30038 ac_res=`eval echo '${'$as_ac_var'}'`
30039 { echo "$as_me:$LINENO: result: $ac_res" >&5
30040 echo "${ECHO_T}$ac_res" >&6; }
30041 if test `eval echo '${'$as_ac_var'}'` = yes; then
30042 cat >>confdefs.h <<_ACEOF
30043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30045 cat >>confdefs.h <<\_ACEOF
30046 #define HAVE_STRTOLL 1
30054 for ac_func in chflags
30056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30060 echo $ECHO_N "(cached) $ECHO_C" >&6
30062 cat >conftest.$ac_ext <<_ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30070 #define $ac_func innocuous_$ac_func
30072 /* System header to define __stub macros and hopefully few prototypes,
30073 which can conflict with char $ac_func (); below.
30074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30075 <limits.h> exists even on freestanding compilers. */
30078 # include <limits.h>
30080 # include <assert.h>
30085 /* Override any GCC internal prototype to avoid an error.
30086 Use char because int might match the return type of a GCC
30087 builtin and then its argument prototype would still apply. */
30092 /* The GNU C library defines this for functions which it implements
30093 to always fail with ENOSYS. Some functions are actually named
30094 something starting with __ and the normal name is an alias. */
30095 #if defined __stub_$ac_func || defined __stub___$ac_func
30102 return $ac_func ();
30107 rm -f conftest.$ac_objext conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_link") 2>conftest.er1
30116 grep -v '^ *+' conftest.er1 >conftest.err
30118 cat conftest.err >&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); } &&
30121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30122 { (case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127 (eval "$ac_try") 2>&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest$ac_exeext'
30132 { (case "(($ac_try" in
30133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134 *) ac_try_echo=$ac_try;;
30136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137 (eval "$ac_try") 2>&5
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; }; then
30141 eval "$as_ac_var=yes"
30143 echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30146 eval "$as_ac_var=no"
30149 rm -f core conftest.err conftest.$ac_objext \
30150 conftest$ac_exeext conftest.$ac_ext
30152 ac_res=`eval echo '${'$as_ac_var'}'`
30153 { echo "$as_me:$LINENO: result: $ac_res" >&5
30154 echo "${ECHO_T}$ac_res" >&6; }
30155 if test `eval echo '${'$as_ac_var'}'` = yes; then
30156 cat >>confdefs.h <<_ACEOF
30157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30168 for ac_func in snprintf vsnprintf gethostid fseeko
30170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30174 echo $ECHO_N "(cached) $ECHO_C" >&6
30176 cat >conftest.$ac_ext <<_ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h. */
30182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30184 #define $ac_func innocuous_$ac_func
30186 /* System header to define __stub macros and hopefully few prototypes,
30187 which can conflict with char $ac_func (); below.
30188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30189 <limits.h> exists even on freestanding compilers. */
30192 # include <limits.h>
30194 # include <assert.h>
30199 /* Override any GCC internal prototype to avoid an error.
30200 Use char because int might match the return type of a GCC
30201 builtin and then its argument prototype would still apply. */
30206 /* The GNU C library defines this for functions which it implements
30207 to always fail with ENOSYS. Some functions are actually named
30208 something starting with __ and the normal name is an alias. */
30209 #if defined __stub_$ac_func || defined __stub___$ac_func
30216 return $ac_func ();
30221 rm -f conftest.$ac_objext conftest$ac_exeext
30222 if { (ac_try="$ac_link"
30223 case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_link") 2>conftest.er1
30230 grep -v '^ *+' conftest.er1 >conftest.err
30232 cat conftest.err >&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); } &&
30235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30236 { (case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest$ac_exeext'
30246 { (case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_try") 2>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 eval "$as_ac_var=yes"
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30260 eval "$as_ac_var=no"
30263 rm -f core conftest.err conftest.$ac_objext \
30264 conftest$ac_exeext conftest.$ac_ext
30266 ac_res=`eval echo '${'$as_ac_var'}'`
30267 { echo "$as_me:$LINENO: result: $ac_res" >&5
30268 echo "${ECHO_T}$ac_res" >&6; }
30269 if test `eval echo '${'$as_ac_var'}'` = yes; then
30270 cat >>confdefs.h <<_ACEOF
30271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30282 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30290 cat >conftest.$ac_ext <<_ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h. */
30296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30298 #define $ac_func innocuous_$ac_func
30300 /* System header to define __stub macros and hopefully few prototypes,
30301 which can conflict with char $ac_func (); below.
30302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30303 <limits.h> exists even on freestanding compilers. */
30306 # include <limits.h>
30308 # include <assert.h>
30313 /* Override any GCC internal prototype to avoid an error.
30314 Use char because int might match the return type of a GCC
30315 builtin and then its argument prototype would still apply. */
30320 /* The GNU C library defines this for functions which it implements
30321 to always fail with ENOSYS. Some functions are actually named
30322 something starting with __ and the normal name is an alias. */
30323 #if defined __stub_$ac_func || defined __stub___$ac_func
30330 return $ac_func ();
30335 rm -f conftest.$ac_objext conftest$ac_exeext
30336 if { (ac_try="$ac_link"
30337 case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_link") 2>conftest.er1
30344 grep -v '^ *+' conftest.er1 >conftest.err
30346 cat conftest.err >&5
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); } &&
30349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30350 { (case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_try") 2>&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
30360 { (case "(($ac_try" in
30361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30362 *) ac_try_echo=$ac_try;;
30364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30365 (eval "$ac_try") 2>&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); }; }; then
30369 eval "$as_ac_var=yes"
30371 echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30374 eval "$as_ac_var=no"
30377 rm -f core conftest.err conftest.$ac_objext \
30378 conftest$ac_exeext conftest.$ac_ext
30380 ac_res=`eval echo '${'$as_ac_var'}'`
30381 { echo "$as_me:$LINENO: result: $ac_res" >&5
30382 echo "${ECHO_T}$ac_res" >&6; }
30383 if test `eval echo '${'$as_ac_var'}'` = yes; then
30384 cat >>confdefs.h <<_ACEOF
30385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30392 # If resolver functions are not in libc check for -lnsl or -lresolv.
30393 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30394 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30395 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 cat >conftest.$ac_ext <<_ACEOF
30401 cat confdefs.h >>conftest.$ac_ext
30402 cat >>conftest.$ac_ext <<_ACEOF
30403 /* end confdefs.h. */
30404 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30406 #define gethostbyname_r innocuous_gethostbyname_r
30408 /* System header to define __stub macros and hopefully few prototypes,
30409 which can conflict with char gethostbyname_r (); below.
30410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30411 <limits.h> exists even on freestanding compilers. */
30414 # include <limits.h>
30416 # include <assert.h>
30419 #undef gethostbyname_r
30421 /* Override any GCC internal prototype to avoid an error.
30422 Use char because int might match the return type of a GCC
30423 builtin and then its argument prototype would still apply. */
30427 char gethostbyname_r ();
30428 /* The GNU C library defines this for functions which it implements
30429 to always fail with ENOSYS. Some functions are actually named
30430 something starting with __ and the normal name is an alias. */
30431 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30438 return gethostbyname_r ();
30443 rm -f conftest.$ac_objext conftest$ac_exeext
30444 if { (ac_try="$ac_link"
30445 case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_link") 2>conftest.er1
30452 grep -v '^ *+' conftest.er1 >conftest.err
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } &&
30457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest$ac_exeext'
30468 { (case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_try") 2>&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 ac_cv_func_gethostbyname_r=yes
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_cv_func_gethostbyname_r=no
30485 rm -f core conftest.err conftest.$ac_objext \
30486 conftest$ac_exeext conftest.$ac_ext
30488 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30489 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30490 if test $ac_cv_func_gethostbyname_r = yes; then
30491 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30492 echo "${ECHO_T}using libc's resolver" >&6; }
30495 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30496 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30497 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30500 ac_check_lib_save_LIBS=$LIBS
30502 cat >conftest.$ac_ext <<_ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h. */
30509 /* Override any GCC internal prototype to avoid an error.
30510 Use char because int might match the return type of a GCC
30511 builtin and then its argument prototype would still apply. */
30515 char gethostbyname_r ();
30519 return gethostbyname_r ();
30524 rm -f conftest.$ac_objext conftest$ac_exeext
30525 if { (ac_try="$ac_link"
30526 case "(($ac_try" in
30527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528 *) ac_try_echo=$ac_try;;
30530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531 (eval "$ac_link") 2>conftest.er1
30533 grep -v '^ *+' conftest.er1 >conftest.err
30535 cat conftest.err >&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); } &&
30538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30539 { (case "(($ac_try" in
30540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541 *) ac_try_echo=$ac_try;;
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544 (eval "$ac_try") 2>&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; } &&
30548 { ac_try='test -s conftest$ac_exeext'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; }; then
30558 ac_cv_lib_nsl_gethostbyname_r=yes
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30563 ac_cv_lib_nsl_gethostbyname_r=no
30566 rm -f core conftest.err conftest.$ac_objext \
30567 conftest$ac_exeext conftest.$ac_ext
30568 LIBS=$ac_check_lib_save_LIBS
30570 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30571 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30572 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30573 cat >>confdefs.h <<_ACEOF
30574 #define HAVE_LIBNSL 1
30582 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30583 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30584 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 ac_check_lib_save_LIBS=$LIBS
30588 LIBS="-lresolv $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30596 /* Override any GCC internal prototype to avoid an error.
30597 Use char because int might match the return type of a GCC
30598 builtin and then its argument prototype would still apply. */
30602 char gethostbyname_r ();
30606 return gethostbyname_r ();
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (ac_try="$ac_link"
30613 case "(($ac_try" in
30614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615 *) ac_try_echo=$ac_try;;
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618 (eval "$ac_link") 2>conftest.er1
30620 grep -v '^ *+' conftest.er1 >conftest.err
30622 cat conftest.err >&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
30625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30626 { (case "(($ac_try" in
30627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_try") 2>&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; } &&
30635 { ac_try='test -s conftest$ac_exeext'
30636 { (case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_try") 2>&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; }; then
30645 ac_cv_lib_resolv_gethostbyname_r=yes
30647 echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.$ac_ext >&5
30650 ac_cv_lib_resolv_gethostbyname_r=no
30653 rm -f core conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30657 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30658 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30659 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30660 cat >>confdefs.h <<_ACEOF
30661 #define HAVE_LIBRESOLV 1
30664 LIBS="-lresolv $LIBS"
30674 for ac_func in inet_pton
30676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
30682 cat >conftest.$ac_ext <<_ACEOF
30685 cat confdefs.h >>conftest.$ac_ext
30686 cat >>conftest.$ac_ext <<_ACEOF
30687 /* end confdefs.h. */
30688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30690 #define $ac_func innocuous_$ac_func
30692 /* System header to define __stub macros and hopefully few prototypes,
30693 which can conflict with char $ac_func (); below.
30694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30695 <limits.h> exists even on freestanding compilers. */
30698 # include <limits.h>
30700 # include <assert.h>
30705 /* Override any GCC internal prototype to avoid an error.
30706 Use char because int might match the return type of a GCC
30707 builtin and then its argument prototype would still apply. */
30712 /* The GNU C library defines this for functions which it implements
30713 to always fail with ENOSYS. Some functions are actually named
30714 something starting with __ and the normal name is an alias. */
30715 #if defined __stub_$ac_func || defined __stub___$ac_func
30722 return $ac_func ();
30727 rm -f conftest.$ac_objext conftest$ac_exeext
30728 if { (ac_try="$ac_link"
30729 case "(($ac_try" in
30730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30731 *) ac_try_echo=$ac_try;;
30733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30734 (eval "$ac_link") 2>conftest.er1
30736 grep -v '^ *+' conftest.er1 >conftest.err
30738 cat conftest.err >&5
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } &&
30741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; } &&
30751 { ac_try='test -s conftest$ac_exeext'
30752 { (case "(($ac_try" in
30753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754 *) ac_try_echo=$ac_try;;
30756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30757 (eval "$ac_try") 2>&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); }; }; then
30761 eval "$as_ac_var=yes"
30763 echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30766 eval "$as_ac_var=no"
30769 rm -f core conftest.err conftest.$ac_objext \
30770 conftest$ac_exeext conftest.$ac_ext
30772 ac_res=`eval echo '${'$as_ac_var'}'`
30773 { echo "$as_me:$LINENO: result: $ac_res" >&5
30774 echo "${ECHO_T}$ac_res" >&6; }
30775 if test `eval echo '${'$as_ac_var'}'` = yes; then
30776 cat >>confdefs.h <<_ACEOF
30777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30779 cat >>confdefs.h <<\_ACEOF
30780 #define HAVE_INET_PTON 1
30787 for ac_func in inet_ntop
30789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30795 cat >conftest.$ac_ext <<_ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h. */
30801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30803 #define $ac_func innocuous_$ac_func
30805 /* System header to define __stub macros and hopefully few prototypes,
30806 which can conflict with char $ac_func (); below.
30807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808 <limits.h> exists even on freestanding compilers. */
30811 # include <limits.h>
30813 # include <assert.h>
30818 /* Override any GCC internal prototype to avoid an error.
30819 Use char because int might match the return type of a GCC
30820 builtin and then its argument prototype would still apply. */
30825 /* The GNU C library defines this for functions which it implements
30826 to always fail with ENOSYS. Some functions are actually named
30827 something starting with __ and the normal name is an alias. */
30828 #if defined __stub_$ac_func || defined __stub___$ac_func
30835 return $ac_func ();
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844 *) ac_try_echo=$ac_try;;
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847 (eval "$ac_link") 2>conftest.er1
30849 grep -v '^ *+' conftest.er1 >conftest.err
30851 cat conftest.err >&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } &&
30854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
30865 { (case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_try") 2>&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; }; then
30874 eval "$as_ac_var=yes"
30876 echo "$as_me: failed program was:" >&5
30877 sed 's/^/| /' conftest.$ac_ext >&5
30879 eval "$as_ac_var=no"
30882 rm -f core conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
30885 ac_res=`eval echo '${'$as_ac_var'}'`
30886 { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30888 if test `eval echo '${'$as_ac_var'}'` = yes; then
30889 cat >>confdefs.h <<_ACEOF
30890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30892 cat >>confdefs.h <<\_ACEOF
30893 #define HAVE_INET_NTOP 1
30900 for ac_func in gethostbyname2
30902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30916 #define $ac_func innocuous_$ac_func
30918 /* System header to define __stub macros and hopefully few prototypes,
30919 which can conflict with char $ac_func (); below.
30920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30921 <limits.h> exists even on freestanding compilers. */
30924 # include <limits.h>
30926 # include <assert.h>
30931 /* Override any GCC internal prototype to avoid an error.
30932 Use char because int might match the return type of a GCC
30933 builtin and then its argument prototype would still apply. */
30938 /* The GNU C library defines this for functions which it implements
30939 to always fail with ENOSYS. Some functions are actually named
30940 something starting with __ and the normal name is an alias. */
30941 #if defined __stub_$ac_func || defined __stub___$ac_func
30948 return $ac_func ();
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_link") 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest$ac_exeext'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 eval "$as_ac_var=yes"
30989 echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 eval "$as_ac_var=no"
30995 rm -f core conftest.err conftest.$ac_objext \
30996 conftest$ac_exeext conftest.$ac_ext
30998 ac_res=`eval echo '${'$as_ac_var'}'`
30999 { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31001 if test `eval echo '${'$as_ac_var'}'` = yes; then
31002 cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31005 cat >>confdefs.h <<\_ACEOF
31006 #define HAVE_GETHOSTBYNAME2 1
31013 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31014 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31015 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31016 echo $ECHO_N "(cached) $ECHO_C" >&6
31018 cat >conftest.$ac_ext <<_ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h. */
31024 #include <sys/socket.h>
31028 struct sockaddr s; s.sa_len;
31033 rm -f conftest.$ac_objext
31034 if { (ac_try="$ac_compile"
31035 case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040 (eval "$ac_compile") 2>conftest.er1
31042 grep -v '^ *+' conftest.er1 >conftest.err
31044 cat conftest.err >&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } &&
31047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31048 { (case "(($ac_try" in
31049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050 *) ac_try_echo=$ac_try;;
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053 (eval "$ac_try") 2>&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; } &&
31057 { ac_try='test -s conftest.$ac_objext'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 ac_cv_struct_sockaddr_sa_len=yes
31069 echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31072 ac_cv_struct_sockaddr_sa_len=no
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31078 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31080 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31082 cat >>confdefs.h <<\_ACEOF
31083 #define HAVE_SA_LEN 1
31092 for ac_func in strftime
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 cat >conftest.$ac_ext <<_ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h. */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108 #define $ac_func innocuous_$ac_func
31110 /* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31116 # include <limits.h>
31118 # include <assert.h>
31123 /* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
31130 /* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31140 return $ac_func ();
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
31154 grep -v '^ *+' conftest.er1 >conftest.err
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
31179 eval "$as_ac_var=yes"
31181 echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31184 eval "$as_ac_var=no"
31187 rm -f core conftest.err conftest.$ac_objext \
31188 conftest$ac_exeext conftest.$ac_ext
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31199 # strftime is in -lintl on SCO UNIX.
31200 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31201 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31202 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31205 ac_check_lib_save_LIBS=$LIBS
31206 LIBS="-lintl $LIBS"
31207 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31214 /* Override any GCC internal prototype to avoid an error.
31215 Use char because int might match the return type of a GCC
31216 builtin and then its argument prototype would still apply. */
31224 return strftime ();
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
31231 case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_link") 2>conftest.er1
31238 grep -v '^ *+' conftest.er1 >conftest.err
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; } &&
31253 { ac_try='test -s conftest$ac_exeext'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
31263 ac_cv_lib_intl_strftime=yes
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_cv_lib_intl_strftime=no
31271 rm -f core conftest.err conftest.$ac_objext \
31272 conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31275 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31276 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31277 if test $ac_cv_lib_intl_strftime = yes; then
31278 cat >>confdefs.h <<\_ACEOF
31279 #define HAVE_STRFTIME 1
31282 LIBS="-lintl $LIBS"
31289 for ac_func in vprintf
31291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31295 echo $ECHO_N "(cached) $ECHO_C" >&6
31297 cat >conftest.$ac_ext <<_ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h. */
31303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31305 #define $ac_func innocuous_$ac_func
31307 /* System header to define __stub macros and hopefully few prototypes,
31308 which can conflict with char $ac_func (); below.
31309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31310 <limits.h> exists even on freestanding compilers. */
31313 # include <limits.h>
31315 # include <assert.h>
31320 /* Override any GCC internal prototype to avoid an error.
31321 Use char because int might match the return type of a GCC
31322 builtin and then its argument prototype would still apply. */
31327 /* The GNU C library defines this for functions which it implements
31328 to always fail with ENOSYS. Some functions are actually named
31329 something starting with __ and the normal name is an alias. */
31330 #if defined __stub_$ac_func || defined __stub___$ac_func
31337 return $ac_func ();
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (ac_try="$ac_link"
31344 case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_link") 2>conftest.er1
31351 grep -v '^ *+' conftest.er1 >conftest.err
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest$ac_exeext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 eval "$as_ac_var=yes"
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 eval "$as_ac_var=no"
31384 rm -f core conftest.err conftest.$ac_objext \
31385 conftest$ac_exeext conftest.$ac_ext
31387 ac_res=`eval echo '${'$as_ac_var'}'`
31388 { echo "$as_me:$LINENO: result: $ac_res" >&5
31389 echo "${ECHO_T}$ac_res" >&6; }
31390 if test `eval echo '${'$as_ac_var'}'` = yes; then
31391 cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31395 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31396 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31397 if test "${ac_cv_func__doprnt+set}" = set; then
31398 echo $ECHO_N "(cached) $ECHO_C" >&6
31400 cat >conftest.$ac_ext <<_ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31406 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31408 #define _doprnt innocuous__doprnt
31410 /* System header to define __stub macros and hopefully few prototypes,
31411 which can conflict with char _doprnt (); below.
31412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31413 <limits.h> exists even on freestanding compilers. */
31416 # include <limits.h>
31418 # include <assert.h>
31423 /* Override any GCC internal prototype to avoid an error.
31424 Use char because int might match the return type of a GCC
31425 builtin and then its argument prototype would still apply. */
31430 /* The GNU C library defines this for functions which it implements
31431 to always fail with ENOSYS. Some functions are actually named
31432 something starting with __ and the normal name is an alias. */
31433 #if defined __stub__doprnt || defined __stub____doprnt
31445 rm -f conftest.$ac_objext conftest$ac_exeext
31446 if { (ac_try="$ac_link"
31447 case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_link") 2>conftest.er1
31454 grep -v '^ *+' conftest.er1 >conftest.err
31456 cat conftest.err >&5
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); } &&
31459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31460 { (case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_try") 2>&5
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; } &&
31469 { ac_try='test -s conftest$ac_exeext'
31470 { (case "(($ac_try" in
31471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472 *) ac_try_echo=$ac_try;;
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475 (eval "$ac_try") 2>&5
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; }; then
31479 ac_cv_func__doprnt=yes
31481 echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31484 ac_cv_func__doprnt=no
31487 rm -f core conftest.err conftest.$ac_objext \
31488 conftest$ac_exeext conftest.$ac_ext
31490 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31491 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31492 if test $ac_cv_func__doprnt = yes; then
31494 cat >>confdefs.h <<\_ACEOF
31495 #define HAVE_DOPRNT 1
31504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31505 # for constant arguments. Useless!
31506 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31507 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31508 if test "${ac_cv_working_alloca_h+set}" = set; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31511 cat >conftest.$ac_ext <<_ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h. */
31517 #include <alloca.h>
31521 char *p = (char *) alloca (2 * sizeof (int));
31527 rm -f conftest.$ac_objext conftest$ac_exeext
31528 if { (ac_try="$ac_link"
31529 case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_link") 2>conftest.er1
31536 grep -v '^ *+' conftest.er1 >conftest.err
31538 cat conftest.err >&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); } &&
31541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest$ac_exeext'
31552 { (case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_try") 2>&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 ac_cv_working_alloca_h=yes
31563 echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31566 ac_cv_working_alloca_h=no
31569 rm -f core conftest.err conftest.$ac_objext \
31570 conftest$ac_exeext conftest.$ac_ext
31572 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31574 if test $ac_cv_working_alloca_h = yes; then
31576 cat >>confdefs.h <<\_ACEOF
31577 #define HAVE_ALLOCA_H 1
31582 { echo "$as_me:$LINENO: checking for alloca" >&5
31583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31584 if test "${ac_cv_func_alloca_works+set}" = set; then
31585 echo $ECHO_N "(cached) $ECHO_C" >&6
31587 cat >conftest.$ac_ext <<_ACEOF
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h. */
31594 # define alloca __builtin_alloca
31597 # include <malloc.h>
31598 # define alloca _alloca
31601 # include <alloca.h>
31606 # ifndef alloca /* predefined by HP cc +Olibcalls */
31617 char *p = (char *) alloca (1);
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (ac_try="$ac_link"
31625 case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630 (eval "$ac_link") 2>conftest.er1
31632 grep -v '^ *+' conftest.er1 >conftest.err
31634 cat conftest.err >&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); } &&
31637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31638 { (case "(($ac_try" in
31639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_try") 2>&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; } &&
31647 { ac_try='test -s conftest$ac_exeext'
31648 { (case "(($ac_try" in
31649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650 *) ac_try_echo=$ac_try;;
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653 (eval "$ac_try") 2>&5
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; }; then
31657 ac_cv_func_alloca_works=yes
31659 echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31662 ac_cv_func_alloca_works=no
31665 rm -f core conftest.err conftest.$ac_objext \
31666 conftest$ac_exeext conftest.$ac_ext
31668 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31669 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31671 if test $ac_cv_func_alloca_works = yes; then
31673 cat >>confdefs.h <<\_ACEOF
31674 #define HAVE_ALLOCA 1
31678 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31679 # that cause trouble. Some versions do not even contain alloca or
31680 # contain a buggy version. If you still want to use their alloca,
31681 # use ar to extract alloca.o from them instead of compiling alloca.c.
31683 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31685 cat >>confdefs.h <<\_ACEOF
31690 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31691 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31692 if test "${ac_cv_os_cray+set}" = set; then
31693 echo $ECHO_N "(cached) $ECHO_C" >&6
31695 cat >conftest.$ac_ext <<_ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31701 #if defined CRAY && ! defined CRAY2
31708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31709 $EGREP "webecray" >/dev/null 2>&1; then
31717 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31718 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31719 if test $ac_cv_os_cray = yes; then
31720 for ac_func in _getb67 GETB67 getb67; do
31721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31727 cat >conftest.$ac_ext <<_ACEOF
31730 cat confdefs.h >>conftest.$ac_ext
31731 cat >>conftest.$ac_ext <<_ACEOF
31732 /* end confdefs.h. */
31733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31735 #define $ac_func innocuous_$ac_func
31737 /* System header to define __stub macros and hopefully few prototypes,
31738 which can conflict with char $ac_func (); below.
31739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31740 <limits.h> exists even on freestanding compilers. */
31743 # include <limits.h>
31745 # include <assert.h>
31750 /* Override any GCC internal prototype to avoid an error.
31751 Use char because int might match the return type of a GCC
31752 builtin and then its argument prototype would still apply. */
31757 /* The GNU C library defines this for functions which it implements
31758 to always fail with ENOSYS. Some functions are actually named
31759 something starting with __ and the normal name is an alias. */
31760 #if defined __stub_$ac_func || defined __stub___$ac_func
31767 return $ac_func ();
31772 rm -f conftest.$ac_objext conftest$ac_exeext
31773 if { (ac_try="$ac_link"
31774 case "(($ac_try" in
31775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31776 *) ac_try_echo=$ac_try;;
31778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31779 (eval "$ac_link") 2>conftest.er1
31781 grep -v '^ *+' conftest.er1 >conftest.err
31783 cat conftest.err >&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); } &&
31786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; } &&
31796 { ac_try='test -s conftest$ac_exeext'
31797 { (case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_try") 2>&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; }; then
31806 eval "$as_ac_var=yes"
31808 echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31811 eval "$as_ac_var=no"
31814 rm -f core conftest.err conftest.$ac_objext \
31815 conftest$ac_exeext conftest.$ac_ext
31817 ac_res=`eval echo '${'$as_ac_var'}'`
31818 { echo "$as_me:$LINENO: result: $ac_res" >&5
31819 echo "${ECHO_T}$ac_res" >&6; }
31820 if test `eval echo '${'$as_ac_var'}'` = yes; then
31822 cat >>confdefs.h <<_ACEOF
31823 #define CRAY_STACKSEG_END $ac_func
31832 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31833 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31834 if test "${ac_cv_c_stack_direction+set}" = set; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 if test "$cross_compiling" = yes; then
31838 ac_cv_c_stack_direction=0
31840 cat >conftest.$ac_ext <<_ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 $ac_includes_default
31848 find_stack_direction ()
31850 static char *addr = 0;
31855 return find_stack_direction ();
31858 return (&dummy > addr) ? 1 : -1;
31864 return find_stack_direction () < 0;
31867 rm -f conftest$ac_exeext
31868 if { (ac_try="$ac_link"
31869 case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_link") 2>&5
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31878 { (case "(($ac_try" in
31879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880 *) ac_try_echo=$ac_try;;
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883 (eval "$ac_try") 2>&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); }; }; then
31887 ac_cv_c_stack_direction=1
31889 echo "$as_me: program exited with status $ac_status" >&5
31890 echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31893 ( exit $ac_status )
31894 ac_cv_c_stack_direction=-1
31896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31901 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31904 cat >>confdefs.h <<_ACEOF
31905 #define STACK_DIRECTION $ac_cv_c_stack_direction
31911 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31912 # -lseq on Dynix/PTX, -lgen on Unixware.
31913 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31914 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31915 if test "${ac_cv_search_getmntent+set}" = set; then
31916 echo $ECHO_N "(cached) $ECHO_C" >&6
31918 ac_func_search_save_LIBS=$LIBS
31919 cat >conftest.$ac_ext <<_ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h. */
31926 /* Override any GCC internal prototype to avoid an error.
31927 Use char because int might match the return type of a GCC
31928 builtin and then its argument prototype would still apply. */
31936 return getmntent ();
31941 for ac_lib in '' sun seq gen; do
31942 if test -z "$ac_lib"; then
31943 ac_res="none required"
31946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31948 rm -f conftest.$ac_objext conftest$ac_exeext
31949 if { (ac_try="$ac_link"
31950 case "(($ac_try" in
31951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952 *) ac_try_echo=$ac_try;;
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955 (eval "$ac_link") 2>conftest.er1
31957 grep -v '^ *+' conftest.er1 >conftest.err
31959 cat conftest.err >&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); } &&
31962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31963 { (case "(($ac_try" in
31964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965 *) ac_try_echo=$ac_try;;
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968 (eval "$ac_try") 2>&5
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; } &&
31972 { ac_try='test -s conftest$ac_exeext'
31973 { (case "(($ac_try" in
31974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31975 *) ac_try_echo=$ac_try;;
31977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31978 (eval "$ac_try") 2>&5
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982 ac_cv_search_getmntent=$ac_res
31984 echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31990 rm -f core conftest.err conftest.$ac_objext \
31992 if test "${ac_cv_search_getmntent+set}" = set; then
31996 if test "${ac_cv_search_getmntent+set}" = set; then
31999 ac_cv_search_getmntent=no
32001 rm conftest.$ac_ext
32002 LIBS=$ac_func_search_save_LIBS
32004 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32005 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32006 ac_res=$ac_cv_search_getmntent
32007 if test "$ac_res" != no; then
32008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32013 for ac_func in getmntent
32015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32021 cat >conftest.$ac_ext <<_ACEOF
32024 cat confdefs.h >>conftest.$ac_ext
32025 cat >>conftest.$ac_ext <<_ACEOF
32026 /* end confdefs.h. */
32027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32029 #define $ac_func innocuous_$ac_func
32031 /* System header to define __stub macros and hopefully few prototypes,
32032 which can conflict with char $ac_func (); below.
32033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32034 <limits.h> exists even on freestanding compilers. */
32037 # include <limits.h>
32039 # include <assert.h>
32044 /* Override any GCC internal prototype to avoid an error.
32045 Use char because int might match the return type of a GCC
32046 builtin and then its argument prototype would still apply. */
32051 /* The GNU C library defines this for functions which it implements
32052 to always fail with ENOSYS. Some functions are actually named
32053 something starting with __ and the normal name is an alias. */
32054 #if defined __stub_$ac_func || defined __stub___$ac_func
32061 return $ac_func ();
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (ac_try="$ac_link"
32068 case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_link") 2>conftest.er1
32075 grep -v '^ *+' conftest.er1 >conftest.err
32077 cat conftest.err >&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } &&
32080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32081 { (case "(($ac_try" in
32082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083 *) ac_try_echo=$ac_try;;
32085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086 (eval "$ac_try") 2>&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest$ac_exeext'
32091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; }; then
32100 eval "$as_ac_var=yes"
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 eval "$as_ac_var=no"
32108 rm -f core conftest.err conftest.$ac_objext \
32109 conftest$ac_exeext conftest.$ac_ext
32111 ac_res=`eval echo '${'$as_ac_var'}'`
32112 { echo "$as_me:$LINENO: result: $ac_res" >&5
32113 echo "${ECHO_T}$ac_res" >&6; }
32114 if test `eval echo '${'$as_ac_var'}'` = yes; then
32115 cat >>confdefs.h <<_ACEOF
32116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32123 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32124 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32125 if test "${ac_cv_func_closedir_void+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32128 if test "$cross_compiling" = yes; then
32129 ac_cv_func_closedir_void=yes
32131 cat >conftest.$ac_ext <<_ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h. */
32137 $ac_includes_default
32138 #include <$ac_header_dirent>
32139 #ifndef __cplusplus
32146 return closedir (opendir (".")) != 0;
32151 rm -f conftest$ac_exeext
32152 if { (ac_try="$ac_link"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_link") 2>&5
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; }; then
32171 ac_cv_func_closedir_void=no
32173 echo "$as_me: program exited with status $ac_status" >&5
32174 echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32177 ( exit $ac_status )
32178 ac_cv_func_closedir_void=yes
32180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32185 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32186 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32187 if test $ac_cv_func_closedir_void = yes; then
32189 cat >>confdefs.h <<\_ACEOF
32190 #define CLOSEDIR_VOID 1
32195 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32196 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32197 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32198 echo $ECHO_N "(cached) $ECHO_C" >&6
32200 if test "$cross_compiling" = yes; then
32201 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32202 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32203 { (exit 1); exit 1; }; }
32205 cat >conftest.$ac_ext <<_ACEOF
32208 cat confdefs.h >>conftest.$ac_ext
32209 cat >>conftest.$ac_ext <<_ACEOF
32210 /* end confdefs.h. */
32211 $ac_includes_default
32215 /* If this system has a BSD-style setpgrp which takes arguments,
32216 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32217 exit successfully. */
32218 return setpgrp (1,1) != -1;
32223 rm -f conftest$ac_exeext
32224 if { (ac_try="$ac_link"
32225 case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_link") 2>&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32234 { (case "(($ac_try" in
32235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236 *) ac_try_echo=$ac_try;;
32238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239 (eval "$ac_try") 2>&5
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 ac_cv_func_setpgrp_void=no
32245 echo "$as_me: program exited with status $ac_status" >&5
32246 echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32249 ( exit $ac_status )
32250 ac_cv_func_setpgrp_void=yes
32252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32257 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32258 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32259 if test $ac_cv_func_setpgrp_void = yes; then
32261 cat >>confdefs.h <<\_ACEOF
32262 #define SETPGRP_VOID 1
32266 # AC_FUNC_FNMATCH dnl use local version
32269 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32270 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32271 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
32274 ac_check_lib_save_LIBS=$LIBS
32275 LIBS="-lintl $LIBS"
32276 cat >conftest.$ac_ext <<_ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h. */
32283 /* Override any GCC internal prototype to avoid an error.
32284 Use char because int might match the return type of a GCC
32285 builtin and then its argument prototype would still apply. */
32298 rm -f conftest.$ac_objext conftest$ac_exeext
32299 if { (ac_try="$ac_link"
32300 case "(($ac_try" in
32301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302 *) ac_try_echo=$ac_try;;
32304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305 (eval "$ac_link") 2>conftest.er1
32307 grep -v '^ *+' conftest.er1 >conftest.err
32309 cat conftest.err >&5
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); } &&
32312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32313 { (case "(($ac_try" in
32314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32315 *) ac_try_echo=$ac_try;;
32317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32318 (eval "$ac_try") 2>&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest$ac_exeext'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 ac_cv_lib_intl_gettext=yes
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 ac_cv_lib_intl_gettext=no
32340 rm -f core conftest.err conftest.$ac_objext \
32341 conftest$ac_exeext conftest.$ac_ext
32342 LIBS=$ac_check_lib_save_LIBS
32344 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32345 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32346 if test $ac_cv_lib_intl_gettext = yes; then
32347 LIBS="$LIBS -lintl"
32353 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32354 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32355 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32358 ac_check_lib_save_LIBS=$LIBS
32360 cat >conftest.$ac_ext <<_ACEOF
32363 cat confdefs.h >>conftest.$ac_ext
32364 cat >>conftest.$ac_ext <<_ACEOF
32365 /* end confdefs.h. */
32367 /* Override any GCC internal prototype to avoid an error.
32368 Use char because int might match the return type of a GCC
32369 builtin and then its argument prototype would still apply. */
32377 return getpwnam ();
32382 rm -f conftest.$ac_objext conftest$ac_exeext
32383 if { (ac_try="$ac_link"
32384 case "(($ac_try" in
32385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386 *) ac_try_echo=$ac_try;;
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_link") 2>conftest.er1
32391 grep -v '^ *+' conftest.er1 >conftest.err
32393 cat conftest.err >&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } &&
32396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32397 { (case "(($ac_try" in
32398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399 *) ac_try_echo=$ac_try;;
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402 (eval "$ac_try") 2>&5
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); }; } &&
32406 { ac_try='test -s conftest$ac_exeext'
32407 { (case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_try") 2>&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); }; }; then
32416 ac_cv_lib_sun_getpwnam=yes
32418 echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.$ac_ext >&5
32421 ac_cv_lib_sun_getpwnam=no
32424 rm -f core conftest.err conftest.$ac_objext \
32425 conftest$ac_exeext conftest.$ac_ext
32426 LIBS=$ac_check_lib_save_LIBS
32428 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32429 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32430 if test $ac_cv_lib_sun_getpwnam = yes; then
32431 cat >>confdefs.h <<_ACEOF
32432 #define HAVE_LIBSUN 1
32441 for ac_header in zlib.h
32443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32450 ac_res=`eval echo '${'$as_ac_Header'}'`
32451 { echo "$as_me:$LINENO: result: $ac_res" >&5
32452 echo "${ECHO_T}$ac_res" >&6; }
32454 # Is the header compilable?
32455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32457 cat >conftest.$ac_ext <<_ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h. */
32463 $ac_includes_default
32464 #include <$ac_header>
32466 rm -f conftest.$ac_objext
32467 if { (ac_try="$ac_compile"
32468 case "(($ac_try" in
32469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470 *) ac_try_echo=$ac_try;;
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473 (eval "$ac_compile") 2>conftest.er1
32475 grep -v '^ *+' conftest.er1 >conftest.err
32477 cat conftest.err >&5
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); } &&
32480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest.$ac_objext'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; }; then
32500 ac_header_compiler=yes
32502 echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32505 ac_header_compiler=no
32508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32510 echo "${ECHO_T}$ac_header_compiler" >&6; }
32512 # Is the header present?
32513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32515 cat >conftest.$ac_ext <<_ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32521 #include <$ac_header>
32523 if { (ac_try="$ac_cpp conftest.$ac_ext"
32524 case "(($ac_try" in
32525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526 *) ac_try_echo=$ac_try;;
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32531 grep -v '^ *+' conftest.er1 >conftest.err
32533 cat conftest.err >&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } >/dev/null; then
32536 if test -s conftest.err; then
32537 ac_cpp_err=$ac_c_preproc_warn_flag
32538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32545 if test -z "$ac_cpp_err"; then
32546 ac_header_preproc=yes
32548 echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32551 ac_header_preproc=no
32554 rm -f conftest.err conftest.$ac_ext
32555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32556 echo "${ECHO_T}$ac_header_preproc" >&6; }
32558 # So? What about this header?
32559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32565 ac_header_preproc=yes
32568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 eval "$as_ac_Header=\$ac_header_preproc"
32590 ac_res=`eval echo '${'$as_ac_Header'}'`
32591 { echo "$as_me:$LINENO: result: $ac_res" >&5
32592 echo "${ECHO_T}$ac_res" >&6; }
32595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32596 cat >>confdefs.h <<_ACEOF
32597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32604 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32605 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32606 if test "${ac_cv_lib_z_deflate+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32609 ac_check_lib_save_LIBS=$LIBS
32611 cat >conftest.$ac_ext <<_ACEOF
32614 cat confdefs.h >>conftest.$ac_ext
32615 cat >>conftest.$ac_ext <<_ACEOF
32616 /* end confdefs.h. */
32618 /* Override any GCC internal prototype to avoid an error.
32619 Use char because int might match the return type of a GCC
32620 builtin and then its argument prototype would still apply. */
32633 rm -f conftest.$ac_objext conftest$ac_exeext
32634 if { (ac_try="$ac_link"
32635 case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_link") 2>conftest.er1
32642 grep -v '^ *+' conftest.er1 >conftest.err
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } &&
32647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32648 { (case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_try") 2>&5
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); }; } &&
32657 { ac_try='test -s conftest$ac_exeext'
32658 { (case "(($ac_try" in
32659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660 *) ac_try_echo=$ac_try;;
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663 (eval "$ac_try") 2>&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); }; }; then
32667 ac_cv_lib_z_deflate=yes
32669 echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32672 ac_cv_lib_z_deflate=no
32675 rm -f core conftest.err conftest.$ac_objext \
32676 conftest$ac_exeext conftest.$ac_ext
32677 LIBS=$ac_check_lib_save_LIBS
32679 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32680 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32681 if test $ac_cv_lib_z_deflate = yes; then
32686 if test x$FDLIBS = x-lz; then
32687 cat >>confdefs.h <<\_ACEOF
32688 #define HAVE_LIBZ 1
32695 # Check for ACL libraries
32698 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32699 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32700 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32701 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32702 echo $ECHO_N "(cached) $ECHO_C" >&6
32704 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32705 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32707 # Is the header compilable?
32708 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32709 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32710 cat >conftest.$ac_ext <<_ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h. */
32716 $ac_includes_default
32717 #include <sys/acl.h>
32719 rm -f conftest.$ac_objext
32720 if { (ac_try="$ac_compile"
32721 case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_compile") 2>conftest.er1
32728 grep -v '^ *+' conftest.er1 >conftest.err
32730 cat conftest.err >&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); } &&
32733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32734 { (case "(($ac_try" in
32735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736 *) ac_try_echo=$ac_try;;
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739 (eval "$ac_try") 2>&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest.$ac_objext'
32744 { (case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_try") 2>&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
32753 ac_header_compiler=yes
32755 echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32758 ac_header_compiler=no
32761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32763 echo "${ECHO_T}$ac_header_compiler" >&6; }
32765 # Is the header present?
32766 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32767 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32768 cat >conftest.$ac_ext <<_ACEOF
32771 cat confdefs.h >>conftest.$ac_ext
32772 cat >>conftest.$ac_ext <<_ACEOF
32773 /* end confdefs.h. */
32774 #include <sys/acl.h>
32776 if { (ac_try="$ac_cpp conftest.$ac_ext"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } >/dev/null; then
32789 if test -s conftest.err; then
32790 ac_cpp_err=$ac_c_preproc_warn_flag
32791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32798 if test -z "$ac_cpp_err"; then
32799 ac_header_preproc=yes
32801 echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32804 ac_header_preproc=no
32807 rm -f conftest.err conftest.$ac_ext
32808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32809 echo "${ECHO_T}$ac_header_preproc" >&6; }
32811 # So? What about this header?
32812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32814 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32815 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32816 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32817 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32818 ac_header_preproc=yes
32821 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32822 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32823 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
32824 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
32825 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32826 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32827 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
32828 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32829 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32830 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32831 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32832 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32836 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32837 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32838 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32841 ac_cv_header_sys_acl_h=$ac_header_preproc
32843 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32844 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32849 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32850 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32851 if test "${ac_cv_func_acl_get_file+set}" = set; then
32852 echo $ECHO_N "(cached) $ECHO_C" >&6
32854 cat >conftest.$ac_ext <<_ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32860 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32862 #define acl_get_file innocuous_acl_get_file
32864 /* System header to define __stub macros and hopefully few prototypes,
32865 which can conflict with char acl_get_file (); below.
32866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32867 <limits.h> exists even on freestanding compilers. */
32870 # include <limits.h>
32872 # include <assert.h>
32875 #undef acl_get_file
32877 /* Override any GCC internal prototype to avoid an error.
32878 Use char because int might match the return type of a GCC
32879 builtin and then its argument prototype would still apply. */
32883 char acl_get_file ();
32884 /* The GNU C library defines this for functions which it implements
32885 to always fail with ENOSYS. Some functions are actually named
32886 something starting with __ and the normal name is an alias. */
32887 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32894 return acl_get_file ();
32899 rm -f conftest.$ac_objext conftest$ac_exeext
32900 if { (ac_try="$ac_link"
32901 case "(($ac_try" in
32902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903 *) ac_try_echo=$ac_try;;
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 (eval "$ac_link") 2>conftest.er1
32908 grep -v '^ *+' conftest.er1 >conftest.err
32910 cat conftest.err >&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } &&
32913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32914 { (case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_try") 2>&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; } &&
32923 { ac_try='test -s conftest$ac_exeext'
32924 { (case "(($ac_try" in
32925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926 *) ac_try_echo=$ac_try;;
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929 (eval "$ac_try") 2>&5
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); }; }; then
32933 ac_cv_func_acl_get_file=yes
32935 echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32938 ac_cv_func_acl_get_file=no
32941 rm -f core conftest.err conftest.$ac_objext \
32942 conftest$ac_exeext conftest.$ac_ext
32944 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32945 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32946 if test $ac_cv_func_acl_get_file = yes; then
32949 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32950 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32951 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32952 echo $ECHO_N "(cached) $ECHO_C" >&6
32954 ac_check_lib_save_LIBS=$LIBS
32956 cat >conftest.$ac_ext <<_ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h. */
32963 /* Override any GCC internal prototype to avoid an error.
32964 Use char because int might match the return type of a GCC
32965 builtin and then its argument prototype would still apply. */
32969 char acl_get_file ();
32973 return acl_get_file ();
32978 rm -f conftest.$ac_objext conftest$ac_exeext
32979 if { (ac_try="$ac_link"
32980 case "(($ac_try" in
32981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982 *) ac_try_echo=$ac_try;;
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985 (eval "$ac_link") 2>conftest.er1
32987 grep -v '^ *+' conftest.er1 >conftest.err
32989 cat conftest.err >&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); } &&
32992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; } &&
33002 { ac_try='test -s conftest$ac_exeext'
33003 { (case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_try") 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 ac_cv_lib_acl_acl_get_file=yes
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33017 ac_cv_lib_acl_acl_get_file=no
33020 rm -f core conftest.err conftest.$ac_objext \
33021 conftest$ac_exeext conftest.$ac_ext
33022 LIBS=$ac_check_lib_save_LIBS
33024 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33025 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33026 if test $ac_cv_lib_acl_acl_get_file = yes; then
33027 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33029 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33030 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33031 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33034 ac_check_lib_save_LIBS=$LIBS
33036 cat >conftest.$ac_ext <<_ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h. */
33043 /* Override any GCC internal prototype to avoid an error.
33044 Use char because int might match the return type of a GCC
33045 builtin and then its argument prototype would still apply. */
33053 return acltotext ();
33058 rm -f conftest.$ac_objext conftest$ac_exeext
33059 if { (ac_try="$ac_link"
33060 case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_link") 2>conftest.er1
33067 grep -v '^ *+' conftest.er1 >conftest.err
33069 cat conftest.err >&5
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } &&
33072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33073 { (case "(($ac_try" in
33074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33075 *) ac_try_echo=$ac_try;;
33077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33078 (eval "$ac_try") 2>&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest$ac_exeext'
33083 { (case "(($ac_try" in
33084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085 *) ac_try_echo=$ac_try;;
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_try") 2>&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); }; }; then
33092 ac_cv_lib_sec_acltotext=yes
33094 echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33097 ac_cv_lib_sec_acltotext=no
33100 rm -f core conftest.err conftest.$ac_objext \
33101 conftest$ac_exeext conftest.$ac_ext
33102 LIBS=$ac_check_lib_save_LIBS
33104 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33105 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33106 if test $ac_cv_lib_sec_acltotext = yes; then
33107 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33116 if test $have_acl = yes; then
33117 cat >>confdefs.h <<\_ACEOF
33124 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33125 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33126 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33127 echo $ECHO_N "(cached) $ECHO_C" >&6
33129 ac_check_lib_save_LIBS=$LIBS
33130 LIBS="-lpthread $LIBS"
33131 cat >conftest.$ac_ext <<_ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33138 /* Override any GCC internal prototype to avoid an error.
33139 Use char because int might match the return type of a GCC
33140 builtin and then its argument prototype would still apply. */
33144 char pthread_create ();
33148 return pthread_create ();
33153 rm -f conftest.$ac_objext conftest$ac_exeext
33154 if { (ac_try="$ac_link"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_link") 2>conftest.er1
33162 grep -v '^ *+' conftest.er1 >conftest.err
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
33167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest$ac_exeext'
33178 { (case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_try") 2>&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_lib_pthread_pthread_create=yes
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33192 ac_cv_lib_pthread_pthread_create=no
33195 rm -f core conftest.err conftest.$ac_objext \
33196 conftest$ac_exeext conftest.$ac_ext
33197 LIBS=$ac_check_lib_save_LIBS
33199 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33200 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33201 if test $ac_cv_lib_pthread_pthread_create = yes; then
33202 PTHREAD_LIB="-lpthread"
33204 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33205 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33206 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33209 ac_check_lib_save_LIBS=$LIBS
33210 LIBS="-lpthreads $LIBS"
33211 cat >conftest.$ac_ext <<_ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h. */
33218 /* Override any GCC internal prototype to avoid an error.
33219 Use char because int might match the return type of a GCC
33220 builtin and then its argument prototype would still apply. */
33224 char pthread_create ();
33228 return pthread_create ();
33233 rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_link") 2>conftest.er1
33242 grep -v '^ *+' conftest.er1 >conftest.err
33244 cat conftest.err >&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
33247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33248 { (case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_try") 2>&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; } &&
33257 { ac_try='test -s conftest$ac_exeext'
33258 { (case "(($ac_try" in
33259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33260 *) ac_try_echo=$ac_try;;
33262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33263 (eval "$ac_try") 2>&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; }; then
33267 ac_cv_lib_pthreads_pthread_create=yes
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33272 ac_cv_lib_pthreads_pthread_create=no
33275 rm -f core conftest.err conftest.$ac_objext \
33276 conftest$ac_exeext conftest.$ac_ext
33277 LIBS=$ac_check_lib_save_LIBS
33279 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33280 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33281 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33282 PTHREAD_LIB="-lpthreads"
33284 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33285 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33286 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33289 ac_check_lib_save_LIBS=$LIBS
33291 cat >conftest.$ac_ext <<_ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h. */
33298 /* Override any GCC internal prototype to avoid an error.
33299 Use char because int might match the return type of a GCC
33300 builtin and then its argument prototype would still apply. */
33304 char pthread_create ();
33308 return pthread_create ();
33313 rm -f conftest.$ac_objext conftest$ac_exeext
33314 if { (ac_try="$ac_link"
33315 case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_link") 2>conftest.er1
33322 grep -v '^ *+' conftest.er1 >conftest.err
33324 cat conftest.err >&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } &&
33327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest$ac_exeext'
33338 { (case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_try") 2>&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 ac_cv_lib_c_r_pthread_create=yes
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 ac_cv_lib_c_r_pthread_create=no
33355 rm -f core conftest.err conftest.$ac_objext \
33356 conftest$ac_exeext conftest.$ac_ext
33357 LIBS=$ac_check_lib_save_LIBS
33359 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33360 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33361 if test $ac_cv_lib_c_r_pthread_create = yes; then
33362 PTHREAD_LIB="-lc_r"
33364 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33365 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33366 if test "${ac_cv_func_pthread_create+set}" = set; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33369 cat >conftest.$ac_ext <<_ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h. */
33375 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33377 #define pthread_create innocuous_pthread_create
33379 /* System header to define __stub macros and hopefully few prototypes,
33380 which can conflict with char pthread_create (); below.
33381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33382 <limits.h> exists even on freestanding compilers. */
33385 # include <limits.h>
33387 # include <assert.h>
33390 #undef pthread_create
33392 /* Override any GCC internal prototype to avoid an error.
33393 Use char because int might match the return type of a GCC
33394 builtin and then its argument prototype would still apply. */
33398 char pthread_create ();
33399 /* The GNU C library defines this for functions which it implements
33400 to always fail with ENOSYS. Some functions are actually named
33401 something starting with __ and the normal name is an alias. */
33402 #if defined __stub_pthread_create || defined __stub___pthread_create
33409 return pthread_create ();
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (ac_try="$ac_link"
33416 case "(($ac_try" in
33417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33418 *) ac_try_echo=$ac_try;;
33420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33421 (eval "$ac_link") 2>conftest.er1
33423 grep -v '^ *+' conftest.er1 >conftest.err
33425 cat conftest.err >&5
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); } &&
33428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33429 { (case "(($ac_try" in
33430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431 *) ac_try_echo=$ac_try;;
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434 (eval "$ac_try") 2>&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); }; } &&
33438 { ac_try='test -s conftest$ac_exeext'
33439 { (case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_try") 2>&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; }; then
33448 ac_cv_func_pthread_create=yes
33450 echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33453 ac_cv_func_pthread_create=no
33456 rm -f core conftest.err conftest.$ac_objext \
33457 conftest$ac_exeext conftest.$ac_ext
33459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33460 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33473 cat >>confdefs.h <<\_ACEOF
33479 CFLAGS=${CFLAGS--O}
33481 if test x$have_gcc = xyes ; then
33482 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33483 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33485 LDFLAGS=${LDFLAGS--O}
33486 DB_LIBS="${SQL_LFLAGS}"
33487 CPPFLAGS="$CPPFLAGS"
33515 # Finally we set appropriate distribution specific
33516 # variables and defaults
33518 # PFILES are platform specific files
33519 PFILES="platforms/Makefile"
33523 hostname=`uname -n | cut -d '.' -f 1`
33524 if test x${hostname} = x ; then
33525 hostname="localhost"
33527 case "$DISTNAME" in
33530 PSCMD="ps -e -o pid,comm"
33531 PFILES="${PFILES} \
33532 platforms/aix/Makefile"
33533 TAPEDRIVE="/dev/rmt0.1"
33537 PTHREAD_LIB="-lpthread -lexc"
33538 if test "${CC}" = "gcc" ; then
33545 TAPEDRIVE="/dev/nrmt0"
33548 DISTVER=`uname -a |awk '{print $3}'`
33549 TAPEDRIVE="/dev/nrmt0"
33550 PTHREAD_LIB="-pthread"
33551 CFLAGS="${CFLAGS} -pthread"
33552 PSCMD="ps -ax -o pid,command"
33555 PFILES="${PFILES} \
33556 platforms/bsdi/Makefile \
33557 platforms/bsdi/bacula-fd \
33558 platforms/bsdi/bacula-sd \
33559 platforms/bsdi/bacula-dir"
33560 largefile_support="yes"
33563 DISTVER=`uname -a |awk '{print $3}'`
33564 TAPEDRIVE="/dev/nrst0"
33566 WCFLAGS="-mwindows"
33567 WLDFLAGS="-mwindows"
33571 TAPEDRIVE="/dev/nst0"
33572 PSCMD="ps -e -o pid,command"
33574 PFILES="${PFILES} \
33575 platforms/darwin/Makefile"
33578 DISTVER=`cat /etc/debian_version`
33579 TAPEDRIVE="/dev/nrst0"
33580 PSCMD="ps -e -o pid,command"
33583 DISTVER=`uname -a |awk '{print $3}'`
33584 VER=`echo $DISTVER | cut -c 1`
33585 if test x$VER = x4 ; then
33586 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33587 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33591 TAPEDRIVE="/dev/nrsa0"
33592 PSCMD="ps -ax -o pid,command"
33593 PFILES="${PFILES} \
33594 platforms/freebsd/Makefile \
33595 platforms/freebsd/bacula-fd \
33596 platforms/freebsd/bacula-sd \
33597 platforms/freebsd/bacula-dir"
33598 largefile_support="yes"
33601 PSCMD="UNIX95=1 ps -e -o pid,comm"
33602 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33604 TAPEDRIVE="/dev/rmt/0hnb"
33605 PTHREAD_LIB="-lpthread"
33606 cat >>confdefs.h <<\_ACEOF
33607 #define _INCLUDE_LONGLONG 1
33613 TAPEDRIVE="/dev/rmt/0cbn"
33614 PSCMD="ps -e -o pid,comm"
33615 PFILES="${PFILES} \
33616 platforms/irix/Makefile \
33617 platforms/irix/bacula-fd \
33618 platforms/irix/bacula-sd \
33619 platforms/irix/bacula-dir"
33622 DISTVER=`uname -a |awk '{print $3}'`
33625 TAPEDRIVE="/dev/nrst0"
33626 PSCMD="ps -ax -o pid,command"
33627 PTHREAD_LIB="-pthread"
33628 CFLAGS="${CFLAGS} -pthread"
33631 DISTVER=`uname -a |awk '{print $3}'`
33634 TAPEDRIVE="/dev/nrst0"
33635 PSCMD="ps -ax -o pid,command"
33636 PTHREAD_LIB="-pthread"
33637 CFLAGS="${CFLAGS} -pthread"
33638 PFILES="${PFILES} \
33639 platforms/openbsd/Makefile \
33640 platforms/openbsd/bacula-fd \
33641 platforms/openbsd/bacula-sd \
33642 platforms/openbsd/bacula-dir"
33645 if test -f /etc/whitebox-release ; then
33646 f=/etc/whitebox-release
33648 f=/etc/redhat-release
33650 if test `cat $f | grep release |\
33651 cut -f 3 -d ' '`x = "Enterprise"x ; then
33652 DISTVER="Enterprise "`cat $f | grep release |\
33655 DISTVER=`cat /etc/redhat-release | grep release |\
33658 TAPEDRIVE="/dev/nst0"
33659 PSCMD="ps -e -o pid,command"
33660 PFILES="${PFILES} \
33661 platforms/redhat/Makefile \
33662 platforms/redhat/bacula-fd \
33663 platforms/redhat/bacula-sd \
33664 platforms/redhat/bacula-dir \
33665 platforms/redhat/bacula.spec \
33669 DISTVER=`cat /etc/mandrake-release | grep release |\
33671 TAPEDRIVE="/dev/nst0"
33672 PSCMD="ps -e -o pid,command"
33673 PFILES="${PFILES} \
33674 platforms/mandrake/Makefile \
33675 platforms/mandrake/bacula-fd \
33676 platforms/mandrake/bacula-sd \
33677 platforms/mandrake/bacula-dir \
33678 platforms/mandrake/bacula.spec \
33682 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33683 TAPEDRIVE="/dev/nst0"
33684 PSCMD="ps -e -o pid,command"
33685 PFILES="${PFILES} \
33686 platforms/gentoo/Makefile \
33687 platforms/gentoo/bacula-init \
33688 platforms/gentoo/bacula-fd \
33689 platforms/gentoo/bacula-sd \
33690 platforms/gentoo/bacula-dir"
33693 DISTVER=`cat /etc/slackware-version`
33694 TAPEDRIVE="/dev/nst0"
33695 PSCMD="ps -e -o pid,command"
33696 PFILES="${PFILES} \
33697 platforms/slackware/Makefile \
33698 platforms/slackware/rc.bacula-fd \
33699 platforms/slackware/rc.bacula-sd \
33700 platforms/slackware/rc.bacula-dir\
33701 platforms/slackware/functions.bacula"
33705 TAPEDRIVE="/dev/rmt/0cbn"
33706 PSCMD="ps -e -o pid,comm"
33707 PFILES="${PFILES} \
33708 platforms/solaris/Makefile \
33709 platforms/solaris/bacula-fd \
33710 platforms/solaris/bacula-sd \
33711 platforms/solaris/bacula-dir"
33712 if test x$DISTVER = x5.6 ; then
33713 cat >>confdefs.h <<\_ACEOF
33714 #define HAVE_OLD_SOCKOPT 1
33718 LIBS="$LIBS -lresolv"
33721 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33723 TAPEDRIVE="/dev/nst0"
33724 PSCMD="ps -e -o pid,command"
33725 PFILES="${PFILES} \
33726 platforms/suse/Makefile \
33727 platforms/suse/bacula-fd \
33728 platforms/suse/bacula-sd \
33729 platforms/suse/bacula-dir \
33730 platforms/suse/bacula \
33731 platforms/suse/bacula.spec"
33736 TAPEDRIVE="/dev/nst0"
33737 PSCMD="ps -e -o pid,command"
33738 PFILES="${PFILES} \
33739 platforms/suse/Makefile \
33740 platforms/suse/bacula-fd \
33741 platforms/suse/bacula-sd \
33742 platforms/suse/bacula-dir"
33746 TAPEDRIVE="/dev/nst0"
33749 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33755 LIBS="$PTHREAD_LIB $LIBS"
33757 cat >>confdefs.h <<_ACEOF
33761 cat >>confdefs.h <<_ACEOF
33772 MCOMMON=./autoconf/Make.common
33775 if test "x${subsysdir}" = "x${sbindir}" ; then
33778 echo "You have set both --sbindir and --with-subsys-dir"
33779 echo " equal to: ${subsysdir} "
33780 echo "This is not permitted. Please reconfigure."
33782 echo "Aborting configuration ..."
33788 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33790 ac_config_commands="$ac_config_commands default"
33792 cat >confcache <<\_ACEOF
33793 # This file is a shell script that caches the results of configure
33794 # tests run on this system so they can be shared between configure
33795 # scripts and configure runs, see configure's option --config-cache.
33796 # It is not useful on other systems. If it contains results you don't
33797 # want to keep, you may remove or edit it.
33799 # config.status only pays attention to the cache file if you give it
33800 # the --recheck option to rerun configure.
33802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33804 # following values.
33808 # The following way of writing the cache mishandles newlines in values,
33809 # but we know of no workaround that is simple, portable, and efficient.
33810 # So, we kill variables containing newlines.
33811 # Ultrix sh set writes to stderr and can't be redirected directly,
33812 # and sets the high bit in the cache file unless we assign to the vars.
33814 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33815 eval ac_val=\$$ac_var
33819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33823 _ | IFS | as_nl) ;; #(
33824 *) $as_unset $ac_var ;;
33830 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33831 *${as_nl}ac_space=\ *)
33832 # `set' does not quote correctly, so add quotes (double-quote
33833 # substitution turns \\\\ into \\, and sed turns \\ into \).
33836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33839 # `set' quotes correctly as required by POSIX, so do not add quotes.
33840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33849 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33851 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33853 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33854 if test -w "$cache_file"; then
33855 test "x$cache_file" != "x/dev/null" &&
33856 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33857 echo "$as_me: updating cache $cache_file" >&6;}
33858 cat confcache >$cache_file
33860 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33861 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33867 # Let make expand exec_prefix.
33868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33870 DEFS=-DHAVE_CONFIG_H
33874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33875 # 1. Remove the extension, and $U if already installed.
33876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33877 ac_i=`echo "$ac_i" | sed "$ac_script"`
33878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33879 # will be set to the directory where LIBOBJS objects are built.
33880 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33881 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33883 LIBOBJS=$ac_libobjs
33885 LTLIBOBJS=$ac_ltlibobjs
33889 : ${CONFIG_STATUS=./config.status}
33890 ac_clean_files_save=$ac_clean_files
33891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33894 cat >$CONFIG_STATUS <<_ACEOF
33896 # Generated by $as_me.
33897 # Run this file to recreate the current configuration.
33898 # Compiler output produced by configure, useful for debugging
33899 # configure, is in config.log if it exists.
33902 ac_cs_recheck=false
33904 SHELL=\${CONFIG_SHELL-$SHELL}
33907 cat >>$CONFIG_STATUS <<\_ACEOF
33908 ## --------------------- ##
33909 ## M4sh Initialization. ##
33910 ## --------------------- ##
33912 # Be Bourne compatible
33913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33916 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33917 # is contrary to our usage. Disable this feature.
33918 alias -g '${1+"$@"}'='"$@"'
33919 setopt NO_GLOB_SUBST
33921 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33923 BIN_SH=xpg4; export BIN_SH # for Tru64
33924 DUALCASE=1; export DUALCASE # for MKS sh
33928 # Avoid depending upon Character Ranges.
33929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33932 as_cr_digits='0123456789'
33933 as_cr_alnum=$as_cr_Letters$as_cr_digits
33935 # The user is always right.
33936 if test "${PATH_SEPARATOR+set}" != set; then
33937 echo "#! /bin/sh" >conf$$.sh
33938 echo "exit 0" >>conf$$.sh
33940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33948 # Support unset when possible.
33949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33957 # We need space, tab and new line, in precisely that order. Quoting is
33958 # there to prevent editors from complaining about space-tab.
33959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33960 # splitting by setting IFS to empty value.)
33965 # Find who we are. Look in the path if we contain no directory separator.
33967 *[\\/]* ) as_myself=$0 ;;
33968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33969 for as_dir in $PATH
33972 test -z "$as_dir" && as_dir=.
33973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33979 # We did not find ourselves, most probably we were run as `sh COMMAND'
33980 # in which case we are not to be found in the path.
33981 if test "x$as_myself" = x; then
33984 if test ! -f "$as_myself"; then
33985 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33986 { (exit 1); exit 1; }
33989 # Work around bugs in pre-3.0 UWIN ksh.
33990 for as_var in ENV MAIL MAILPATH
33991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34001 LC_TELEPHONE LC_TIME
34003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34004 eval $as_var=C; export $as_var
34006 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34010 # Required to use basename.
34011 if expr a : '\(a\)' >/dev/null 2>&1 &&
34012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34019 as_basename=basename
34025 # Name of the executable.
34026 as_me=`$as_basename -- "$0" ||
34027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34028 X"$0" : 'X\(//\)$' \| \
34029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34031 sed '/^.*\/\([^/][^/]*\)\/*$/{
34050 as_lineno_1=$LINENO
34051 as_lineno_2=$LINENO
34052 test "x$as_lineno_1" != "x$as_lineno_2" &&
34053 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34056 # uniformly replaced by the line number. The first 'sed' inserts a
34057 # line-number line after each line using $LINENO; the second 'sed'
34058 # does the real work. The second script uses 'N' to pair each
34059 # line-number line with the line containing $LINENO, and appends
34060 # trailing '-' during substitution so that $LINENO is not a special
34061 # case at line end.
34062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34063 # scripts with optimization help from Paolo Bonzini. Blame Lee
34064 # E. McMahon (1931-1989) for sed's syntax. :-)
34076 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34079 ' >$as_me.lineno &&
34080 chmod +x "$as_me.lineno" ||
34081 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34082 { (exit 1); exit 1; }; }
34084 # Don't try to exec as it changes $[0], causing all sort of problems
34085 # (the dirname of $[0] is not the place where we might find the
34086 # original and so on. Autoconf is especially sensitive to this).
34087 . "./$as_me.lineno"
34088 # Exit status is that of the last command.
34093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34099 ECHO_C= ECHO_N= ECHO_T=
34100 case `echo -n x` in
34102 case `echo 'x\c'` in
34103 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34110 if expr a : '\(a\)' >/dev/null 2>&1 &&
34111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34117 rm -f conf$$ conf$$.exe conf$$.file
34118 if test -d conf$$.dir; then
34119 rm -f conf$$.dir/conf$$.file
34125 if ln -s conf$$.file conf$$ 2>/dev/null; then
34127 # ... but there are two gotchas:
34128 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34129 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34130 # In both cases, we have to default to `cp -p'.
34131 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34133 elif ln conf$$.file conf$$ 2>/dev/null; then
34138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34139 rmdir conf$$.dir 2>/dev/null
34141 if mkdir -p . 2>/dev/null; then
34144 test -d ./-p && rmdir ./-p
34148 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34149 # systems may use methods other than mode bits to determine executability.
34150 cat >conf$$.file <<_ASEOF
34154 chmod +x conf$$.file
34155 if test -x conf$$.file >/dev/null 2>&1; then
34156 as_executable_p="test -x"
34162 # Sed expression to map a string onto a valid CPP name.
34163 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34165 # Sed expression to map a string onto a valid variable name.
34166 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34171 # Save the log message, to keep $[0] and so on meaningful, and to
34172 # report actual input values of CONFIG_FILES etc. instead of their
34173 # values after options handling.
34175 This file was extended by $as_me, which was
34176 generated by GNU Autoconf 2.60. Invocation command line was
34178 CONFIG_FILES = $CONFIG_FILES
34179 CONFIG_HEADERS = $CONFIG_HEADERS
34180 CONFIG_LINKS = $CONFIG_LINKS
34181 CONFIG_COMMANDS = $CONFIG_COMMANDS
34184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34189 cat >>$CONFIG_STATUS <<_ACEOF
34190 # Files that config.status was made for.
34191 config_files="$ac_config_files"
34192 config_headers="$ac_config_headers"
34193 config_commands="$ac_config_commands"
34197 cat >>$CONFIG_STATUS <<\_ACEOF
34199 \`$as_me' instantiates files from templates according to the
34200 current configuration.
34202 Usage: $0 [OPTIONS] [FILE]...
34204 -h, --help print this help, then exit
34205 -V, --version print version number, then exit
34206 -q, --quiet do not print progress messages
34207 -d, --debug don't remove temporary files
34208 --recheck update $as_me by reconfiguring in the same conditions
34209 --file=FILE[:TEMPLATE]
34210 instantiate the configuration file FILE
34211 --header=FILE[:TEMPLATE]
34212 instantiate the configuration header FILE
34214 Configuration files:
34217 Configuration headers:
34220 Configuration commands:
34223 Report bugs to <bug-autoconf@gnu.org>."
34226 cat >>$CONFIG_STATUS <<_ACEOF
34229 configured by $0, generated by GNU Autoconf 2.60,
34230 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34232 Copyright (C) 2006 Free Software Foundation, Inc.
34233 This config.status script is free software; the Free Software Foundation
34234 gives unlimited permission to copy, distribute and modify it."
34241 cat >>$CONFIG_STATUS <<\_ACEOF
34242 # If no file are specified by the user, then we need to provide default
34243 # value. By we need to know if files were specified by the user.
34249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34261 # Handling of the options.
34262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34265 echo "$ac_cs_version"; exit ;;
34266 --debug | --debu | --deb | --de | --d | -d )
34268 --file | --fil | --fi | --f )
34270 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34271 ac_need_defaults=false;;
34272 --header | --heade | --head | --hea )
34274 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34275 ac_need_defaults=false;;
34277 # Conflict between --help and --header
34278 { echo "$as_me: error: ambiguous option: $1
34279 Try \`$0 --help' for more information." >&2
34280 { (exit 1); exit 1; }; };;
34281 --help | --hel | -h )
34282 echo "$ac_cs_usage"; exit ;;
34283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34284 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34287 # This is an error.
34288 -*) { echo "$as_me: error: unrecognized option: $1
34289 Try \`$0 --help' for more information." >&2
34290 { (exit 1); exit 1; }; } ;;
34292 *) ac_config_targets="$ac_config_targets $1"
34293 ac_need_defaults=false ;;
34299 ac_configure_extra_args=
34301 if $ac_cs_silent; then
34303 ac_configure_extra_args="$ac_configure_extra_args --silent"
34307 cat >>$CONFIG_STATUS <<_ACEOF
34308 if \$ac_cs_recheck; then
34309 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34310 CONFIG_SHELL=$SHELL
34311 export CONFIG_SHELL
34312 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34321 ## Running $as_me. ##
34327 cat >>$CONFIG_STATUS <<_ACEOF
34331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34332 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34334 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34335 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34336 LINGUAS="${LINGUAS-%UNSET%}"
34341 cat >>$CONFIG_STATUS <<\_ACEOF
34343 # Handling of arguments.
34344 for ac_config_target in $ac_config_targets
34346 case $ac_config_target in
34347 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34348 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34349 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34351 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34352 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34353 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34354 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34355 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34356 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34357 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34358 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34359 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34360 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34361 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34362 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34363 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34364 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34365 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34366 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34367 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34368 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34369 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34370 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34371 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34372 "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34373 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34374 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34375 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34376 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34377 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34378 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34379 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34380 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34381 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34382 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34383 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34384 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34385 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34386 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34387 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34388 "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34389 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34390 "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34391 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34392 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34393 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34394 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34395 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34396 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34397 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34398 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34399 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34400 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34401 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34402 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34403 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34404 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34405 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34406 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34407 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34408 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34409 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34410 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34411 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34412 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34413 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34414 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34415 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34416 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34417 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34418 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34419 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34420 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34421 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34422 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34423 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34424 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34425 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34426 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34427 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34428 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34429 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34430 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34431 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34432 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34433 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34434 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34435 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34436 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34437 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34438 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34439 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34440 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34441 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34442 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34443 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34444 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34445 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34449 { (exit 1); exit 1; }; };;
34454 # If the user did not use the arguments to specify the items to instantiate,
34455 # then the envvar interface is used. Set only those that are not.
34456 # We use the long form for the default assignment because of an extremely
34457 # bizarre bug on SunOS 4.1.3.
34458 if $ac_need_defaults; then
34459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34464 # Have a temporary directory for convenience. Make it in the build tree
34465 # simply because there is no reason against having it here, and in addition,
34466 # creating and moving files from /tmp can sometimes cause problems.
34467 # Hook for its removal unless debugging.
34468 # Note that there is a small window in which the directory will not be cleaned:
34469 # after its creation but before its name has been assigned to `$tmp'.
34473 trap 'exit_status=$?
34474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34476 trap '{ (exit 1); exit 1; }' 1 2 13 15
34478 # Create a (secure) tmp directory for tmp files.
34481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34482 test -n "$tmp" && test -d "$tmp"
34485 tmp=./conf$$-$RANDOM
34486 (umask 077 && mkdir "$tmp")
34489 echo "$me: cannot create a temporary directory in ." >&2
34490 { (exit 1); exit 1; }
34494 # Set up the sed scripts for CONFIG_FILES section.
34497 # No need to generate the scripts if there are no CONFIG_FILES.
34498 # This happens for instance when ./config.status config.h
34499 if test -n "$CONFIG_FILES"; then
34503 # Create sed commands to just substitute file output variables.
34505 # Remaining file output variables are in a fragment that also has non-file
34511 for ac_last_try in false false false false false :; do
34512 cat >conf$$subs.sed <<_ACEOF
34513 SHELL!$SHELL$ac_delim
34514 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34515 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34516 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34517 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34518 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34519 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34520 exec_prefix!$exec_prefix$ac_delim
34521 prefix!$prefix$ac_delim
34522 program_transform_name!$program_transform_name$ac_delim
34523 bindir!$bindir$ac_delim
34524 sbindir!$sbindir$ac_delim
34525 libexecdir!$libexecdir$ac_delim
34526 datarootdir!$datarootdir$ac_delim
34527 datadir!$datadir$ac_delim
34528 sysconfdir!$sysconfdir$ac_delim
34529 sharedstatedir!$sharedstatedir$ac_delim
34530 localstatedir!$localstatedir$ac_delim
34531 includedir!$includedir$ac_delim
34532 oldincludedir!$oldincludedir$ac_delim
34533 docdir!$docdir$ac_delim
34534 infodir!$infodir$ac_delim
34535 htmldir!$htmldir$ac_delim
34536 dvidir!$dvidir$ac_delim
34537 pdfdir!$pdfdir$ac_delim
34538 psdir!$psdir$ac_delim
34539 libdir!$libdir$ac_delim
34540 localedir!$localedir$ac_delim
34541 mandir!$mandir$ac_delim
34542 DEFS!$DEFS$ac_delim
34543 ECHO_C!$ECHO_C$ac_delim
34544 ECHO_N!$ECHO_N$ac_delim
34545 ECHO_T!$ECHO_T$ac_delim
34546 LIBS!$LIBS$ac_delim
34547 build_alias!$build_alias$ac_delim
34548 host_alias!$host_alias$ac_delim
34549 target_alias!$target_alias$ac_delim
34550 BUILD_DIR!$BUILD_DIR$ac_delim
34551 TOP_DIR!$TOP_DIR$ac_delim
34552 TRUEPRG!$TRUEPRG$ac_delim
34553 FALSEPRG!$FALSEPRG$ac_delim
34554 VERSION!$VERSION$ac_delim
34555 DATE!$DATE$ac_delim
34556 LSMDATE!$LSMDATE$ac_delim
34558 CFLAGS!$CFLAGS$ac_delim
34559 LDFLAGS!$LDFLAGS$ac_delim
34560 CPPFLAGS!$CPPFLAGS$ac_delim
34561 ac_ct_CC!$ac_ct_CC$ac_delim
34562 EXEEXT!$EXEEXT$ac_delim
34563 OBJEXT!$OBJEXT$ac_delim
34565 CXXFLAGS!$CXXFLAGS$ac_delim
34566 ac_ct_CXX!$ac_ct_CXX$ac_delim
34568 GREP!$GREP$ac_delim
34569 EGREP!$EGREP$ac_delim
34570 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34571 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34572 INSTALL_DATA!$INSTALL_DATA$ac_delim
34573 RANLIB!$RANLIB$ac_delim
34578 ECHO!$ECHO$ac_delim
34582 OPENSSL!$OPENSSL$ac_delim
34585 MKISOFS!$MKISOFS$ac_delim
34586 PYTHON!$PYTHON$ac_delim
34587 GROWISOFS!$GROWISOFS$ac_delim
34588 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34589 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34590 PKGCONFIG!$PKGCONFIG$ac_delim
34591 WXCONFIG!$WXCONFIG$ac_delim
34592 WXFLAGS!$WXFLAGS$ac_delim
34593 CDRECORD!$CDRECORD$ac_delim
34594 PIDOF!$PIDOF$ac_delim
34596 ARFLAGS!$ARFLAGS$ac_delim
34597 MAKE_SHELL!$MAKE_SHELL$ac_delim
34598 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34599 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34600 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34601 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34602 build!$build$ac_delim
34603 build_cpu!$build_cpu$ac_delim
34604 build_vendor!$build_vendor$ac_delim
34605 build_os!$build_os$ac_delim
34606 host!$host$ac_delim
34609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34611 elif $ac_last_try; then
34612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34614 { (exit 1); exit 1; }; }
34616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34620 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34621 if test -n "$ac_eof"; then
34622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34623 ac_eof=`expr $ac_eof + 1`
34626 cat >>$CONFIG_STATUS <<_ACEOF
34627 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34629 /^[ ]*@MCOMMON@[ ]*$/{
34635 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34636 s/^/s,@/; s/!/@,|#_!!_#|/
34639 s/'"$ac_delim"'$/,g/; t
34641 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34642 ' >>$CONFIG_STATUS <conf$$subs.sed
34643 rm -f conf$$subs.sed
34644 cat >>$CONFIG_STATUS <<_ACEOF
34650 for ac_last_try in false false false false false :; do
34651 cat >conf$$subs.sed <<_ACEOF
34652 host_cpu!$host_cpu$ac_delim
34653 host_vendor!$host_vendor$ac_delim
34654 host_os!$host_os$ac_delim
34655 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34656 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34657 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34658 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34659 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34660 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34661 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34662 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34663 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34664 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34665 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34666 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34667 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34668 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34669 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34670 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34671 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34672 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34673 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34674 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34675 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34676 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34677 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34678 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34679 SET_MAKE!$SET_MAKE$ac_delim
34680 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34681 USE_NLS!$USE_NLS$ac_delim
34682 MSGFMT!$MSGFMT$ac_delim
34683 GMSGFMT!$GMSGFMT$ac_delim
34684 XGETTEXT!$XGETTEXT$ac_delim
34685 MSGMERGE!$MSGMERGE$ac_delim
34686 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34687 LIBICONV!$LIBICONV$ac_delim
34688 LTLIBICONV!$LTLIBICONV$ac_delim
34689 INTLLIBS!$INTLLIBS$ac_delim
34690 LIBINTL!$LIBINTL$ac_delim
34691 LTLIBINTL!$LTLIBINTL$ac_delim
34692 POSUB!$POSUB$ac_delim
34693 GLIBC2!$GLIBC2$ac_delim
34694 ALLOCA!$ALLOCA$ac_delim
34695 GLIBC21!$GLIBC21$ac_delim
34696 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34697 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34698 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34699 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34700 INTLBISON!$INTLBISON$ac_delim
34701 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34702 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34703 CATOBJEXT!$CATOBJEXT$ac_delim
34704 DATADIRNAME!$DATADIRNAME$ac_delim
34705 INSTOBJEXT!$INSTOBJEXT$ac_delim
34706 GENCAT!$GENCAT$ac_delim
34707 INTLOBJS!$INTLOBJS$ac_delim
34708 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34709 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34710 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34711 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34712 GNOME_LIBS!$GNOME_LIBS$ac_delim
34713 GNOME_DIR!$GNOME_DIR$ac_delim
34714 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34715 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34716 WX_DIR!$WX_DIR$ac_delim
34717 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34718 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34719 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34720 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34721 STATIC_FD!$STATIC_FD$ac_delim
34722 STATIC_SD!$STATIC_SD$ac_delim
34723 STATIC_DIR!$STATIC_DIR$ac_delim
34724 STATIC_CONS!$STATIC_CONS$ac_delim
34725 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34726 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34727 ALL_DIRS!$ALL_DIRS$ac_delim
34728 DIRD_DIR!$DIRD_DIR$ac_delim
34729 DIR_TOOLS!$DIR_TOOLS$ac_delim
34730 STORED_DIR!$STORED_DIR$ac_delim
34731 CONS_INC!$CONS_INC$ac_delim
34732 CONS_OBJ!$CONS_OBJ$ac_delim
34733 CONS_SRC!$CONS_SRC$ac_delim
34734 CONS_LIBS!$CONS_LIBS$ac_delim
34735 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34736 READLINE_SRC!$READLINE_SRC$ac_delim
34737 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34738 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34739 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34740 OPENSSL_INC!$OPENSSL_INC$ac_delim
34741 working_dir!$working_dir$ac_delim
34742 scriptdir!$scriptdir$ac_delim
34743 dump_email!$dump_email$ac_delim
34744 job_email!$job_email$ac_delim
34745 smtp_host!$smtp_host$ac_delim
34746 piddir!$piddir$ac_delim
34747 subsysdir!$subsysdir$ac_delim
34748 baseport!$baseport$ac_delim
34751 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34753 elif $ac_last_try; then
34754 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34755 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34756 { (exit 1); exit 1; }; }
34758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34762 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34763 if test -n "$ac_eof"; then
34764 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34765 ac_eof=`expr $ac_eof + 1`
34768 cat >>$CONFIG_STATUS <<_ACEOF
34769 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34773 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34774 s/^/s,@/; s/!/@,|#_!!_#|/
34777 s/'"$ac_delim"'$/,g/; t
34779 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34780 ' >>$CONFIG_STATUS <conf$$subs.sed
34781 rm -f conf$$subs.sed
34782 cat >>$CONFIG_STATUS <<_ACEOF
34788 for ac_last_try in false false false false false :; do
34789 cat >conf$$subs.sed <<_ACEOF
34790 dir_port!$dir_port$ac_delim
34791 fd_port!$fd_port$ac_delim
34792 sd_port!$sd_port$ac_delim
34793 dir_password!$dir_password$ac_delim
34794 fd_password!$fd_password$ac_delim
34795 sd_password!$sd_password$ac_delim
34796 mon_dir_password!$mon_dir_password$ac_delim
34797 mon_fd_password!$mon_fd_password$ac_delim
34798 mon_sd_password!$mon_sd_password$ac_delim
34799 dir_user!$dir_user$ac_delim
34800 dir_group!$dir_group$ac_delim
34801 sd_user!$sd_user$ac_delim
34802 sd_group!$sd_group$ac_delim
34803 fd_user!$fd_user$ac_delim
34804 fd_group!$fd_group$ac_delim
34805 SBINPERM!$SBINPERM$ac_delim
34806 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34807 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34808 SQL_BINDIR!$SQL_BINDIR$ac_delim
34809 cats!$cats$ac_delim
34810 DB_NAME!$DB_NAME$ac_delim
34811 GETCONF!$GETCONF$ac_delim
34812 XMKMF!$XMKMF$ac_delim
34813 X_CFLAGS!$X_CFLAGS$ac_delim
34814 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34815 X_LIBS!$X_LIBS$ac_delim
34816 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34817 LIBOBJS!$LIBOBJS$ac_delim
34818 FDLIBS!$FDLIBS$ac_delim
34819 DEBUG!$DEBUG$ac_delim
34820 DINCLUDE!$DINCLUDE$ac_delim
34821 DLIB!$DLIB$ac_delim
34822 DB_LIBS!$DB_LIBS$ac_delim
34823 WCFLAGS!$WCFLAGS$ac_delim
34824 WLDFLAGS!$WLDFLAGS$ac_delim
34825 WRAPLIBS!$WRAPLIBS$ac_delim
34826 OBJLIST!$OBJLIST$ac_delim
34827 hostname!$hostname$ac_delim
34828 TAPEDRIVE!$TAPEDRIVE$ac_delim
34829 PSCMD!$PSCMD$ac_delim
34830 WIN32!$WIN32$ac_delim
34831 MACOSX!$MACOSX$ac_delim
34832 DISTNAME!$DISTNAME$ac_delim
34833 DISTVER!$DISTVER$ac_delim
34834 LTLIBOBJS!$LTLIBOBJS$ac_delim
34837 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
34839 elif $ac_last_try; then
34840 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34841 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34842 { (exit 1); exit 1; }; }
34844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34848 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34849 if test -n "$ac_eof"; then
34850 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34851 ac_eof=`expr $ac_eof + 1`
34854 cat >>$CONFIG_STATUS <<_ACEOF
34855 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34860 s/^/s,@/; s/!/@,|#_!!_#|/
34863 s/'"$ac_delim"'$/,g/; t
34865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34866 ' >>$CONFIG_STATUS <conf$$subs.sed
34867 rm -f conf$$subs.sed
34868 cat >>$CONFIG_STATUS <<_ACEOF
34875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34877 # trailing colons and then remove the whole line if VPATH becomes empty
34878 # (actually we leave an empty line to preserve line numbers).
34879 if test "x$srcdir" = x.; then
34880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34881 s/:*\$(srcdir):*/:/
34882 s/:*\${srcdir}:*/:/
34884 s/^\([^=]*=[ ]*\):*/\1/
34890 cat >>$CONFIG_STATUS <<\_ACEOF
34891 fi # test -n "$CONFIG_FILES"
34894 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34897 :[FHLC]) ac_mode=$ac_tag; continue;;
34899 case $ac_mode$ac_tag in
34901 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34902 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34903 { (exit 1); exit 1; }; };;
34904 :[FH]-) ac_tag=-:-;;
34905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34922 -) ac_f="$tmp/stdin";;
34923 *) # Look for the file first in the build tree, then in the source tree
34924 # (if the path is not absolute). The absolute path cannot be DOS-style,
34925 # because $ac_f cannot contain `:'.
34929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34931 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34932 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34933 { (exit 1); exit 1; }; };;
34935 ac_file_inputs="$ac_file_inputs $ac_f"
34938 # Let's still pretend it is `configure' which instantiates (i.e., don't
34939 # use $as_me), people would be surprised to read:
34940 # /* config.h. Generated by config.status. */
34941 configure_input="Generated from "`IFS=:
34942 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34943 if test x"$ac_file" != x-; then
34944 configure_input="$ac_file. $configure_input"
34945 { echo "$as_me:$LINENO: creating $ac_file" >&5
34946 echo "$as_me: creating $ac_file" >&6;}
34950 *:-:* | *:-) cat >"$tmp/stdin";;
34955 ac_dir=`$as_dirname -- "$ac_file" ||
34956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34957 X"$ac_file" : 'X\(//\)[^/]' \| \
34958 X"$ac_file" : 'X\(//\)$' \| \
34959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34965 /^X\(\/\/\)[^/].*/{
34980 -*) as_dir=./$as_dir;;
34982 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34986 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34987 *) as_qdir=$as_dir;;
34989 as_dirs="'$as_qdir' $as_dirs"
34990 as_dir=`$as_dirname -- "$as_dir" ||
34991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34992 X"$as_dir" : 'X\(//\)[^/]' \| \
34993 X"$as_dir" : 'X\(//\)$' \| \
34994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35000 /^X\(\/\/\)[^/].*/{
35013 test -d "$as_dir" && break
35015 test -z "$as_dirs" || eval "mkdir $as_dirs"
35016 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35017 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35018 { (exit 1); exit 1; }; }; }
35022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35025 # A ".." for each directory in $ac_dir_suffix.
35026 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35027 case $ac_top_builddir_sub in
35028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35032 ac_abs_top_builddir=$ac_pwd
35033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35034 # for backward compatibility:
35035 ac_top_builddir=$ac_top_build_prefix
35038 .) # We are building in place.
35040 ac_top_srcdir=$ac_top_builddir_sub
35041 ac_abs_top_srcdir=$ac_pwd ;;
35042 [\\/]* | ?:[\\/]* ) # Absolute name.
35043 ac_srcdir=$srcdir$ac_dir_suffix;
35044 ac_top_srcdir=$srcdir
35045 ac_abs_top_srcdir=$srcdir ;;
35046 *) # Relative name.
35047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35048 ac_top_srcdir=$ac_top_build_prefix$srcdir
35049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35066 cat >>$CONFIG_STATUS <<\_ACEOF
35067 # If the template does not know about datarootdir, expand it.
35068 # FIXME: This hack should be removed a few years after 2.60.
35069 ac_datarootdir_hack=; ac_datarootdir_seen=
35071 case `sed -n '/datarootdir/ {
35080 ' $ac_file_inputs` in
35081 *datarootdir*) ac_datarootdir_seen=yes;;
35082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35083 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35086 cat >>$CONFIG_STATUS <<_ACEOF
35087 ac_datarootdir_hack='
35088 s&@datadir@&$datadir&g
35089 s&@docdir@&$docdir&g
35090 s&@infodir@&$infodir&g
35091 s&@localedir@&$localedir&g
35092 s&@mandir@&$mandir&g
35093 s&\\\${datarootdir}&$datarootdir&g' ;;
35097 # Neutralize VPATH when `$srcdir' = `.'.
35098 # Shell code in configure.ac might set extrasub.
35099 # FIXME: do we really want to maintain this feature?
35100 cat >>$CONFIG_STATUS <<_ACEOF
35104 cat >>$CONFIG_STATUS <<\_ACEOF
35106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35107 s&@configure_input@&$configure_input&;t t
35108 s&@top_builddir@&$ac_top_builddir_sub&;t t
35109 s&@srcdir@&$ac_srcdir&;t t
35110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35111 s&@top_srcdir@&$ac_top_srcdir&;t t
35112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35113 s&@builddir@&$ac_builddir&;t t
35114 s&@abs_builddir@&$ac_abs_builddir&;t t
35115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35116 s&@INSTALL@&$ac_INSTALL&;t t
35117 $ac_datarootdir_hack
35118 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35121 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35123 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35124 which seems to be undefined. Please make sure it is defined." >&5
35125 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35126 which seems to be undefined. Please make sure it is defined." >&2;}
35130 -) cat "$tmp/out"; rm -f "$tmp/out";;
35131 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35140 # Transform confdefs.h into a sed script `conftest.defines', that
35141 # substitutes the proper values into config.h.in to produce config.h.
35142 rm -f conftest.defines conftest.tail
35143 # First, append a space to every undef/define line, to ease matching.
35144 echo 's/$/ /' >conftest.defines
35145 # Then, protect against being on the right side of a sed subst, or in
35146 # an unquoted here document, in config.status. If some macros were
35147 # called several times there might be several #defines for the same
35148 # symbol, which is useless. But do not sort them, since the last
35149 # AC_DEFINE must be honored.
35150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35151 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35152 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35153 # PARAMS is the parameter list in the macro definition--in most cases, it's
35154 # just an empty string.
35155 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35156 ac_dB='\\)[ (].*,\\1define\\2'
35164 s/^[ ]*#[ ]*define[ ][ ]*//
35169 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35170 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35171 ' >>conftest.defines
35173 # Remove the space that was appended to ease matching.
35174 # Then replace #undef with comments. This is necessary, for
35175 # example, in the case of _POSIX_SOURCE, which is predefined and required
35176 # on some systems where configure will not decide to define it.
35177 # (The regexp can be short, since the line contains either #define or #undef.)
35179 s,^[ #]*u.*,/* & */,' >>conftest.defines
35181 # Break up conftest.defines:
35182 ac_max_sed_lines=50
35184 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35185 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35186 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35188 ac_in='$ac_file_inputs'
35189 ac_out='"$tmp/out1"'
35190 ac_nxt='"$tmp/out2"'
35194 # Write a here document:
35195 cat >>$CONFIG_STATUS <<_ACEOF
35196 # First, check the format of the line:
35197 cat >"\$tmp/defines.sed" <<\\CEOF
35198 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35199 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35203 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35205 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35206 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35207 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35208 grep . conftest.tail >/dev/null || break
35209 rm -f conftest.defines
35210 mv conftest.tail conftest.defines
35212 rm -f conftest.defines conftest.tail
35214 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35215 cat >>$CONFIG_STATUS <<\_ACEOF
35216 if test x"$ac_file" != x-; then
35217 echo "/* $configure_input */" >"$tmp/config.h"
35218 cat "$ac_result" >>"$tmp/config.h"
35219 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35220 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35221 echo "$as_me: $ac_file is unchanged" >&6;}
35224 mv "$tmp/config.h" $ac_file
35227 echo "/* $configure_input */"
35233 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35234 echo "$as_me: executing $ac_file commands" >&6;}
35239 case $ac_file$ac_mode in
35241 for ac_file in $CONFIG_FILES; do
35242 # Support "outfile[:infile[:infile...]]"
35244 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35246 # PO directories have a Makefile.in generated from Makefile.in.in.
35247 case "$ac_file" in */Makefile.in)
35248 # Adjust a relative srcdir.
35249 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35250 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35251 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35252 # In autoconf-2.13 it is called $ac_given_srcdir.
35253 # In autoconf-2.50 it is called $srcdir.
35254 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35255 case "$ac_given_srcdir" in
35256 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35257 /*) top_srcdir="$ac_given_srcdir" ;;
35258 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35260 # Treat a directory as a PO directory if and only if it has a
35261 # POTFILES.in file. This allows packages to have multiple PO
35262 # directories under different names or in different locations.
35263 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35264 rm -f "$ac_dir/POTFILES"
35265 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35266 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35267 POMAKEFILEDEPS="POTFILES.in"
35268 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35269 # on $ac_dir but don't depend on user-specified configuration
35271 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35272 # The LINGUAS file contains the set of available languages.
35273 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35274 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35276 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35277 # Hide the ALL_LINGUAS assigment from automake.
35278 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35279 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35281 # The set of available languages was given in configure.in.
35282 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35285 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35286 # Compute UPDATEPOFILES
35287 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35288 # Compute DUMMYPOFILES
35289 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35291 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35292 case "$ac_given_srcdir" in
35294 *) srcdirpre='$(srcdir)/' ;;
35300 for lang in $ALL_LINGUAS; do
35301 POFILES="$POFILES $srcdirpre$lang.po"
35302 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35303 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35304 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35306 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35307 # environment variable.
35309 if test -n "$ALL_LINGUAS"; then
35310 for presentlang in $ALL_LINGUAS; do
35312 if test "%UNSET%" != "$LINGUAS"; then
35313 desiredlanguages="$LINGUAS"
35315 desiredlanguages="$ALL_LINGUAS"
35317 for desiredlang in $desiredlanguages; do
35318 # Use the presentlang catalog if desiredlang is
35319 # a. equal to presentlang, or
35320 # b. a variant of presentlang (because in this case,
35321 # presentlang can be used as a fallback for messages
35322 # which are not translated in the desiredlang catalog).
35323 case "$desiredlang" in
35324 "$presentlang"*) useit=yes;;
35327 if test $useit = yes; then
35328 INST_LINGUAS="$INST_LINGUAS $presentlang"
35333 if test -n "$INST_LINGUAS"; then
35334 for lang in $INST_LINGUAS; do
35335 CATALOGS="$CATALOGS $lang.gmo"
35338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35339 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"
35340 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35341 if test -f "$f"; then
35343 *.orig | *.bak | *~) ;;
35344 *) cat "$f" >> "$ac_dir/Makefile" ;;
35352 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35359 { (exit 0); exit 0; }
35361 chmod +x $CONFIG_STATUS
35362 ac_clean_files=$ac_clean_files_save
35365 # configure is writing to config.log, and then calls config.status.
35366 # config.status does its own redirection, appending to config.log.
35367 # Unfortunately, on DOS this fails, as config.log is still kept open
35368 # by configure, so config.status won't be able to write to it; its
35369 # output is simply discarded. So we exec the FD to /dev/null,
35370 # effectively closing config.log, so it can be properly (re)opened and
35371 # appended to by config.status. When coming back to configure, we
35372 # need to make the FD available again.
35373 if test "$no_create" != yes; then
35375 ac_config_status_args=
35376 test "$silent" = yes &&
35377 ac_config_status_args="$ac_config_status_args --quiet"
35379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35382 # would make configure fail if this is the last instruction.
35383 $ac_cs_success || { (exit 1); exit 1; }
35388 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35389 chmod 755 dvd-handler dvd-simulator
35390 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35395 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35396 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35398 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35399 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35401 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35402 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35404 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35405 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35407 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35408 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35410 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35411 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35413 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35414 chmod 755 $c/sqlite
35417 chmod 755 src/win32/build-depkgs-mingw32
35419 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35420 largefile_support="yes"
35424 # A whole lot of hand springs to get the compiler version.
35425 # This is because gcc changed the output in version 3.0
35427 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35428 if test "x${CCVERSION}" = "x" ; then
35429 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35431 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35432 if test x"${CXXVERSION}" = x ; then
35433 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35436 if test "x${subsysdir}" = "x${sbindir}" ; then
35439 echo "You have set --sbindir and --with-subsys-dir"
35440 echo " both equal to: ${subsysdir} "
35441 echo " This is not permitted. Please reconfigure."
35443 echo "Aborting configuration ..."
35449 if test "x${db_name}" = "xInternal" ; then
35452 echo "You have not specified either --enable-client-only or one of the"
35453 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35454 echo " This is not permitted. Please reconfigure."
35456 echo "Aborting the configuration ..."
35463 Configuration on `date`:
35465 Host: $host -- ${DISTNAME} ${DISTVER}
35466 Bacula version: ${VERSION} (${DATE})
35467 Source code location: ${srcdir}
35468 Install binaries: ${sbindir}
35469 Install config files: ${sysconfdir}
35470 Scripts directory: ${scriptdir}
35471 Working directory: ${working_dir}
35472 PID directory: ${piddir}
35473 Subsys directory: ${subsysdir}
35474 Man directory: ${mandir}
35475 Data directory: ${datadir}
35476 C Compiler: ${CC} ${CCVERSION}
35477 C++ Compiler: ${CXX} ${CXXVERSION}
35478 Compiler flags: ${WCFLAGS} ${CFLAGS}
35479 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35481 Statically Linked Tools: ${support_static_tools}
35482 Statically Linked FD: ${support_static_fd}
35483 Statically Linked SD: ${support_static_sd}
35484 Statically Linked DIR: ${support_static_dir}
35485 Statically Linked CONS: ${support_static_cons}
35486 Database type: ${db_name}
35487 Database lib: ${DB_LIBS}
35489 Job Output Email: ${job_email}
35490 Traceback Email: ${dump_email}
35491 SMTP Host Address: ${smtp_host}
35493 Director Port: ${dir_port}
35494 File daemon Port: ${fd_port}
35495 Storage daemon Port: ${sd_port}
35497 Director User: ${dir_user}
35498 Director Group: ${dir_group}
35499 Storage Daemon User: ${sd_user}
35500 Storage DaemonGroup: ${sd_group}
35501 File Daemon User: ${fd_user}
35502 File Daemon Group: ${fd_group}
35504 SQL binaries Directory ${SQL_BINDIR}
35506 Large file support: $largefile_support
35507 Bacula conio support: ${got_conio} ${CONS_LIBS}
35508 readline support: ${got_readline} ${PRTREADLINE_SRC}
35509 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35510 TLS support: ${support_tls}
35511 Encryption support: ${support_crypto}
35512 ZLIB support: ${have_zlib}
35513 enable-smartalloc: ${support_smartalloc}
35514 enable-gnome: ${support_gnome} ${gnome_version}
35515 enable-wx-console: ${support_wx_console} ${wx_version}
35516 enable-tray-monitor: ${support_tray_monitor}
35517 client-only: ${build_client_only}
35518 build-dird: ${build_dird}
35519 build-stored: ${build_stored}
35520 ACL support: ${have_acl}
35521 Python support: ${support_python} ${PYTHON_LIBS}