2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
728 HAVE_FREEBSD_OS_FALSE
732 HAVE_OPENBSD_OS_FALSE
763 BUILD_INCLUDED_LIBINTL
770 INTL_LIBTOOL_SUFFIX_PREFIX
784 TRAY_MONITOR_CPPFLAGS
871 ac_subst_files='MCOMMON'
872 ac_precious_vars='build_alias
889 # Initialize some variables set by options.
891 ac_init_version=false
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name=s,x,x,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 # Accept the important Cygnus configure options, so we can diagnose typos.
953 case $ac_dashdash$ac_option in
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
975 cache_file=config.cache ;;
977 -datadir | --datadir | --datadi | --datad)
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
989 -disable-* | --disable-*)
990 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994 { (exit 1); exit 1; }; }
995 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996 eval enable_$ac_feature=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=\$ac_optarg ;;
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 htmldir=$ac_optarg ;;
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1060 -libdir | --libdir | --libdi | --libd)
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1151 -psdir | --psdir | --psdi | --psd | --ps)
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 sbindir=$ac_optarg ;;
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 sharedstatedir=$ac_optarg ;;
1177 -site | --site | --sit)
1179 -site=* | --site=* | --sit=*)
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1206 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid package name: $ac_package" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212 eval with_$ac_package=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=no ;;
1224 # Obsolete; use --with-x.
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1241 -*) { echo "$as_me: error: unrecognized option: $ac_option
1242 Try \`$0 --help' for more information." >&2
1243 { (exit 1); exit 1; }; }
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1251 { (exit 1); exit 1; }; }
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 { echo "$as_me: error: missing argument to $ac_option" >&2
1269 { (exit 1); exit 1; }; }
1272 # Be sure to have absolute directory names.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1278 eval ac_val=\$$ac_var
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { echo "$as_me: error: Working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$0" ||
1326 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$0" : 'X\(//\)[^/]' \| \
1328 X"$0" : 'X\(//\)$' \| \
1329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --x-includes=DIR X include files are in DIR
1448 --x-libraries=DIR X library files are in DIR
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-nls do not use Native Language Support
1464 --disable-rpath do not hardcode runtime library paths
1465 --enable-gnome enable build of bgnome-console GUI disabled
1466 --enable-bat enable build of bat Qt4 GUI disabled
1467 --enable-bwx-console enable build of wxWidgets console disabled
1468 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1469 --enable-smartalloc enable smartalloc debugging support disabled
1470 --enable-static-tools enable static tape tools disabled
1471 --enable-static-fd enable static File daemon disabled
1472 --enable-static-sd enable static Storage daemon disabled
1473 --enable-static-dir enable static Director disabled
1474 --enable-static-cons enable static Console disabled
1475 --enable-client-only build client (File daemon) only disabled
1476 --enable-build-dird enable building of dird (Director) enabled
1477 --enable-build-stored enable building of stored (Storage daemon) enabled
1478 --disable-conio disable conio support enabled
1480 --enable-ipv6 enable ipv6 support enabled
1482 --disable-readline disable readline support disable
1484 --enable-batch-insert enable the DB batch insert code disabled
1485 --enable-batch-insert enable the DB batch insert code disabled
1486 --disable-largefile omit support for large files
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld default=no
1492 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1493 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1494 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1495 --without-libintl-prefix don't search for libintl in includedir and libdir
1496 --with-included-gettext use the GNU gettext library included here
1497 --with-qwt[=DIR] specify qwt library directory
1498 --with-readline[=DIR] specify readline library directory
1500 --with-python[=DIR] Include Python support. DIR is the Python base
1501 install directory, default is to search through
1502 a number of common places for the Python files.
1503 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1504 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1505 --with-working-dir=PATH specify path of Bacula working directory
1506 --with-archivedir=PATH specify path of SD archive directory
1507 --with-scriptdir=PATH specify path of Bacula scripts directory
1508 --with-plugindir=PATH specify path of Bacula plugins directory
1509 --with-dump-email=EMAIL dump email address
1510 --with-job-email=EMAIL job output email address
1511 --with-smtp-host=HOST SMTP mail host address
1512 --with-pid-dir=PATH specify location of Bacula pid files
1513 --with-subsys-dir=PATH specify location of Bacula subsys file
1514 --with-baseport=PORT specify base port address for daemons
1515 --with-dir-password=PASSWORD specify Director's password
1516 --with-fd-password=PASSWORD specify Client's password
1517 --with-sd-password=PASSWORD specify Storage daemon's password
1518 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1519 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1520 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1521 --with-db-name=DBNAME specify database name (default bacula)
1522 --with-db-user=UNAME specify database user (default bacula)
1523 --with-db-password=UNAME specify database password (default *none*)
1524 --with-db-port=DBPORT specify a database port (default null)
1525 --with-dir-user=USER specify user for Director daemon
1526 --with-dir-group=GROUP specify group for Director daemon
1527 --with-sd-user=USER specify user for Storage daemon
1528 --with-sd-group=GROUP specify group for Storage daemon
1529 --with-fd-user=USER specify user for File daemon
1530 --with-fd-group=GROUP specify group for File daemon
1531 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1532 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1533 base install directory, defaults to /usr/local/pgsql
1535 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1536 install directory, default is to search through
1537 a number of common places for the MySQL files.
1539 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1540 install directory, default is to search through
1541 a number of common places for the MySQL files.
1543 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1544 install directory, default is to search through
1545 a number of common places for the SQLite3 files.
1547 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1548 install directory, default is to search through
1549 a number of common places for the SQLite files.
1551 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1552 install directory, default is to search through
1553 a number of common places for the DBI files.
1555 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1556 the one DBI driver like Mysql, Postgresql, others.
1557 Default is to not configure any driver.
1558 --with-x use the X Window System
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1571 WXCONFIG wx-config command. On some systems, you must set it to
1572 wx-config-2.6 to use wxWidgets 2.6.
1573 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1574 XMKMF Path to xmkmf, Makefile generator for X Window System
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" || continue
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593 # A ".." for each directory in $ac_dir_suffix.
1594 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595 case $ac_top_builddir_sub in
1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1606 .) # We are building in place.
1608 ac_top_srcdir=$ac_top_builddir_sub
1609 ac_abs_top_srcdir=$ac_pwd ;;
1610 [\\/]* | ?:[\\/]* ) # Absolute name.
1611 ac_srcdir=$srcdir$ac_dir_suffix;
1612 ac_top_srcdir=$srcdir
1613 ac_abs_top_srcdir=$srcdir ;;
1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616 ac_top_srcdir=$ac_top_build_prefix$srcdir
1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621 cd "$ac_dir" || { ac_status=$?; continue; }
1622 # Check for guested configure.
1623 if test -f "$ac_srcdir/configure.gnu"; then
1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626 elif test -f "$ac_srcdir/configure"; then
1628 $SHELL "$ac_srcdir/configure" --help=recursive
1630 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 cd "$ac_pwd" || { ac_status=$?; break; }
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1640 generated by GNU Autoconf 2.61
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by $as_me, which was
1654 generated by GNU Autoconf 2.61. Invocation command line was
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 # Check that the precious variables saved in the cache have kept the same
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
1932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
1934 case $ac_old_set,$ac_new_set in
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
1946 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1949 echo "$as_me: former value: $ac_old_val" >&2;}
1950 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1951 echo "$as_me: current value: $ac_new_val" >&2;}
1952 ac_cache_corrupted=:
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972 { (exit 1); exit 1; }; }
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2006 if test -f "$ac_dir/install-sh"; then
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2010 elif test -f "$ac_dir/install.sh"; then
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2014 elif test -f "$ac_dir/shtool"; then
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2043 # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 TRUEPRG=$ac_cv_path_TRUEPRG
2074 if test -n "$TRUEPRG"; then
2075 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2076 echo "${ECHO_T}$TRUEPRG" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2083 test -n "$TRUEPRG" && break
2085 test -n "$TRUEPRG" || TRUEPRG=":"
2087 for ac_prog in false
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 FALSEPRG=$ac_cv_path_FALSEPRG
2120 if test -n "$FALSEPRG"; then
2121 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2122 echo "${ECHO_T}$FALSEPRG" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2129 test -n "$FALSEPRG" && break
2131 test -n "$FALSEPRG" || FALSEPRG=":"
2136 if test "x$BACULA" != x; then
2137 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2139 BACULA=${BACULA-Bacula}
2140 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2141 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2142 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2143 echo "configuring for ${BACULA} $VERSION ($DATE)"
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152 if test -n "$ac_tool_prefix"; then
2153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 if test -n "$CC"; then
2182 { echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2191 if test -z "$ac_cv_prog_CC"; then
2193 # Extract the first word of "gcc", so it can be a program name with args.
2194 set dummy gcc; ac_word=$2
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 if test -n "$ac_ct_CC"; then
2201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_ac_ct_CC="gcc"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2229 if test "x$ac_ct_CC" = x; then
2232 case $cross_compiling:$ac_tool_warned in
2234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet. If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&5
2237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet. If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240 ac_tool_warned=yes ;;
2248 if test -z "$CC"; then
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}cc; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_CC="${ac_tool_prefix}cc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2289 if test -z "$CC"; then
2290 # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$CC"; then
2298 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309 ac_prog_rejected=yes
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test $ac_prog_rejected = yes; then
2321 # We found a bogon in the path, so make sure we never use it.
2322 set dummy $ac_cv_prog_CC
2324 if test $# != 0; then
2325 # We chose a different compiler from the bogus one.
2326 # However, it has the same basename, so the bogon will be chosen
2327 # first if we set CC to just the basename; use the full file name.
2329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2335 if test -n "$CC"; then
2336 { echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2345 if test -z "$CC"; then
2346 if test -n "$ac_tool_prefix"; then
2347 for ac_prog in cl.exe
2349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test -n "$CC"; then
2378 { echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6; }
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2386 test -n "$CC" && break
2389 if test -z "$CC"; then
2391 for ac_prog in cl.exe
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_CC="$ac_prog"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2430 test -n "$ac_ct_CC" && break
2433 if test "x$ac_ct_CC" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2444 ac_tool_warned=yes ;;
2453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details." >&2;}
2457 { (exit 1); exit 1; }; }
2459 # Provide some information about the compiler.
2460 echo "$as_me:$LINENO: checking for C compiler version" >&5
2461 ac_compiler=`set X $ac_compile; echo $2`
2462 { (ac_try="$ac_compiler --version >&5"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compiler --version >&5") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }
2472 { (ac_try="$ac_compiler -v >&5"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compiler -v >&5") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (ac_try="$ac_compiler -V >&5"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compiler -V >&5") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 ac_clean_files_save=$ac_clean_files
2509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2510 # Try to create an executable without -o first, disregard a.out.
2511 # It will help us diagnose broken compilers, and finding out an intuition
2513 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2517 # List of possible output files, starting from the most likely.
2518 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2519 # only as a last resort. b.out is created by i960 compilers.
2520 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2522 # The IRIX 6 linker writes into existing files which may not be
2523 # executable, retaining their permissions. Remove them first so a
2524 # subsequent execution test works.
2526 for ac_file in $ac_files
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2535 if { (ac_try="$ac_link_default"
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_link_default") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2548 # so that the user can short-circuit this test for compilers unknown to
2550 for ac_file in $ac_files ''
2552 test -f "$ac_file" || continue
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2557 # We found the default executable, but exeext='' is most
2561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565 # We set ac_cv_exeext here because the later test for it is not
2566 # safe: cross compilers may not add the suffix if given an `-o'
2567 # argument, so we may need to know it at that point already.
2568 # Even if this section looks crufty: it has the advantage of
2575 test "$ac_cv_exeext" = no && ac_cv_exeext=
2581 { echo "$as_me:$LINENO: result: $ac_file" >&5
2582 echo "${ECHO_T}$ac_file" >&6; }
2583 if test -z "$ac_file"; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: C compiler cannot create executables
2590 See \`config.log' for more details." >&2;}
2591 { (exit 77); exit 77; }; }
2594 ac_exeext=$ac_cv_exeext
2596 # Check that the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603 if { ac_try='./$ac_file'
2604 { (case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_try") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 if test "$cross_compiling" = maybe; then
2618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2619 If you meant to cross compile, use \`--host'.
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot run C compiled programs.
2622 If you meant to cross compile, use \`--host'.
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2628 { echo "$as_me:$LINENO: result: yes" >&5
2629 echo "${ECHO_T}yes" >&6; }
2631 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2632 ac_clean_files=$ac_clean_files_save
2633 # Check that the compiler produces executables we can run. If not, either
2634 # the compiler is broken, or we cross compile.
2635 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2637 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2638 echo "${ECHO_T}$cross_compiling" >&6; }
2640 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2642 if { (ac_try="$ac_link"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_link") 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2654 # work properly (i.e., refer to `conftest.exe'), while it won't with
2656 for ac_file in conftest.exe conftest conftest.*; do
2657 test -f "$ac_file" || continue
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }
2673 rm -f conftest$ac_cv_exeext
2674 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2675 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2677 rm -f conftest.$ac_ext
2678 EXEEXT=$ac_cv_exeext
2680 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2681 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2682 if test "${ac_cv_objext+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.o conftest.obj
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 for ac_file in conftest.o conftest.obj conftest.*; do
2712 test -f "$ac_file" || continue;
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2732 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2733 echo "${ECHO_T}$ac_cv_objext" >&6; }
2734 OBJEXT=$ac_cv_objext
2736 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2759 rm -f conftest.$ac_objext
2760 if { (ac_try="$ac_compile"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } && {
2773 test -z "$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest.$ac_objext; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2788 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2790 GCC=`test $ac_compiler_gnu = yes && echo yes`
2791 ac_test_CFLAGS=${CFLAGS+set}
2792 ac_save_CFLAGS=$CFLAGS
2793 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_cc_g+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 ac_save_c_werror_flag=$ac_c_werror_flag
2799 ac_c_werror_flag=yes
2802 cat >conftest.$ac_ext <<_ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
2826 grep -v '^ *+' conftest.er1 >conftest.err
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest.$ac_objext; then
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2855 rm -f conftest.$ac_objext
2856 if { (ac_try="$ac_compile"
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_compile") 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } && {
2869 test -z "$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 } && test -s conftest.$ac_objext; then
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 ac_c_werror_flag=$ac_save_c_werror_flag
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2930 if test "$ac_test_CFLAGS" = set; then
2931 CFLAGS=$ac_save_CFLAGS
2932 elif test $ac_cv_prog_cc_g = yes; then
2933 if test "$GCC" = yes; then
2939 if test "$GCC" = yes; then
2945 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2946 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2947 if test "${ac_cv_prog_cc_c89+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 ac_cv_prog_cc_c89=no
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2960 #include <sys/types.h>
2961 #include <sys/stat.h>
2962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2963 struct buf { int x; };
2964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2965 static char *e (p, i)
2971 static char *f (char * (*g) (char **, int), char **p, ...)
2976 s = g (p, va_arg (v,int));
2981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2982 function prototypes and stuff, but not '\xHH' hex character constants.
2983 These don't provoke an error unfortunately, instead are silently treated
2984 as 'x'. The following induces an error, until -std is added to get
2985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2986 array size at least. It's necessary to write '\x00'==0 to get something
2987 that's true only with -std. */
2988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2991 inside strings and character constants. */
2993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2995 int test (int i, double x);
2996 struct s1 {int (*f) (int a);};
2997 struct s2 {int (*f) (double a);};
2998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3012 CC="$ac_save_CC $ac_arg"
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_c_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
3030 ac_cv_prog_cc_c89=$ac_arg
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3038 rm -f core conftest.err conftest.$ac_objext
3039 test "x$ac_cv_prog_cc_c89" != "xno" && break
3041 rm -f conftest.$ac_ext
3046 case "x$ac_cv_prog_cc_c89" in
3048 { echo "$as_me:$LINENO: result: none needed" >&5
3049 echo "${ECHO_T}none needed" >&6; } ;;
3051 { echo "$as_me:$LINENO: result: unsupported" >&5
3052 echo "${ECHO_T}unsupported" >&6; } ;;
3054 CC="$CC $ac_cv_prog_cc_c89"
3055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3056 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067 ac_cpp='$CXXCPP $CPPFLAGS'
3068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3071 if test -z "$CXX"; then
3072 if test -n "$CCC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CXX+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if test -n "$CXX"; then
3086 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CXX"; then
3107 { echo "$as_me:$LINENO: result: $CXX" >&5
3108 echo "${ECHO_T}$CXX" >&6; }
3110 { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3115 test -n "$CXX" && break
3118 if test -z "$CXX"; then
3120 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$ac_ct_CXX"; then
3130 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CXX="$ac_prog"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3150 if test -n "$ac_ct_CXX"; then
3151 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3152 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3154 { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3159 test -n "$ac_ct_CXX" && break
3162 if test "x$ac_ct_CXX" = x; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet. If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned=yes ;;
3181 # Provide some information about the compiler.
3182 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (ac_try="$ac_compiler --version >&5"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compiler --version >&5") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 { (ac_try="$ac_compiler -v >&5"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compiler -v >&5") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }
3204 { (ac_try="$ac_compiler -V >&5"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compiler -V >&5") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }
3215 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } && {
3252 test -z "$ac_cxx_werror_flag" ||
3253 test ! -s conftest.err
3254 } && test -s conftest.$ac_objext; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3267 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3269 GXX=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CXXFLAGS=${CXXFLAGS+set}
3271 ac_save_CXXFLAGS=$CXXFLAGS
3272 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3273 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cxx_g+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3278 ac_cxx_werror_flag=yes
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_cxx_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cxx_g=yes
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_cxx_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_cxx_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_prog_cxx_g=yes
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3407 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3408 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3409 if test "$ac_test_CXXFLAGS" = set; then
3410 CXXFLAGS=$ac_save_CXXFLAGS
3411 elif test $ac_cv_prog_cxx_g = yes; then
3412 if test "$GXX" = yes; then
3418 if test "$GXX" = yes; then
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test "x$CC" != xcc; then
3431 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3432 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3434 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3435 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3437 set dummy $CC; ac_cc=`echo $2 |
3438 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3439 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 # Make sure it works both with $CC and with simple cc.
3458 # We do the test twice because some compilers refuse to overwrite an
3459 # existing .o file with -o, though they will create one.
3460 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3462 if { (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 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_try") 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); };
3481 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3482 if test "x$CC" != xcc; then
3483 # Test first that cc exists at all.
3484 if { ac_try='cc -c conftest.$ac_ext >&5'
3485 { (case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_try") 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3496 if { (case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_try") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_try") 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); };
3518 # cc exists but doesn't like -o.
3519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3524 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3526 rm -f core conftest*
3529 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3530 { echo "$as_me:$LINENO: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6; }
3533 { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3536 cat >>confdefs.h <<\_ACEOF
3537 #define NO_MINUS_C_MINUS_O 1
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3553 if test -z "$CPP"; then
3554 if test "${ac_cv_prog_CPP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 # Double quotes because CPP needs to be expanded
3558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 # include <limits.h>
3578 # include <assert.h>
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null && {
3595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596 test ! -s conftest.err
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Broken: fails on valid input.
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether nonexistent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3635 # Broken: success on invalid input.
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 # Passes both tests.
3646 rm -f conftest.err conftest.$ac_ext
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3663 { echo "$as_me:$LINENO: result: $CPP" >&5
3664 echo "${ECHO_T}$CPP" >&6; }
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 # include <limits.h>
3683 # include <assert.h>
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null && {
3737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738 test ! -s conftest.err
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
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3774 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_GREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 # Extract the first word of "grep ggrep" to use in msg output
3779 if test -z "$GREP"; then
3780 set dummy grep ggrep; ac_prog_name=$2
3781 if test "${ac_cv_path_GREP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_path_GREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in grep ggrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3794 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3795 # Check for GNU ac_path_GREP and select it if it is found.
3796 # Check for GNU $ac_path_GREP
3797 case `"$ac_path_GREP" --version 2>&1` in
3799 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 echo 'GREP' >> "conftest.nl"
3809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 ac_count=`expr $ac_count + 1`
3812 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_GREP="$ac_path_GREP"
3815 ac_path_GREP_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 $ac_path_GREP_found && break 3
3834 GREP="$ac_cv_path_GREP"
3835 if test -z "$GREP"; then
3836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 { (exit 1); exit 1; }; }
3842 ac_cv_path_GREP=$GREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3852 { echo "$as_me:$LINENO: checking for egrep" >&5
3853 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858 then ac_cv_path_EGREP="$GREP -E"
3860 # Extract the first word of "egrep" to use in msg output
3861 if test -z "$EGREP"; then
3862 set dummy egrep; ac_prog_name=$2
3863 if test "${ac_cv_path_EGREP+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 ac_path_EGREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in egrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3877 # Check for GNU ac_path_EGREP and select it if it is found.
3878 # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 echo 'EGREP' >> "conftest.nl"
3891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 ac_count=`expr $ac_count + 1`
3894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_EGREP="$ac_path_EGREP"
3897 ac_path_EGREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3906 $ac_path_EGREP_found && break 3
3916 EGREP="$ac_cv_path_EGREP"
3917 if test -z "$EGREP"; then
3918 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920 { (exit 1); exit 1; }; }
3924 ac_cv_path_EGREP=$EGREP
3930 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3932 EGREP="$ac_cv_path_EGREP"
3935 if test $ac_cv_c_compiler_gnu = yes; then
3936 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3937 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 ac_pattern="Autoconf.*'x'"
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3953 ac_cv_prog_gcc_traditional=yes
3955 ac_cv_prog_gcc_traditional=no
3960 if test $ac_cv_prog_gcc_traditional = no; then
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3972 ac_cv_prog_gcc_traditional=yes
3978 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3979 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3980 if test $ac_cv_prog_gcc_traditional = yes; then
3981 CC="$CC -traditional"
3985 BASECC=`basename $CC`
3987 if test "x$BASECC" = xgcc; then
3988 cat >>confdefs.h <<\_ACEOF
3994 # Extract the first word of "$CXX", so it can be a program name with args.
3995 set dummy $CXX; ac_word=$2
3996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_CXX+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4026 if test -n "$CXX"; then
4027 { echo "$as_me:$LINENO: result: $CXX" >&5
4028 echo "${ECHO_T}$CXX" >&6; }
4030 { echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6; }
4035 if test ! -e $CXX; then
4036 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4037 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4038 { (exit 1); exit 1; }; }
4041 # Find a good install program. We prefer a C program (faster),
4042 # so one script is as good as another. But avoid the broken or
4043 # incompatible versions:
4044 # SysV /etc/install, /usr/sbin/install
4045 # SunOS /usr/etc/install
4046 # IRIX /sbin/install
4048 # AmigaOS /C/install, which installs bootblocks on floppy discs
4049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4052 # OS/2's system install, which has a completely different semantic
4053 # ./install, which can be erroneously created by make from ./install.sh.
4054 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4055 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4056 if test -z "$INSTALL"; then
4057 if test "${ac_cv_path_install+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 test -z "$as_dir" && as_dir=.
4065 # Account for people who put trailing slashes in PATH elements.
4067 ./ | .// | /cC/* | \
4068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4072 # OSF1 and SCO ODT 3.0 have their own names for install.
4073 # Don't use installbsd from OSF since it installs stuff as root
4075 for ac_prog in ginstall scoinst install; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4078 if test $ac_prog = install &&
4079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080 # AIX install. It has an incompatible calling convention.
4082 elif test $ac_prog = install &&
4083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084 # program-specific install script used by HP pwplus--don't use.
4087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4100 if test "${ac_cv_path_install+set}" = set; then
4101 INSTALL=$ac_cv_path_install
4103 # As a last resort, use the slow shell script. Don't cache a
4104 # value for INSTALL within a source directory, because that will
4105 # break other packages using the cache if that directory is
4106 # removed, or if the value is a relative name.
4107 INSTALL=$ac_install_sh
4110 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4111 echo "${ECHO_T}$INSTALL" >&6; }
4113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4114 # It thinks the first close brace ends the variable substitution.
4115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_RANLIB+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$RANLIB"; then
4130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 RANLIB=$ac_cv_prog_RANLIB
4150 if test -n "$RANLIB"; then
4151 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4152 echo "${ECHO_T}$RANLIB" >&6; }
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4160 if test -z "$ac_cv_prog_RANLIB"; then
4161 ac_ct_RANLIB=$RANLIB
4162 # Extract the first word of "ranlib", so it can be a program name with args.
4163 set dummy ranlib; ac_word=$2
4164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$ac_ct_RANLIB"; then
4170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_ac_ct_RANLIB="ranlib"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4190 if test -n "$ac_ct_RANLIB"; then
4191 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4192 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4194 { echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6; }
4198 if test "x$ac_ct_RANLIB" = x; then
4201 case $cross_compiling:$ac_tool_warned in
4203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet. If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&5
4206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4207 whose name does not start with the host triplet. If you think this
4208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4209 ac_tool_warned=yes ;;
4211 RANLIB=$ac_ct_RANLIB
4214 RANLIB="$ac_cv_prog_RANLIB"
4217 # Extract the first word of "mv", so it can be a program name with args.
4218 set dummy mv; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_path_MV+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4249 if test -n "$MV"; then
4250 { echo "$as_me:$LINENO: result: $MV" >&5
4251 echo "${ECHO_T}$MV" >&6; }
4253 { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4258 # Extract the first word of "rm", so it can be a program name with args.
4259 set dummy rm; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_path_RM+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4290 if test -n "$RM"; then
4291 { echo "$as_me:$LINENO: result: $RM" >&5
4292 echo "${ECHO_T}$RM" >&6; }
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4299 # Extract the first word of "cp", so it can be a program name with args.
4300 set dummy cp; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_path_CP+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4331 if test -n "$CP"; then
4332 { echo "$as_me:$LINENO: result: $CP" >&5
4333 echo "${ECHO_T}$CP" >&6; }
4335 { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4340 # Extract the first word of "sed", so it can be a program name with args.
4341 set dummy sed; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_path_SED+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4372 if test -n "$SED"; then
4373 { echo "$as_me:$LINENO: result: $SED" >&5
4374 echo "${ECHO_T}$SED" >&6; }
4376 { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4381 # Extract the first word of "echo", so it can be a program name with args.
4382 set dummy echo; ac_word=$2
4383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4385 if test "${ac_cv_path_ECHO+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4412 ECHO=$ac_cv_path_ECHO
4413 if test -n "$ECHO"; then
4414 { echo "$as_me:$LINENO: result: $ECHO" >&5
4415 echo "${ECHO_T}$ECHO" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 # Extract the first word of "cmp", so it can be a program name with args.
4423 set dummy cmp; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_path_CMP+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4454 if test -n "$CMP"; then
4455 { echo "$as_me:$LINENO: result: $CMP" >&5
4456 echo "${ECHO_T}$CMP" >&6; }
4458 { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4463 # Extract the first word of "tbl", so it can be a program name with args.
4464 set dummy tbl; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_path_TBL+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4495 if test -n "$TBL"; then
4496 { echo "$as_me:$LINENO: result: $TBL" >&5
4497 echo "${ECHO_T}$TBL" >&6; }
4499 { echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6; }
4504 # Extract the first word of "ar", so it can be a program name with args.
4505 set dummy ar; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_path_AR+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4536 if test -n "$AR"; then
4537 { echo "$as_me:$LINENO: result: $AR" >&5
4538 echo "${ECHO_T}$AR" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4545 # Extract the first word of "openssl", so it can be a program name with args.
4546 set dummy openssl; ac_word=$2
4547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549 if test "${ac_cv_path_OPENSSL+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4576 OPENSSL=$ac_cv_path_OPENSSL
4577 if test -n "$OPENSSL"; then
4578 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4579 echo "${ECHO_T}$OPENSSL" >&6; }
4581 { echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6; }
4586 # Extract the first word of "mtx", so it can be a program name with args.
4587 set dummy mtx; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_path_MTX+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4618 if test -n "$MTX"; then
4619 { echo "$as_me:$LINENO: result: $MTX" >&5
4620 echo "${ECHO_T}$MTX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 # Extract the first word of "dd", so it can be a program name with args.
4628 set dummy dd; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_path_DD+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4659 if test -n "$DD"; then
4660 { echo "$as_me:$LINENO: result: $DD" >&5
4661 echo "${ECHO_T}$DD" >&6; }
4663 { echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6; }
4668 # Extract the first word of "mkisofs", so it can be a program name with args.
4669 set dummy mkisofs; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_path_MKISOFS+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4699 MKISOFS=$ac_cv_path_MKISOFS
4700 if test -n "$MKISOFS"; then
4701 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4702 echo "${ECHO_T}$MKISOFS" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 # Extract the first word of "python", so it can be a program name with args.
4710 set dummy python; ac_word=$2
4711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4713 if test "${ac_cv_path_PYTHON+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4740 PYTHON=$ac_cv_path_PYTHON
4741 if test -n "$PYTHON"; then
4742 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4743 echo "${ECHO_T}$PYTHON" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4750 # Extract the first word of "growisofs", so it can be a program name with args.
4751 set dummy growisofs; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4781 GROWISOFS=$ac_cv_path_GROWISOFS
4782 if test -n "$GROWISOFS"; then
4783 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4784 echo "${ECHO_T}$GROWISOFS" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4791 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4792 set dummy dvd+rw-mediainfo; ac_word=$2
4793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4795 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 case $DVDRWMEDIAINFO in
4800 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4822 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4823 if test -n "$DVDRWMEDIAINFO"; then
4824 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4825 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4827 { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4832 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4833 set dummy dvd+rw-format; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 case $DVDRWFORMAT in
4841 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4863 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4864 if test -n "$DVDRWFORMAT"; then
4865 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4866 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4868 { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4873 # Extract the first word of "pkg-config", so it can be a program name with args.
4874 set dummy pkg-config; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4904 PKGCONFIG=$ac_cv_path_PKGCONFIG
4905 if test -n "$PKGCONFIG"; then
4906 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4907 echo "${ECHO_T}$PKGCONFIG" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4914 # Extract the first word of "qmake", so it can be a program name with args.
4915 set dummy qmake; ac_word=$2
4916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4918 if test "${ac_cv_path_QMAKE+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4945 QMAKE=$ac_cv_path_QMAKE
4946 if test -n "$QMAKE"; then
4947 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4948 echo "${ECHO_T}$QMAKE" >&6; }
4950 { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4955 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4956 set dummy qmake-qt4; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4986 QMAKEQT4=$ac_cv_path_QMAKEQT4
4987 if test -n "$QMAKEQT4"; then
4988 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4989 echo "${ECHO_T}$QMAKEQT4" >&6; }
4991 { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4997 if test "x$WXCONFIG" = x; then
5000 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5001 set dummy ${WXCONFIG}; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5031 WXCONFIG=$ac_cv_path_WXCONFIG
5032 if test -n "$WXCONFIG"; then
5033 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5034 echo "${ECHO_T}$WXCONFIG" >&6; }
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5042 # Extract the first word of "cdrecord", so it can be a program name with args.
5043 set dummy cdrecord; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_path_CDRECORD+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5073 CDRECORD=$ac_cv_path_CDRECORD
5074 if test -n "$CDRECORD"; then
5075 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5076 echo "${ECHO_T}$CDRECORD" >&6; }
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5083 # Extract the first word of "pidof", so it can be a program name with args.
5084 set dummy pidof; ac_word=$2
5085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087 if test "${ac_cv_path_PIDOF+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5114 PIDOF=$ac_cv_path_PIDOF
5115 if test -n "$PIDOF"; then
5116 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5117 echo "${ECHO_T}$PIDOF" >&6; }
5119 { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5124 for ac_prog in gawk mawk nawk awk
5126 # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_prog_AWK+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 if test -n "$AWK"; then
5134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_AWK="$ac_prog"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 if test -n "$AWK"; then
5155 { echo "$as_me:$LINENO: result: $AWK" >&5
5156 echo "${ECHO_T}$AWK" >&6; }
5158 { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5163 test -n "$AWK" && break
5166 # Some AWK programs fail, so test it and warn the user
5167 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5168 { if ((prog == $2) || (("(" prog ")") == $2) ||
5169 (("" prog "") == $2) ||
5170 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5172 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5173 The regex engine of $AWK is too broken to be used you
5174 might want to install GNU AWK.
5175 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5176 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5177 The regex engine of $AWK is too broken to be used you
5178 might want to install GNU AWK.
5179 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5180 { (exit 1); exit 1; }; }
5183 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5184 set dummy $THE_AWK; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_path_AWK+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5215 if test -n "$AWK"; then
5216 { echo "$as_me:$LINENO: result: $AWK" >&5
5217 echo "${ECHO_T}$AWK" >&6; }
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5226 test -n "$ARFLAG" || ARFLAGS="cr"
5237 # Make sure we can run config.sub.
5238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5239 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5241 { (exit 1); exit 1; }; }
5243 { echo "$as_me:$LINENO: checking build system type" >&5
5244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5245 if test "${ac_cv_build+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_build_alias=$build_alias
5249 test "x$ac_build_alias" = x &&
5250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5251 test "x$ac_build_alias" = x &&
5252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5254 { (exit 1); exit 1; }; }
5255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5256 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5258 { (exit 1); exit 1; }; }
5261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5262 echo "${ECHO_T}$ac_cv_build" >&6; }
5263 case $ac_cv_build in
5265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5266 echo "$as_me: error: invalid value of canonical build" >&2;}
5267 { (exit 1); exit 1; }; };;
5270 ac_save_IFS=$IFS; IFS='-'
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5284 { echo "$as_me:$LINENO: checking host system type" >&5
5285 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5286 if test "${ac_cv_host+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test "x$host_alias" = x; then
5290 ac_cv_host=$ac_cv_build
5292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5293 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5294 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5295 { (exit 1); exit 1; }; }
5299 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5300 echo "${ECHO_T}$ac_cv_host" >&6; }
5303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5304 echo "$as_me: error: invalid value of canonical host" >&2;}
5305 { (exit 1); exit 1; }; };;
5308 ac_save_IFS=$IFS; IFS='-'
5314 # Remember, the first character of IFS is used to create $*,
5315 # except with old shells:
5318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5322 *cygwin* ) CYGWIN=yes;;
5326 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5332 HAVE_SUN_OS_FALSE='#'
5334 HAVE_SUN_OS_TRUE='#'
5337 cat >>confdefs.h <<\_ACEOF
5338 #define HAVE_SUN_OS 1
5346 HAVE_SUN_OS_FALSE='#'
5348 HAVE_SUN_OS_TRUE='#'
5353 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5359 HAVE_OSF1_OS_FALSE='#'
5361 HAVE_OSF1_OS_TRUE='#'
5364 cat >>confdefs.h <<\_ACEOF
5365 #define HAVE_OSF1_OS 1
5373 HAVE_OSF1_OS_FALSE='#'
5375 HAVE_OSF1_OS_TRUE='#'
5380 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5386 HAVE_AIX_OS_FALSE='#'
5388 HAVE_AIX_OS_TRUE='#'
5391 cat >>confdefs.h <<\_ACEOF
5392 #define HAVE_AIX_OS 1
5400 HAVE_AIX_OS_FALSE='#'
5402 HAVE_AIX_OS_TRUE='#'
5407 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5413 HAVE_HPUX_OS_FALSE='#'
5415 HAVE_HPUX_OS_TRUE='#'
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_HPUX_OS 1
5427 HAVE_HPUX_OS_FALSE='#'
5429 HAVE_HPUX_OS_TRUE='#'
5434 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5440 HAVE_LINUX_OS_FALSE='#'
5442 HAVE_LINUX_OS_TRUE='#'
5443 HAVE_LINUX_OS_FALSE=
5445 cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_LINUX_OS 1
5454 HAVE_LINUX_OS_FALSE='#'
5456 HAVE_LINUX_OS_TRUE='#'
5457 HAVE_LINUX_OS_FALSE=
5461 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5466 HAVE_FREEBSD_OS_TRUE=
5467 HAVE_FREEBSD_OS_FALSE='#'
5469 HAVE_FREEBSD_OS_TRUE='#'
5470 HAVE_FREEBSD_OS_FALSE=
5472 cat >>confdefs.h <<\_ACEOF
5473 #define HAVE_FREEBSD_OS 1
5480 HAVE_FREEBSD_OS_TRUE=
5481 HAVE_FREEBSD_OS_FALSE='#'
5483 HAVE_FREEBSD_OS_TRUE='#'
5484 HAVE_FREEBSD_OS_FALSE=
5488 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5493 HAVE_NETBSD_OS_TRUE=
5494 HAVE_NETBSD_OS_FALSE='#'
5496 HAVE_NETBSD_OS_TRUE='#'
5497 HAVE_NETBSD_OS_FALSE=
5499 cat >>confdefs.h <<\_ACEOF
5500 #define HAVE_NETBSD_OS 1
5507 HAVE_NETBSD_OS_TRUE=
5508 HAVE_NETBSD_OS_FALSE='#'
5510 HAVE_NETBSD_OS_TRUE='#'
5511 HAVE_NETBSD_OS_FALSE=
5515 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5520 HAVE_OPENBSD_OS_TRUE=
5521 HAVE_OPENBSD_OS_FALSE='#'
5523 HAVE_OPENBSD_OS_TRUE='#'
5524 HAVE_OPENBSD_OS_FALSE=
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_OPENBSD_OS 1
5534 HAVE_OPENBSD_OS_TRUE=
5535 HAVE_OPENBSD_OS_FALSE='#'
5537 HAVE_OPENBSD_OS_TRUE='#'
5538 HAVE_OPENBSD_OS_FALSE=
5542 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5548 HAVE_BSDI_OS_FALSE='#'
5550 HAVE_BSDI_OS_TRUE='#'
5553 cat >>confdefs.h <<\_ACEOF
5554 #define HAVE_BSDI_OS 1
5562 HAVE_BSDI_OS_FALSE='#'
5564 HAVE_BSDI_OS_TRUE='#'
5569 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5575 HAVE_SGI_OS_FALSE='#'
5577 HAVE_SGI_OS_TRUE='#'
5580 cat >>confdefs.h <<\_ACEOF
5581 #define HAVE_SGI_OS 1
5589 HAVE_SGI_OS_FALSE='#'
5591 HAVE_SGI_OS_TRUE='#'
5596 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5602 HAVE_IRIX_OS_FALSE='#'
5604 HAVE_IRIX_OS_TRUE='#'
5607 cat >>confdefs.h <<\_ACEOF
5608 #define HAVE_IRIX_OS 1
5616 HAVE_IRIX_OS_FALSE='#'
5618 HAVE_IRIX_OS_TRUE='#'
5623 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5628 HAVE_DARWIN_OS_TRUE=
5629 HAVE_DARWIN_OS_FALSE='#'
5631 HAVE_DARWIN_OS_TRUE='#'
5632 HAVE_DARWIN_OS_FALSE=
5634 cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_DARWIN_OS 1
5642 HAVE_DARWIN_OS_TRUE=
5643 HAVE_DARWIN_OS_FALSE='#'
5645 HAVE_DARWIN_OS_TRUE='#'
5646 HAVE_DARWIN_OS_FALSE=
5651 # -----------------------------------------------------------
5652 # ----------------------------------------------------------
5653 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5654 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5655 if test "x$DISTNAME" != "x"
5657 echo "distname set to $DISTNAME"
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5676 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5679 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5682 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5685 elif test -f /etc/SuSE-release
5688 elif test -d /etc/SuSEconfig
5691 elif test -f /etc/mandrake-release
5694 elif test -f /etc/whitebox-release
5697 elif test -f /etc/redhat-release
5700 elif test -f /etc/gentoo-release
5703 elif test -f /etc/debian_version
5706 elif test -f /etc/slackware-version
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5712 elif test -f /etc/engarde-version
5715 elif test "$CYGWIN" = yes
5718 cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_CYGWIN 1
5725 { echo "$as_me:$LINENO: result: done" >&5
5726 echo "${ECHO_T}done" >&6; }
5729 # --------------------------------------------------
5730 # Suppport for gettext (translations)
5731 # By default, $datadir is ${prefix}/share
5732 # --------------------------------------------------
5733 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5735 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5736 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.make <<\_ACEOF
5742 @echo '@@@%%%=$(MAKE)=@@@%%%'
5744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5747 eval ac_cv_prog_make_${ac_make}_set=yes;;
5749 eval ac_cv_prog_make_${ac_make}_set=no;;
5753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5758 { echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6; }
5760 SET_MAKE="MAKE=${MAKE-make}"
5766 if test -n "$ac_aux_dir"; then
5767 case "$ac_aux_dir" in
5768 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5769 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5772 if test -z "$MKINSTALLDIRS"; then
5773 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5778 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5779 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5780 # Check whether --enable-nls was given.
5781 if test "${enable_nls+set}" = set; then
5782 enableval=$enable_nls; USE_NLS=$enableval
5787 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5788 echo "${ECHO_T}$USE_NLS" >&6; }
5795 # Prepare PATH_SEPARATOR.
5796 # The user is always right.
5797 if test "${PATH_SEPARATOR+set}" != set; then
5798 echo "#! /bin/sh" >conf$$.sh
5799 echo "exit 0" >>conf$$.sh
5801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5809 # Find out how to test for executable files. Don't use a zero-byte file,
5810 # as systems may use methods other than mode bits to determine executability.
5811 cat >conf$$.file <<_ASEOF
5815 chmod +x conf$$.file
5816 if test -x conf$$.file >/dev/null 2>&1; then
5817 ac_executable_p="test -x"
5819 ac_executable_p="test -f"
5823 # Extract the first word of "msgfmt", so it can be a program name with args.
5824 set dummy msgfmt; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_path_MSGFMT+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5836 for ac_dir in $PATH; do
5838 test -z "$ac_dir" && ac_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5841 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5842 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5843 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5844 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5851 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5855 MSGFMT="$ac_cv_path_MSGFMT"
5856 if test "$MSGFMT" != ":"; then
5857 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5858 echo "${ECHO_T}$MSGFMT" >&6; }
5860 { echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6; }
5864 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5865 set dummy gmsgfmt; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5895 GMSGFMT=$ac_cv_path_GMSGFMT
5896 if test -n "$GMSGFMT"; then
5897 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5898 echo "${ECHO_T}$GMSGFMT" >&6; }
5900 { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5907 # Prepare PATH_SEPARATOR.
5908 # The user is always right.
5909 if test "${PATH_SEPARATOR+set}" != set; then
5910 echo "#! /bin/sh" >conf$$.sh
5911 echo "exit 0" >>conf$$.sh
5913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5921 # Find out how to test for executable files. Don't use a zero-byte file,
5922 # as systems may use methods other than mode bits to determine executability.
5923 cat >conf$$.file <<_ASEOF
5927 chmod +x conf$$.file
5928 if test -x conf$$.file >/dev/null 2>&1; then
5929 ac_executable_p="test -x"
5931 ac_executable_p="test -f"
5935 # Extract the first word of "xgettext", so it can be a program name with args.
5936 set dummy xgettext; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5947 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5948 for ac_dir in $PATH; do
5950 test -z "$ac_dir" && ac_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5953 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5954 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5955 (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
5956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5963 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5967 XGETTEXT="$ac_cv_path_XGETTEXT"
5968 if test "$XGETTEXT" != ":"; then
5969 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5970 echo "${ECHO_T}$XGETTEXT" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5979 # Prepare PATH_SEPARATOR.
5980 # The user is always right.
5981 if test "${PATH_SEPARATOR+set}" != set; then
5982 echo "#! /bin/sh" >conf$$.sh
5983 echo "exit 0" >>conf$$.sh
5985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5993 # Find out how to test for executable files. Don't use a zero-byte file,
5994 # as systems may use methods other than mode bits to determine executability.
5995 cat >conf$$.file <<_ASEOF
5999 chmod +x conf$$.file
6000 if test -x conf$$.file >/dev/null 2>&1; then
6001 ac_executable_p="test -x"
6003 ac_executable_p="test -f"
6007 # Extract the first word of "msgmerge", so it can be a program name with args.
6008 set dummy msgmerge; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6019 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6020 for ac_dir in $PATH; do
6022 test -z "$ac_dir" && ac_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6025 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6026 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6027 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6034 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6038 MSGMERGE="$ac_cv_path_MSGMERGE"
6039 if test "$MSGMERGE" != ":"; then
6040 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6041 echo "${ECHO_T}$MSGMERGE" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 if test "$GMSGFMT" != ":"; then
6049 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6050 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6053 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6054 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6055 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6060 if test "$XGETTEXT" != ":"; then
6061 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6062 (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
6065 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6066 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6072 ac_config_commands="$ac_config_commands default-1"
6076 if test "X$prefix" = "XNONE"; then
6077 acl_final_prefix="$ac_default_prefix"
6079 acl_final_prefix="$prefix"
6081 if test "X$exec_prefix" = "XNONE"; then
6082 acl_final_exec_prefix='${prefix}'
6084 acl_final_exec_prefix="$exec_prefix"
6086 acl_save_prefix="$prefix"
6087 prefix="$acl_final_prefix"
6088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6089 prefix="$acl_save_prefix"
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6099 # Prepare PATH_SEPARATOR.
6100 # The user is always right.
6101 if test "${PATH_SEPARATOR+set}" != set; then
6102 echo "#! /bin/sh" >conf$$.sh
6103 echo "exit 0" >>conf$$.sh
6105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6113 if test "$GCC" = yes; then
6114 # Check if gcc -print-prog-name=ld gives a path.
6115 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6119 # gcc leaves a trailing carriage return which upsets mingw
6120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6125 # Accept absolute paths.
6126 [\\/]* | [A-Za-z]:[\\/]*)
6127 re_direlt='/[^/][^/]*/\.\./'
6128 # Canonicalize the path of ld
6129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6133 test -z "$LD" && LD="$ac_prog"
6136 # If it fails, then pretend we aren't using GCC.
6140 # If it is relative, then search for the first ld in PATH.
6144 elif test "$with_gnu_ld" = yes; then
6145 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6148 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6151 if test "${acl_cv_path_LD+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 if test -z "$LD"; then
6155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6156 for ac_dir in $PATH; do
6157 test -z "$ac_dir" && ac_dir=.
6158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6159 acl_cv_path_LD="$ac_dir/$ac_prog"
6160 # Check to see if the program is GNU ld. I'd rather use --version,
6161 # but apparently some GNU ld's only accept -v.
6162 # Break only if it was the GNU/non-GNU ld that we prefer.
6163 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6164 *GNU* | *'with BFD'*)
6165 test "$with_gnu_ld" != no && break ;;
6167 test "$with_gnu_ld" != yes && break ;;
6173 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6177 LD="$acl_cv_path_LD"
6178 if test -n "$LD"; then
6179 { echo "$as_me:$LINENO: result: $LD" >&5
6180 echo "${ECHO_T}$LD" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6187 { (exit 1); exit 1; }; }
6188 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6190 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6194 case `$LD -v 2>&1 </dev/null` in
6195 *GNU* | *'with BFD'*)
6196 acl_cv_prog_gnu_ld=yes ;;
6198 acl_cv_prog_gnu_ld=no ;;
6201 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6202 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6203 with_gnu_ld=$acl_cv_prog_gnu_ld
6208 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6209 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6210 if test "${acl_cv_rpath+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6215 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6221 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6222 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6224 libext="$acl_cv_libext"
6225 shlibext="$acl_cv_shlibext"
6226 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6227 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6228 hardcode_direct="$acl_cv_hardcode_direct"
6229 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6230 # Check whether --enable-rpath was given.
6231 if test "${enable_rpath+set}" = set; then
6232 enableval=$enable_rpath; :
6246 acl_save_prefix="$prefix"
6247 prefix="$acl_final_prefix"
6248 acl_save_exec_prefix="$exec_prefix"
6249 exec_prefix="$acl_final_exec_prefix"
6251 eval additional_includedir=\"$includedir\"
6252 eval additional_libdir=\"$libdir\"
6254 exec_prefix="$acl_save_exec_prefix"
6255 prefix="$acl_save_prefix"
6258 # Check whether --with-libiconv-prefix was given.
6259 if test "${with_libiconv_prefix+set}" = set; then
6260 withval=$with_libiconv_prefix;
6261 if test "X$withval" = "Xno"; then
6264 if test "X$withval" = "X"; then
6266 acl_save_prefix="$prefix"
6267 prefix="$acl_final_prefix"
6268 acl_save_exec_prefix="$exec_prefix"
6269 exec_prefix="$acl_final_exec_prefix"
6271 eval additional_includedir=\"$includedir\"
6272 eval additional_libdir=\"$libdir\"
6274 exec_prefix="$acl_save_exec_prefix"
6275 prefix="$acl_save_prefix"
6278 additional_includedir="$withval/include"
6279 additional_libdir="$withval/lib"
6290 names_already_handled=
6291 names_next_round='iconv '
6292 while test -n "$names_next_round"; do
6293 names_this_round="$names_next_round"
6295 for name in $names_this_round; do
6297 for n in $names_already_handled; do
6298 if test "$n" = "$name"; then
6303 if test -z "$already_handled"; then
6304 names_already_handled="$names_already_handled $name"
6305 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6306 eval value=\"\$HAVE_LIB$uppername\"
6307 if test -n "$value"; then
6308 if test "$value" = yes; then
6309 eval value=\"\$LIB$uppername\"
6310 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6311 eval value=\"\$LTLIB$uppername\"
6312 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6321 if test $use_additional = yes; then
6322 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6323 found_dir="$additional_libdir"
6324 found_so="$additional_libdir/lib$name.$shlibext"
6325 if test -f "$additional_libdir/lib$name.la"; then
6326 found_la="$additional_libdir/lib$name.la"
6329 if test -f "$additional_libdir/lib$name.$libext"; then
6330 found_dir="$additional_libdir"
6331 found_a="$additional_libdir/lib$name.$libext"
6332 if test -f "$additional_libdir/lib$name.la"; then
6333 found_la="$additional_libdir/lib$name.la"
6338 if test "X$found_dir" = "X"; then
6339 for x in $LDFLAGS $LTLIBICONV; do
6341 acl_save_prefix="$prefix"
6342 prefix="$acl_final_prefix"
6343 acl_save_exec_prefix="$exec_prefix"
6344 exec_prefix="$acl_final_exec_prefix"
6346 exec_prefix="$acl_save_exec_prefix"
6347 prefix="$acl_save_prefix"
6351 dir=`echo "X$x" | sed -e 's/^X-L//'`
6352 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6354 found_so="$dir/lib$name.$shlibext"
6355 if test -f "$dir/lib$name.la"; then
6356 found_la="$dir/lib$name.la"
6359 if test -f "$dir/lib$name.$libext"; then
6361 found_a="$dir/lib$name.$libext"
6362 if test -f "$dir/lib$name.la"; then
6363 found_la="$dir/lib$name.la"
6369 if test "X$found_dir" != "X"; then
6374 if test "X$found_dir" != "X"; then
6375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6376 if test "X$found_so" != "X"; then
6377 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6381 for x in $ltrpathdirs; do
6382 if test "X$x" = "X$found_dir"; then
6387 if test -z "$haveit"; then
6388 ltrpathdirs="$ltrpathdirs $found_dir"
6390 if test "$hardcode_direct" = yes; then
6391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6393 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6394 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6396 for x in $rpathdirs; do
6397 if test "X$x" = "X$found_dir"; then
6402 if test -z "$haveit"; then
6403 rpathdirs="$rpathdirs $found_dir"
6407 for x in $LDFLAGS $LIBICONV; do
6409 acl_save_prefix="$prefix"
6410 prefix="$acl_final_prefix"
6411 acl_save_exec_prefix="$exec_prefix"
6412 exec_prefix="$acl_final_exec_prefix"
6414 exec_prefix="$acl_save_exec_prefix"
6415 prefix="$acl_save_prefix"
6417 if test "X$x" = "X-L$found_dir"; then
6422 if test -z "$haveit"; then
6423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6425 if test "$hardcode_minus_L" != no; then
6426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6434 if test "X$found_a" != "X"; then
6435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6437 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6440 additional_includedir=
6441 case "$found_dir" in
6443 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6444 additional_includedir="$basedir/include"
6447 if test "X$additional_includedir" != "X"; then
6448 if test "X$additional_includedir" != "X/usr/include"; then
6450 if test "X$additional_includedir" = "X/usr/local/include"; then
6451 if test -n "$GCC"; then
6453 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6457 if test -z "$haveit"; then
6458 for x in $CPPFLAGS $INCICONV; do
6460 acl_save_prefix="$prefix"
6461 prefix="$acl_final_prefix"
6462 acl_save_exec_prefix="$exec_prefix"
6463 exec_prefix="$acl_final_exec_prefix"
6465 exec_prefix="$acl_save_exec_prefix"
6466 prefix="$acl_save_prefix"
6468 if test "X$x" = "X-I$additional_includedir"; then
6473 if test -z "$haveit"; then
6474 if test -d "$additional_includedir"; then
6475 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6481 if test -n "$found_la"; then
6482 save_libdir="$libdir"
6484 */* | *\\*) . "$found_la" ;;
6485 *) . "./$found_la" ;;
6487 libdir="$save_libdir"
6488 for dep in $dependency_libs; do
6491 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6492 if test "X$additional_libdir" != "X/usr/lib"; then
6494 if test "X$additional_libdir" = "X/usr/local/lib"; then
6495 if test -n "$GCC"; then
6497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6501 if test -z "$haveit"; then
6503 for x in $LDFLAGS $LIBICONV; do
6505 acl_save_prefix="$prefix"
6506 prefix="$acl_final_prefix"
6507 acl_save_exec_prefix="$exec_prefix"
6508 exec_prefix="$acl_final_exec_prefix"
6510 exec_prefix="$acl_save_exec_prefix"
6511 prefix="$acl_save_prefix"
6513 if test "X$x" = "X-L$additional_libdir"; then
6518 if test -z "$haveit"; then
6519 if test -d "$additional_libdir"; then
6520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6524 for x in $LDFLAGS $LTLIBICONV; do
6526 acl_save_prefix="$prefix"
6527 prefix="$acl_final_prefix"
6528 acl_save_exec_prefix="$exec_prefix"
6529 exec_prefix="$acl_final_exec_prefix"
6531 exec_prefix="$acl_save_exec_prefix"
6532 prefix="$acl_save_prefix"
6534 if test "X$x" = "X-L$additional_libdir"; then
6539 if test -z "$haveit"; then
6540 if test -d "$additional_libdir"; then
6541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6549 if test "$enable_rpath" != no; then
6551 for x in $rpathdirs; do
6552 if test "X$x" = "X$dir"; then
6557 if test -z "$haveit"; then
6558 rpathdirs="$rpathdirs $dir"
6561 for x in $ltrpathdirs; do
6562 if test "X$x" = "X$dir"; then
6567 if test -z "$haveit"; then
6568 ltrpathdirs="$ltrpathdirs $dir"
6573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6586 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6593 if test "X$rpathdirs" != "X"; then
6594 if test -n "$hardcode_libdir_separator"; then
6596 for found_dir in $rpathdirs; do
6597 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6599 acl_save_libdir="$libdir"
6601 eval flag=\"$hardcode_libdir_flag_spec\"
6602 libdir="$acl_save_libdir"
6603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6605 for found_dir in $rpathdirs; do
6606 acl_save_libdir="$libdir"
6608 eval flag=\"$hardcode_libdir_flag_spec\"
6609 libdir="$acl_save_libdir"
6610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6614 if test "X$ltrpathdirs" != "X"; then
6615 for found_dir in $ltrpathdirs; do
6616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6637 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6638 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6639 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 gt_save_CPPFLAGS="$CPPFLAGS"
6643 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6644 gt_save_LIBS="$LIBS"
6645 LIBS="$LIBS -framework CoreFoundation"
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <CFPreferences.h>
6656 CFPreferencesCopyAppValue(NULL, NULL)
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (ac_try="$ac_link"
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_link") 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest$ac_exeext &&
6678 $as_test_x conftest$ac_exeext; then
6679 gt_cv_func_CFPreferencesCopyAppValue=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 gt_cv_func_CFPreferencesCopyAppValue=no
6687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6688 conftest$ac_exeext conftest.$ac_ext
6689 CPPFLAGS="$gt_save_CPPFLAGS"
6690 LIBS="$gt_save_LIBS"
6692 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6693 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6694 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6701 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6702 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6703 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 gt_save_CPPFLAGS="$CPPFLAGS"
6707 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6708 gt_save_LIBS="$LIBS"
6709 LIBS="$LIBS -framework CoreFoundation"
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <CFLocale.h>
6720 CFLocaleCopyCurrent();
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (ac_try="$ac_link"
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_link") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest$ac_exeext &&
6742 $as_test_x conftest$ac_exeext; then
6743 gt_cv_func_CFLocaleCopyCurrent=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 gt_cv_func_CFLocaleCopyCurrent=no
6751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6752 conftest$ac_exeext conftest.$ac_ext
6753 CPPFLAGS="$gt_save_CPPFLAGS"
6754 LIBS="$gt_save_LIBS"
6756 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6757 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6758 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_CFLOCALECOPYCURRENT 1
6766 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6767 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6773 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6774 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6775 # Check whether --enable-nls was given.
6776 if test "${enable_nls+set}" = set; then
6777 enableval=$enable_nls; USE_NLS=$enableval
6782 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6783 echo "${ECHO_T}$USE_NLS" >&6; }
6792 if test "$USE_NLS" = "yes"; then
6793 gt_use_preinstalled_gnugettext=no
6800 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6801 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6802 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 #include <libintl.h>
6812 extern int _nl_msg_cat_cntr;
6813 extern int *_nl_domain_bindings;
6817 bindtextdomain ("", "");
6818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (ac_try="$ac_link"
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_link") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest$ac_exeext &&
6840 $as_test_x conftest$ac_exeext; then
6841 gt_cv_func_gnugettext1_libc=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 gt_cv_func_gnugettext1_libc=no
6849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6850 conftest$ac_exeext conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6853 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6855 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6861 am_save_CPPFLAGS="$CPPFLAGS"
6863 for element in $INCICONV; do
6865 for x in $CPPFLAGS; do
6867 acl_save_prefix="$prefix"
6868 prefix="$acl_final_prefix"
6869 acl_save_exec_prefix="$exec_prefix"
6870 exec_prefix="$acl_final_exec_prefix"
6872 exec_prefix="$acl_save_exec_prefix"
6873 prefix="$acl_save_prefix"
6875 if test "X$x" = "X$element"; then
6880 if test -z "$haveit"; then
6881 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6886 { echo "$as_me:$LINENO: checking for iconv" >&5
6887 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6888 if test "${am_cv_func_iconv+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 am_cv_func_iconv="no, consider installing GNU libiconv"
6894 cat >conftest.$ac_ext <<_ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6905 iconv_t cd = iconv_open("","");
6906 iconv(cd,NULL,NULL,NULL,NULL);
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_link") 2>conftest.er1
6921 grep -v '^ *+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && {
6926 test -z "$ac_c_werror_flag" ||
6927 test ! -s conftest.err
6928 } && test -s conftest$ac_exeext &&
6929 $as_test_x conftest$ac_exeext; then
6930 am_cv_func_iconv=yes
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6939 conftest$ac_exeext conftest.$ac_ext
6940 if test "$am_cv_func_iconv" != yes; then
6941 am_save_LIBS="$LIBS"
6942 LIBS="$LIBS $LIBICONV"
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6954 iconv_t cd = iconv_open("","");
6955 iconv(cd,NULL,NULL,NULL,NULL);
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_link") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext &&
6978 $as_test_x conftest$ac_exeext; then
6980 am_cv_func_iconv=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6990 LIBS="$am_save_LIBS"
6994 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6995 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6996 if test "$am_cv_func_iconv" = yes; then
6998 cat >>confdefs.h <<\_ACEOF
6999 #define HAVE_ICONV 1
7003 if test "$am_cv_lib_iconv" = yes; then
7004 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7005 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7006 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7007 echo "${ECHO_T}$LIBICONV" >&6; }
7009 CPPFLAGS="$am_save_CPPFLAGS"
7021 acl_save_prefix="$prefix"
7022 prefix="$acl_final_prefix"
7023 acl_save_exec_prefix="$exec_prefix"
7024 exec_prefix="$acl_final_exec_prefix"
7026 eval additional_includedir=\"$includedir\"
7027 eval additional_libdir=\"$libdir\"
7029 exec_prefix="$acl_save_exec_prefix"
7030 prefix="$acl_save_prefix"
7033 # Check whether --with-libintl-prefix was given.
7034 if test "${with_libintl_prefix+set}" = set; then
7035 withval=$with_libintl_prefix;
7036 if test "X$withval" = "Xno"; then
7039 if test "X$withval" = "X"; then
7041 acl_save_prefix="$prefix"
7042 prefix="$acl_final_prefix"
7043 acl_save_exec_prefix="$exec_prefix"
7044 exec_prefix="$acl_final_exec_prefix"
7046 eval additional_includedir=\"$includedir\"
7047 eval additional_libdir=\"$libdir\"
7049 exec_prefix="$acl_save_exec_prefix"
7050 prefix="$acl_save_prefix"
7053 additional_includedir="$withval/include"
7054 additional_libdir="$withval/lib"
7065 names_already_handled=
7066 names_next_round='intl '
7067 while test -n "$names_next_round"; do
7068 names_this_round="$names_next_round"
7070 for name in $names_this_round; do
7072 for n in $names_already_handled; do
7073 if test "$n" = "$name"; then
7078 if test -z "$already_handled"; then
7079 names_already_handled="$names_already_handled $name"
7080 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7081 eval value=\"\$HAVE_LIB$uppername\"
7082 if test -n "$value"; then
7083 if test "$value" = yes; then
7084 eval value=\"\$LIB$uppername\"
7085 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7086 eval value=\"\$LTLIB$uppername\"
7087 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7096 if test $use_additional = yes; then
7097 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7098 found_dir="$additional_libdir"
7099 found_so="$additional_libdir/lib$name.$shlibext"
7100 if test -f "$additional_libdir/lib$name.la"; then
7101 found_la="$additional_libdir/lib$name.la"
7104 if test -f "$additional_libdir/lib$name.$libext"; then
7105 found_dir="$additional_libdir"
7106 found_a="$additional_libdir/lib$name.$libext"
7107 if test -f "$additional_libdir/lib$name.la"; then
7108 found_la="$additional_libdir/lib$name.la"
7113 if test "X$found_dir" = "X"; then
7114 for x in $LDFLAGS $LTLIBINTL; do
7116 acl_save_prefix="$prefix"
7117 prefix="$acl_final_prefix"
7118 acl_save_exec_prefix="$exec_prefix"
7119 exec_prefix="$acl_final_exec_prefix"
7121 exec_prefix="$acl_save_exec_prefix"
7122 prefix="$acl_save_prefix"
7126 dir=`echo "X$x" | sed -e 's/^X-L//'`
7127 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7129 found_so="$dir/lib$name.$shlibext"
7130 if test -f "$dir/lib$name.la"; then
7131 found_la="$dir/lib$name.la"
7134 if test -f "$dir/lib$name.$libext"; then
7136 found_a="$dir/lib$name.$libext"
7137 if test -f "$dir/lib$name.la"; then
7138 found_la="$dir/lib$name.la"
7144 if test "X$found_dir" != "X"; then
7149 if test "X$found_dir" != "X"; then
7150 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7151 if test "X$found_so" != "X"; then
7152 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7156 for x in $ltrpathdirs; do
7157 if test "X$x" = "X$found_dir"; then
7162 if test -z "$haveit"; then
7163 ltrpathdirs="$ltrpathdirs $found_dir"
7165 if test "$hardcode_direct" = yes; then
7166 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7168 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7169 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7171 for x in $rpathdirs; do
7172 if test "X$x" = "X$found_dir"; then
7177 if test -z "$haveit"; then
7178 rpathdirs="$rpathdirs $found_dir"
7182 for x in $LDFLAGS $LIBINTL; do
7184 acl_save_prefix="$prefix"
7185 prefix="$acl_final_prefix"
7186 acl_save_exec_prefix="$exec_prefix"
7187 exec_prefix="$acl_final_exec_prefix"
7189 exec_prefix="$acl_save_exec_prefix"
7190 prefix="$acl_save_prefix"
7192 if test "X$x" = "X-L$found_dir"; then
7197 if test -z "$haveit"; then
7198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7200 if test "$hardcode_minus_L" != no; then
7201 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7203 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7209 if test "X$found_a" != "X"; then
7210 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7212 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7215 additional_includedir=
7216 case "$found_dir" in
7218 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7219 additional_includedir="$basedir/include"
7222 if test "X$additional_includedir" != "X"; then
7223 if test "X$additional_includedir" != "X/usr/include"; then
7225 if test "X$additional_includedir" = "X/usr/local/include"; then
7226 if test -n "$GCC"; then
7228 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7232 if test -z "$haveit"; then
7233 for x in $CPPFLAGS $INCINTL; do
7235 acl_save_prefix="$prefix"
7236 prefix="$acl_final_prefix"
7237 acl_save_exec_prefix="$exec_prefix"
7238 exec_prefix="$acl_final_exec_prefix"
7240 exec_prefix="$acl_save_exec_prefix"
7241 prefix="$acl_save_prefix"
7243 if test "X$x" = "X-I$additional_includedir"; then
7248 if test -z "$haveit"; then
7249 if test -d "$additional_includedir"; then
7250 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7256 if test -n "$found_la"; then
7257 save_libdir="$libdir"
7259 */* | *\\*) . "$found_la" ;;
7260 *) . "./$found_la" ;;
7262 libdir="$save_libdir"
7263 for dep in $dependency_libs; do
7266 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7267 if test "X$additional_libdir" != "X/usr/lib"; then
7269 if test "X$additional_libdir" = "X/usr/local/lib"; then
7270 if test -n "$GCC"; then
7272 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7276 if test -z "$haveit"; then
7278 for x in $LDFLAGS $LIBINTL; do
7280 acl_save_prefix="$prefix"
7281 prefix="$acl_final_prefix"
7282 acl_save_exec_prefix="$exec_prefix"
7283 exec_prefix="$acl_final_exec_prefix"
7285 exec_prefix="$acl_save_exec_prefix"
7286 prefix="$acl_save_prefix"
7288 if test "X$x" = "X-L$additional_libdir"; then
7293 if test -z "$haveit"; then
7294 if test -d "$additional_libdir"; then
7295 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7299 for x in $LDFLAGS $LTLIBINTL; do
7301 acl_save_prefix="$prefix"
7302 prefix="$acl_final_prefix"
7303 acl_save_exec_prefix="$exec_prefix"
7304 exec_prefix="$acl_final_exec_prefix"
7306 exec_prefix="$acl_save_exec_prefix"
7307 prefix="$acl_save_prefix"
7309 if test "X$x" = "X-L$additional_libdir"; then
7314 if test -z "$haveit"; then
7315 if test -d "$additional_libdir"; then
7316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7323 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7324 if test "$enable_rpath" != no; then
7326 for x in $rpathdirs; do
7327 if test "X$x" = "X$dir"; then
7332 if test -z "$haveit"; then
7333 rpathdirs="$rpathdirs $dir"
7336 for x in $ltrpathdirs; do
7337 if test "X$x" = "X$dir"; then
7342 if test -z "$haveit"; then
7343 ltrpathdirs="$ltrpathdirs $dir"
7348 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7354 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7355 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7361 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7368 if test "X$rpathdirs" != "X"; then
7369 if test -n "$hardcode_libdir_separator"; then
7371 for found_dir in $rpathdirs; do
7372 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7374 acl_save_libdir="$libdir"
7376 eval flag=\"$hardcode_libdir_flag_spec\"
7377 libdir="$acl_save_libdir"
7378 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7380 for found_dir in $rpathdirs; do
7381 acl_save_libdir="$libdir"
7383 eval flag=\"$hardcode_libdir_flag_spec\"
7384 libdir="$acl_save_libdir"
7385 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7389 if test "X$ltrpathdirs" != "X"; then
7390 for found_dir in $ltrpathdirs; do
7391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7395 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7396 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7397 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 gt_save_CPPFLAGS="$CPPFLAGS"
7401 CPPFLAGS="$CPPFLAGS $INCINTL"
7402 gt_save_LIBS="$LIBS"
7403 LIBS="$LIBS $LIBINTL"
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <libintl.h>
7411 extern int _nl_msg_cat_cntr;
7416 const char *_nl_expand_alias (const char *);
7420 bindtextdomain ("", "");
7421 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (ac_try="$ac_link"
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_link") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest$ac_exeext &&
7443 $as_test_x conftest$ac_exeext; then
7444 gt_cv_func_gnugettext1_libintl=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 gt_cv_func_gnugettext1_libintl=no
7452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7453 conftest$ac_exeext conftest.$ac_ext
7454 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7455 LIBS="$LIBS $LIBICONV"
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #include <libintl.h>
7463 extern int _nl_msg_cat_cntr;
7468 const char *_nl_expand_alias (const char *);
7472 bindtextdomain ("", "");
7473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_link") 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest$ac_exeext &&
7495 $as_test_x conftest$ac_exeext; then
7496 LIBINTL="$LIBINTL $LIBICONV"
7497 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7498 gt_cv_func_gnugettext1_libintl=yes
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7508 conftest$ac_exeext conftest.$ac_ext
7510 CPPFLAGS="$gt_save_CPPFLAGS"
7511 LIBS="$gt_save_LIBS"
7513 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7514 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7517 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7518 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7519 && test "$PACKAGE" != gettext-runtime \
7520 && test "$PACKAGE" != gettext-tools; }; then
7521 gt_use_preinstalled_gnugettext=yes
7530 if test -n "$INTL_MACOSX_LIBS"; then
7531 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7532 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7533 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7534 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7538 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7539 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define ENABLE_NLS 1
7550 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7551 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7552 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7553 echo "${ECHO_T}$USE_NLS" >&6; }
7554 if test "$USE_NLS" = "yes"; then
7555 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7556 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7557 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7558 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7559 gt_source="external libintl"
7564 gt_source="included intl directory"
7566 { echo "$as_me:$LINENO: result: $gt_source" >&5
7567 echo "${ECHO_T}$gt_source" >&6; }
7570 if test "$USE_NLS" = "yes"; then
7572 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7573 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7574 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7575 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7576 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7577 echo "${ECHO_T}$LIBINTL" >&6; }
7579 for element in $INCINTL; do
7581 for x in $CPPFLAGS; do
7583 acl_save_prefix="$prefix"
7584 prefix="$acl_final_prefix"
7585 acl_save_exec_prefix="$exec_prefix"
7586 exec_prefix="$acl_final_exec_prefix"
7588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7591 if test "X$x" = "X$element"; then
7596 if test -z "$haveit"; then
7597 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_GETTEXT 1
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_DCGETTEXT 1
7627 if test x${prefix} = xNONE ; then
7628 if test `eval echo ${datadir}` = NONE/share ; then
7633 # ------------------------------------------------------------------
7634 # If the user has not set --prefix, we set our default to nothing.
7635 # In this case, if the user has not set --sysconfdir, we set it
7636 # to the package default of /etc/bacula. If either --prefix or
7637 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7638 # ------------------------------------------------------------------
7639 if test x${prefix} = xNONE ; then
7640 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7641 sysconfdir=/etc/bacula
7645 sysconfdir=`eval echo ${sysconfdir}`
7646 datadir=`eval echo ${datadir}`
7647 localedir=`eval echo ${datadir}/locale`
7648 cat >>confdefs.h <<_ACEOF
7649 #define LOCALEDIR "$localedir"
7652 cat >>confdefs.h <<_ACEOF
7653 #define SYSCONFDIR "$sysconfdir"
7657 # -------------------------------------------------------------------------
7658 # If the user has not set --exec-prefix, we default to ${prefix}
7659 # -------------------------------------------------------------------------
7660 if test x${exec_prefix} = xNONE ; then
7661 exec_prefix=${prefix}
7664 # ------------------------------------------------------------------
7665 # If the user has not set --sbindir, we set our default as /sbin
7666 # ------------------------------------------------------------------
7667 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7668 sbindir=${exec_prefix}/sbin
7670 sbindir=`eval echo ${sbindir}`
7673 # -------------------------------------------------------------------------
7674 # If the user has not set --mandir, we default to /usr/share/man
7675 # -------------------------------------------------------------------------
7676 if test x$mandir = x'${prefix}/man' ; then
7677 mandir=/usr/share/man
7681 for ac_prog in msgfmt
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_MSGFMT+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 MSGFMT=$ac_cv_path_MSGFMT
7714 if test -n "$MSGFMT"; then
7715 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7716 echo "${ECHO_T}$MSGFMT" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7723 test -n "$MSGFMT" && break
7725 test -n "$MSGFMT" || MSGFMT="no"
7727 if test "$MSGFMT" = "no"
7729 echo 'msgfmt program not found, disabling NLS !'
7731 USE_INCLUDED_LIBINTL=no
7734 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7735 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7736 if test "${ac_cv_gnu_library_2+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 #include <features.h>
7747 #ifdef __GNU_LIBRARY__
7748 #if (__GLIBC__ >= 2)
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7756 ac_cv_gnu_library_2=yes
7758 ac_cv_gnu_library_2=no
7765 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7766 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7768 GLIBC2="$ac_cv_gnu_library_2"
7772 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7773 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7774 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-lcposix $LIBS"
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (ac_try="$ac_link"
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_link") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest$ac_exeext &&
7818 $as_test_x conftest$ac_exeext; then
7819 ac_cv_lib_cposix_strerror=yes
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_cv_lib_cposix_strerror=no
7827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7828 conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS
7831 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7832 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7833 if test $ac_cv_lib_cposix_strerror = yes; then
7834 LIBS="$LIBS -lcposix"
7839 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7841 if test "${ac_cv_header_stdc+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 ac_cv_header_stdc=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_header_stdc=no
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 if test $ac_cv_header_stdc = yes; then
7891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902 $EGREP "memchr" >/dev/null 2>&1; then
7905 ac_cv_header_stdc=no
7911 if test $ac_cv_header_stdc = yes; then
7912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923 $EGREP "free" >/dev/null 2>&1; then
7926 ac_cv_header_stdc=no
7932 if test $ac_cv_header_stdc = yes; then
7933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934 if test "$cross_compiling" = yes; then
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7945 #if ((' ' & 0x0FF) == 0x020)
7946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7949 # define ISLOWER(c) \
7950 (('a' <= (c) && (c) <= 'i') \
7951 || ('j' <= (c) && (c) <= 'r') \
7952 || ('s' <= (c) && (c) <= 'z'))
7953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7961 for (i = 0; i < 256; i++)
7962 if (XOR (islower (i), ISLOWER (i))
7963 || toupper (i) != TOUPPER (i))
7968 rm -f conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && { ac_try='./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
7990 echo "$as_me: program exited with status $ac_status" >&5
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_header_stdc=no
7997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8003 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8004 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8005 if test $ac_cv_header_stdc = yes; then
8007 cat >>confdefs.h <<\_ACEOF
8008 #define STDC_HEADERS 1
8013 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8014 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8015 if test "${ac_cv_c_const+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8028 /* FIXME: Include the comments suggested by Paul. */
8030 /* Ultrix mips cc rejects this. */
8031 typedef int charset[2];
8033 /* SunOS 4.1.1 cc rejects this. */
8034 char const *const *pcpcc;
8036 /* NEC SVR4.0.2 mips cc rejects this. */
8037 struct point {int x, y;};
8038 static struct point const zero = {0,0};
8039 /* AIX XL C 1.02.0.0 rejects this.
8040 It does not let you subtract one const X* pointer from another in
8041 an arm of an if-expression whose if-part is not a constant
8043 const char *g = "string";
8044 pcpcc = &g + (g ? g-g : 0);
8045 /* HPUX 7.0 cc rejects these. */
8047 ppc = (char**) pcpcc;
8048 pcpcc = (char const *const *) ppc;
8049 { /* SCO 3.2v4 cc rejects this. */
8051 char const *s = 0 ? (char *) 0 : (char const *) 0;
8056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8058 const int *foo = &x[0];
8061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8062 typedef const int *iptr;
8066 { /* AIX XL C 1.02.0.0 rejects this saying
8067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8068 struct s { int j; const int *ap[3]; };
8069 struct s *b; b->j = 5;
8071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8075 return !cs[0] && !zero.x;
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8110 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8111 if test $ac_cv_c_const = no; then
8113 cat >>confdefs.h <<\_ACEOF
8120 { echo "$as_me:$LINENO: checking for signed" >&5
8121 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8122 if test "${bh_cv_c_signed+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8168 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8169 if test $bh_cv_c_signed = no; then
8171 cat >>confdefs.h <<\_ACEOF
8177 { echo "$as_me:$LINENO: checking for inline" >&5
8178 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8179 if test "${ac_cv_c_inline+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 for ac_kw in inline __inline__ __inline; do
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8192 static $ac_kw foo_t static_foo () {return 0; }
8193 $ac_kw foo_t foo () {return 0; }
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8214 ac_cv_c_inline=$ac_kw
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 test "$ac_cv_c_inline" != no && break
8227 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8228 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8231 case $ac_cv_c_inline in
8234 case $ac_cv_c_inline in
8236 *) ac_val=$ac_cv_c_inline;;
8238 cat >>confdefs.h <<_ACEOF
8240 #define inline $ac_val
8246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8257 inttypes.h stdint.h unistd.h
8259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8273 #include <$ac_header>
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
8292 eval "$as_ac_Header=yes"
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 eval "$as_ac_Header=no"
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 ac_res=`eval echo '${'$as_ac_Header'}'`
8303 { echo "$as_me:$LINENO: result: $ac_res" >&5
8304 echo "${ECHO_T}$ac_res" >&6; }
8305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8306 cat >>confdefs.h <<_ACEOF
8307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8315 { echo "$as_me:$LINENO: checking for off_t" >&5
8316 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8317 if test "${ac_cv_type_off_t+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 $ac_includes_default
8327 typedef off_t ac__type_new_;
8331 if ((ac__type_new_ *) 0)
8333 if (sizeof (ac__type_new_))
8339 rm -f conftest.$ac_objext
8340 if { (ac_try="$ac_compile"
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_compile") 2>conftest.er1
8348 grep -v '^ *+' conftest.er1 >conftest.err
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } && {
8353 test -z "$ac_c_werror_flag" ||
8354 test ! -s conftest.err
8355 } && test -s conftest.$ac_objext; then
8356 ac_cv_type_off_t=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8367 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8368 if test $ac_cv_type_off_t = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373 #define off_t long int
8378 { echo "$as_me:$LINENO: checking for size_t" >&5
8379 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8380 if test "${ac_cv_type_size_t+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 typedef size_t ac__type_new_;
8394 if ((ac__type_new_ *) 0)
8396 if (sizeof (ac__type_new_))
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_type_size_t=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_type_size_t=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8430 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8431 if test $ac_cv_type_size_t = yes; then
8435 cat >>confdefs.h <<_ACEOF
8436 #define size_t unsigned int
8442 { echo "$as_me:$LINENO: checking for long long" >&5
8443 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8444 if test "${ac_cv_type_long_long+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 long long ll = 1LL; int i = 63;
8457 long long llmax = (long long) -1;
8458 return ll << i | ll >> i | llmax / ll | llmax % ll;
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (ac_try="$ac_link"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_link") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest$ac_exeext &&
8480 $as_test_x conftest$ac_exeext; then
8481 ac_cv_type_long_long=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_type_long_long=no
8489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490 conftest$ac_exeext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8493 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8494 if test $ac_cv_type_long_long = yes; then
8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_LONG_LONG 1
8503 { echo "$as_me:$LINENO: checking for long double" >&5
8504 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8505 if test "${gt_cv_c_long_double+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 if test "$GCC" = yes; then
8509 gt_cv_c_long_double=yes
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8518 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8519 long double foo = 0.0;
8520 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8521 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 gt_cv_c_long_double=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 gt_cv_c_long_double=no
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8560 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8561 if test $gt_cv_c_long_double = yes; then
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_LONG_DOUBLE 1
8570 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8571 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8572 if test "${gt_cv_c_wchar_t+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 wchar_t foo = (wchar_t)'\0';
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8619 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8620 if test $gt_cv_c_wchar_t = yes; then
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_WCHAR_T 1
8629 { echo "$as_me:$LINENO: checking for wint_t" >&5
8630 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8631 if test "${gt_cv_c_wint_t+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 wint_t foo = (wchar_t)'\0';
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8678 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8679 if test $gt_cv_c_wint_t = yes; then
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_WINT_T 1
8688 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8689 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8690 if test "${gl_cv_header_inttypes_h+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8700 #include <inttypes.h>
8704 uintmax_t i = (uintmax_t) -1;
8709 rm -f conftest.$ac_objext
8710 if { (ac_try="$ac_compile"
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_compile") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest.$ac_objext; then
8726 gl_cv_header_inttypes_h=yes
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 gl_cv_header_inttypes_h=no
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8737 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8738 if test $gl_cv_header_inttypes_h = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8747 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8748 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8749 if test "${gl_cv_header_stdint_h+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 #include <sys/types.h>
8763 uintmax_t i = (uintmax_t) -1;
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8777 grep -v '^ *+' conftest.er1 >conftest.err
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 gl_cv_header_stdint_h=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 gl_cv_header_stdint_h=no
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8796 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8797 if test $gl_cv_header_stdint_h = yes; then
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_STDINT_H_WITH_UINTMAX 1
8808 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8809 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8810 if test "${gt_cv_c_intmax_t+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8822 #if HAVE_STDINT_H_WITH_UINTMAX
8825 #if HAVE_INTTYPES_H_WITH_UINTMAX
8826 #include <inttypes.h>
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
8854 gt_cv_c_intmax_t=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8865 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8866 if test $gt_cv_c_intmax_t = yes; then
8868 cat >>confdefs.h <<\_ACEOF
8869 #define HAVE_INTMAX_T 1
8876 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8877 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8878 if test "${gt_cv_func_printf_posix+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 if test "$cross_compiling" = yes; then
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8897 $EGREP "notposix" >/dev/null 2>&1; then
8898 gt_cv_func_printf_posix="guessing no"
8900 gt_cv_func_printf_posix="guessing yes"
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8915 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8916 dollar expansion (possibly an autoconf bug). */
8917 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8918 static char buf[100];
8921 sprintf (buf, format, 33, 55);
8922 return (strcmp (buf, "55 33") != 0);
8925 rm -f conftest$ac_exeext
8926 if { (ac_try="$ac_link"
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_link") 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8936 { (case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_try") 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 gt_cv_func_printf_posix=yes
8947 echo "$as_me: program exited with status $ac_status" >&5
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8952 gt_cv_func_printf_posix=no
8954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8961 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8962 case $gt_cv_func_printf_posix in
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_POSIX_PRINTF 1
8972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8973 # for constant arguments. Useless!
8974 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8976 if test "${ac_cv_working_alloca_h+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8989 char *p = (char *) alloca (2 * sizeof (int));
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_link") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest$ac_exeext &&
9012 $as_test_x conftest$ac_exeext; then
9013 ac_cv_working_alloca_h=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_working_alloca_h=no
9021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9022 conftest$ac_exeext conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9025 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9026 if test $ac_cv_working_alloca_h = yes; then
9028 cat >>confdefs.h <<\_ACEOF
9029 #define HAVE_ALLOCA_H 1
9034 { echo "$as_me:$LINENO: checking for alloca" >&5
9035 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9036 if test "${ac_cv_func_alloca_works+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9046 # define alloca __builtin_alloca
9049 # include <malloc.h>
9050 # define alloca _alloca
9052 # ifdef HAVE_ALLOCA_H
9053 # include <alloca.h>
9058 # ifndef alloca /* predefined by HP cc +Olibcalls */
9069 char *p = (char *) alloca (1);
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_link") 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && {
9089 test -z "$ac_c_werror_flag" ||
9090 test ! -s conftest.err
9091 } && test -s conftest$ac_exeext &&
9092 $as_test_x conftest$ac_exeext; then
9093 ac_cv_func_alloca_works=yes
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_func_alloca_works=no
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102 conftest$ac_exeext conftest.$ac_ext
9104 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9107 if test $ac_cv_func_alloca_works = yes; then
9109 cat >>confdefs.h <<\_ACEOF
9110 #define HAVE_ALLOCA 1
9114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9115 # that cause trouble. Some versions do not even contain alloca or
9116 # contain a buggy version. If you still want to use their alloca,
9117 # use ar to extract alloca.o from them instead of compiling alloca.c.
9119 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9121 cat >>confdefs.h <<\_ACEOF
9126 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9128 if test "${ac_cv_os_cray+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #if defined CRAY && ! defined CRAY2
9144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9145 $EGREP "webecray" >/dev/null 2>&1; then
9153 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9154 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9155 if test $ac_cv_os_cray = yes; then
9156 for ac_func in _getb67 GETB67 getb67; do
9157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9171 #define $ac_func innocuous_$ac_func
9173 /* System header to define __stub macros and hopefully few prototypes,
9174 which can conflict with char $ac_func (); below.
9175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9176 <limits.h> exists even on freestanding compilers. */
9179 # include <limits.h>
9181 # include <assert.h>
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9193 /* The GNU C library defines this for functions which it implements
9194 to always fail with ENOSYS. Some functions are actually named
9195 something starting with __ and the normal name is an alias. */
9196 #if defined __stub_$ac_func || defined __stub___$ac_func
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (ac_try="$ac_link"
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest$ac_exeext &&
9225 $as_test_x conftest$ac_exeext; then
9226 eval "$as_ac_var=yes"
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 eval "$as_ac_var=no"
9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235 conftest$ac_exeext conftest.$ac_ext
9237 ac_res=`eval echo '${'$as_ac_var'}'`
9238 { echo "$as_me:$LINENO: result: $ac_res" >&5
9239 echo "${ECHO_T}$ac_res" >&6; }
9240 if test `eval echo '${'$as_ac_var'}'` = yes; then
9242 cat >>confdefs.h <<_ACEOF
9243 #define CRAY_STACKSEG_END $ac_func
9252 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9253 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9254 if test "${ac_cv_c_stack_direction+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 if test "$cross_compiling" = yes; then
9258 ac_cv_c_stack_direction=0
9260 cat >conftest.$ac_ext <<_ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9268 find_stack_direction ()
9270 static char *addr = 0;
9275 return find_stack_direction ();
9278 return (&dummy > addr) ? 1 : -1;
9284 return find_stack_direction () < 0;
9287 rm -f conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_link") 2>&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9298 { (case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_try") 2>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 ac_cv_c_stack_direction=1
9309 echo "$as_me: program exited with status $ac_status" >&5
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9314 ac_cv_c_stack_direction=-1
9316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9321 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9324 cat >>confdefs.h <<_ACEOF
9325 #define STACK_DIRECTION $ac_cv_c_stack_direction
9333 for ac_header in stdlib.h unistd.h
9335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 ac_res=`eval echo '${'$as_ac_Header'}'`
9343 { echo "$as_me:$LINENO: result: $ac_res" >&5
9344 echo "${ECHO_T}$ac_res" >&6; }
9346 # Is the header compilable?
9347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 $ac_includes_default
9356 #include <$ac_header>
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_compile") 2>conftest.er1
9367 grep -v '^ *+' conftest.er1 >conftest.err
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && {
9372 test -z "$ac_c_werror_flag" ||
9373 test ! -s conftest.err
9374 } && test -s conftest.$ac_objext; then
9375 ac_header_compiler=yes
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_header_compiler=no
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9385 echo "${ECHO_T}$ac_header_compiler" >&6; }
9387 # Is the header present?
9388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 #include <$ac_header>
9398 if { (ac_try="$ac_cpp conftest.$ac_ext"
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9406 grep -v '^ *+' conftest.er1 >conftest.err
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } >/dev/null && {
9411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9414 ac_header_preproc=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_header_preproc=no
9422 rm -f conftest.err conftest.$ac_ext
9423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9424 echo "${ECHO_T}$ac_header_preproc" >&6; }
9426 # So? What about this header?
9427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9433 ac_header_preproc=yes
9436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 eval "$as_ac_Header=\$ac_header_preproc"
9458 ac_res=`eval echo '${'$as_ac_Header'}'`
9459 { echo "$as_me:$LINENO: result: $ac_res" >&5
9460 echo "${ECHO_T}$ac_res" >&6; }
9463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464 cat >>confdefs.h <<_ACEOF
9465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9473 for ac_func in getpagesize
9475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9489 #define $ac_func innocuous_$ac_func
9491 /* System header to define __stub macros and hopefully few prototypes,
9492 which can conflict with char $ac_func (); below.
9493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494 <limits.h> exists even on freestanding compilers. */
9497 # include <limits.h>
9499 # include <assert.h>
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9511 /* The GNU C library defines this for functions which it implements
9512 to always fail with ENOSYS. Some functions are actually named
9513 something starting with __ and the normal name is an alias. */
9514 #if defined __stub_$ac_func || defined __stub___$ac_func
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 eval "$as_ac_var=yes"
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 eval "$as_ac_var=no"
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9555 ac_res=`eval echo '${'$as_ac_var'}'`
9556 { echo "$as_me:$LINENO: result: $ac_res" >&5
9557 echo "${ECHO_T}$ac_res" >&6; }
9558 if test `eval echo '${'$as_ac_var'}'` = yes; then
9559 cat >>confdefs.h <<_ACEOF
9560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9566 { echo "$as_me:$LINENO: checking for working mmap" >&5
9567 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9568 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 if test "$cross_compiling" = yes; then
9572 ac_cv_func_mmap_fixed_mapped=no
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 $ac_includes_default
9581 /* malloc might have been renamed as rpl_malloc. */
9584 /* Thanks to Mike Haertel and Jim Avera for this test.
9585 Here is a matrix of mmap possibilities:
9586 mmap private not fixed
9587 mmap private fixed at somewhere currently unmapped
9588 mmap private fixed at somewhere already mapped
9589 mmap shared not fixed
9590 mmap shared fixed at somewhere currently unmapped
9591 mmap shared fixed at somewhere already mapped
9592 For private mappings, we should verify that changes cannot be read()
9593 back from the file, nor mmap's back from the file at a different
9594 address. (There have been systems where private was not correctly
9595 implemented like the infamous i386 svr4.0, and systems where the
9596 VM page cache was not coherent with the file system buffer cache
9597 like early versions of FreeBSD and possibly contemporary NetBSD.)
9598 For shared mappings, we should conversely verify that changes get
9599 propagated back to all the places they're supposed to be.
9601 Grep wants private fixed already mapped.
9602 The main things grep needs to know about mmap are:
9603 * does it exist and is it safe to write into the mmap'd area
9604 * how to use it (BSD variants) */
9607 #include <sys/mman.h>
9609 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9613 /* This mess was copied from the GNU getpagesize.h. */
9614 #ifndef HAVE_GETPAGESIZE
9615 /* Assume that all systems that can run configure have sys/param.h. */
9616 # ifndef HAVE_SYS_PARAM_H
9617 # define HAVE_SYS_PARAM_H 1
9620 # ifdef _SC_PAGESIZE
9621 # define getpagesize() sysconf(_SC_PAGESIZE)
9622 # else /* no _SC_PAGESIZE */
9623 # ifdef HAVE_SYS_PARAM_H
9624 # include <sys/param.h>
9625 # ifdef EXEC_PAGESIZE
9626 # define getpagesize() EXEC_PAGESIZE
9627 # else /* no EXEC_PAGESIZE */
9629 # define getpagesize() NBPG * CLSIZE
9632 # endif /* no CLSIZE */
9633 # else /* no NBPG */
9635 # define getpagesize() NBPC
9636 # else /* no NBPC */
9638 # define getpagesize() PAGESIZE
9639 # endif /* PAGESIZE */
9640 # endif /* no NBPC */
9641 # endif /* no NBPG */
9642 # endif /* no EXEC_PAGESIZE */
9643 # else /* no HAVE_SYS_PARAM_H */
9644 # define getpagesize() 8192 /* punt totally */
9645 # endif /* no HAVE_SYS_PARAM_H */
9646 # endif /* no _SC_PAGESIZE */
9648 #endif /* no HAVE_GETPAGESIZE */
9653 char *data, *data2, *data3;
9657 pagesize = getpagesize ();
9659 /* First, make a file with some known garbage in it. */
9660 data = (char *) malloc (pagesize);
9663 for (i = 0; i < pagesize; ++i)
9664 *(data + i) = rand ();
9666 fd = creat ("conftest.mmap", 0600);
9669 if (write (fd, data, pagesize) != pagesize)
9673 /* Next, try to mmap the file at a fixed address which already has
9674 something else allocated at it. If we can, also make sure that
9675 we see the same garbage. */
9676 fd = open ("conftest.mmap", O_RDWR);
9679 data2 = (char *) malloc (2 * pagesize);
9682 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9683 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9684 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9686 for (i = 0; i < pagesize; ++i)
9687 if (*(data + i) != *(data2 + i))
9690 /* Finally, make sure that changes to the mapped area do not
9691 percolate back to the file as seen by read(). (This is a bug on
9692 some variants of i386 svr4.0.) */
9693 for (i = 0; i < pagesize; ++i)
9694 *(data2 + i) = *(data2 + i) + 1;
9695 data3 = (char *) malloc (pagesize);
9698 if (read (fd, data3, pagesize) != pagesize)
9700 for (i = 0; i < pagesize; ++i)
9701 if (*(data + i) != *(data3 + i))
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_func_mmap_fixed_mapped=yes
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_func_mmap_fixed_mapped=no
9736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9741 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9742 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9743 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9753 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9754 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9755 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9765 #include <features.h>
9766 #ifdef __GNU_LIBRARY__
9767 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9774 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9775 ac_cv_gnu_library_2_1=yes
9777 ac_cv_gnu_library_2_1=no
9784 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9785 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9787 GLIBC21="$ac_cv_gnu_library_2_1"
9792 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9793 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9794 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 if test "$cross_compiling" = yes; then
9800 # Guess based on the CPU.
9802 alpha* | i3456786 | m68k | s390*)
9803 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9805 gt_cv_int_divbyzero_sigfpe="guessing no";;
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9821 sigfpe_handler (int sig)
9823 sigfpe_handler (sig) int sig;
9826 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9827 exit (sig != SIGFPE);
9837 signal (SIGFPE, sigfpe_handler);
9838 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9839 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9840 signal (SIGTRAP, sigfpe_handler);
9842 /* Linux/SPARC yields signal SIGILL. */
9843 #if defined (__sparc__) && defined (__linux__)
9844 signal (SIGILL, sigfpe_handler);
9853 rm -f conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gt_cv_int_divbyzero_sigfpe=yes
9875 echo "$as_me: program exited with status $ac_status" >&5
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9880 gt_cv_int_divbyzero_sigfpe=no
9882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9888 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9889 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9890 case "$gt_cv_int_divbyzero_sigfpe" in
9895 cat >>confdefs.h <<_ACEOF
9896 #define INTDIV0_RAISES_SIGFPE $value
9901 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9902 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9903 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 unsigned long long ull = 1ULL; int i = 63;
9916 unsigned long long ullmax = (unsigned long long) -1;
9917 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_link") 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest$ac_exeext &&
9939 $as_test_x conftest$ac_exeext; then
9940 ac_cv_type_unsigned_long_long=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_type_unsigned_long_long=no
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949 conftest$ac_exeext conftest.$ac_ext
9951 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9952 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9953 if test $ac_cv_type_unsigned_long_long = yes; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_UNSIGNED_LONG_LONG 1
9964 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9966 test $ac_cv_type_unsigned_long_long = yes \
9967 && ac_type='unsigned long long' \
9968 || ac_type='unsigned long'
9970 cat >>confdefs.h <<_ACEOF
9971 #define uintmax_t $ac_type
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_UINTMAX_T 1
9983 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9984 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9985 if test "${gt_cv_header_inttypes_h+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 #include <sys/types.h>
9996 #include <inttypes.h>
10005 rm -f conftest.$ac_objext
10006 if { (ac_try="$ac_compile"
10007 case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_compile") 2>conftest.er1
10014 grep -v '^ *+' conftest.er1 >conftest.err
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest.$ac_objext; then
10022 gt_cv_header_inttypes_h=yes
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 gt_cv_header_inttypes_h=no
10030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10034 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10035 if test $gt_cv_header_inttypes_h = yes; then
10037 cat >>confdefs.h <<_ACEOF
10038 #define HAVE_INTTYPES_H 1
10045 if test $gt_cv_header_inttypes_h = yes; then
10046 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10047 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10048 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <inttypes.h>
10071 rm -f conftest.$ac_objext
10072 if { (ac_try="$ac_compile"
10073 case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10088 gt_cv_inttypes_pri_broken=no
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 gt_cv_inttypes_pri_broken=yes
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10100 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10102 if test "$gt_cv_inttypes_pri_broken" = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105 #define PRI_MACROS_BROKEN 1
10112 for ac_header in stdint.h
10114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_res=`eval echo '${'$as_ac_Header'}'`
10122 { echo "$as_me:$LINENO: result: $ac_res" >&5
10123 echo "${ECHO_T}$ac_res" >&6; }
10125 # Is the header compilable?
10126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 $ac_includes_default
10135 #include <$ac_header>
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_header_compiler=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_header_compiler=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10164 echo "${ECHO_T}$ac_header_compiler" >&6; }
10166 # Is the header present?
10167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <$ac_header>
10177 if { (ac_try="$ac_cpp conftest.$ac_ext"
10178 case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10185 grep -v '^ *+' conftest.er1 >conftest.err
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } >/dev/null && {
10190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10191 test ! -s conftest.err
10193 ac_header_preproc=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_header_preproc=no
10201 rm -f conftest.err conftest.$ac_ext
10202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10203 echo "${ECHO_T}$ac_header_preproc" >&6; }
10205 # So? What about this header?
10206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10212 ac_header_preproc=yes
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 eval "$as_ac_Header=\$ac_header_preproc"
10237 ac_res=`eval echo '${'$as_ac_Header'}'`
10238 { echo "$as_me:$LINENO: result: $ac_res" >&5
10239 echo "${ECHO_T}$ac_res" >&6; }
10242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10243 cat >>confdefs.h <<_ACEOF
10244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10251 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10252 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10261 #include <limits.h>
10263 #include <stdint.h>
10270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10271 $EGREP "Found it" >/dev/null 2>&1; then
10276 if test -z "$result"; then
10277 if test "$cross_compiling" = yes; then
10278 # Depending upon the size, compute the lo and hi bounds.
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <stddef.h>
10289 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_compile") 2>conftest.er1
10305 grep -v '^ *+' conftest.er1 >conftest.err
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && {
10310 test -z "$ac_c_werror_flag" ||
10311 test ! -s conftest.err
10312 } && test -s conftest.$ac_objext; then
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 #include <stddef.h>
10325 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_compile") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest.$ac_objext; then
10349 ac_hi=$ac_mid; break
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_lo=`expr $ac_mid + 1`
10355 if test $ac_lo -le $ac_mid; then
10359 ac_mid=`expr 2 '*' $ac_mid + 1`
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 #include <stddef.h>
10378 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stddef.h>
10414 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10421 rm -f conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_compile") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest.$ac_objext; then
10438 ac_lo=$ac_mid; break
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_hi=`expr '(' $ac_mid ')' - 1`
10444 if test $ac_mid -le $ac_hi; then
10448 ac_mid=`expr 2 '*' $ac_mid`
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 # Binary search between lo and hi bounds.
10465 while test "x$ac_lo" != "x$ac_hi"; do
10466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 #include <stddef.h>
10477 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest.$ac_objext; then
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_lo=`expr '(' $ac_mid ')' + 1`
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 ?*) res_hi=$ac_lo;;
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <stddef.h>
10523 static long int longval () { return ~(size_t)0 / 10; }
10524 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10526 #include <stdlib.h>
10531 FILE *f = fopen ("conftest.val", "w");
10534 if ((~(size_t)0 / 10) < 0)
10536 long int i = longval ();
10537 if (i != (~(size_t)0 / 10))
10539 fprintf (f, "%ld\n", i);
10543 unsigned long int i = ulongval ();
10544 if (i != (~(size_t)0 / 10))
10546 fprintf (f, "%lu\n", i);
10548 return ferror (f) || fclose (f) != 0;
10554 rm -f conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10565 { (case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_try") 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574 res_hi=`cat conftest.val`
10576 echo "$as_me: program exited with status $ac_status" >&5
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ( exit $ac_status )
10583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10587 if test "$cross_compiling" = yes; then
10588 # Depending upon the size, compute the lo and hi bounds.
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <stddef.h>
10599 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_compile") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest.$ac_objext; then
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #include <stddef.h>
10635 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10642 rm -f conftest.$ac_objext
10643 if { (ac_try="$ac_compile"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_compile") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && {
10656 test -z "$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10658 } && test -s conftest.$ac_objext; then
10659 ac_hi=$ac_mid; break
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_lo=`expr $ac_mid + 1`
10665 if test $ac_lo -le $ac_mid; then
10669 ac_mid=`expr 2 '*' $ac_mid + 1`
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <stddef.h>
10688 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.$ac_objext; then
10714 cat >conftest.$ac_ext <<_ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 #include <stddef.h>
10724 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_compile") 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest.$ac_objext; then
10748 ac_lo=$ac_mid; break
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_hi=`expr '(' $ac_mid ')' - 1`
10754 if test $ac_mid -le $ac_hi; then
10758 ac_mid=`expr 2 '*' $ac_mid`
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 # Binary search between lo and hi bounds.
10775 while test "x$ac_lo" != "x$ac_hi"; do
10776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 #include <stddef.h>
10787 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_compile") 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest.$ac_objext; then
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_lo=`expr '(' $ac_mid ')' + 1`
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 ?*) res_lo=$ac_lo;;
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stddef.h>
10833 static long int longval () { return ~(size_t)0 % 10; }
10834 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10836 #include <stdlib.h>
10841 FILE *f = fopen ("conftest.val", "w");
10844 if ((~(size_t)0 % 10) < 0)
10846 long int i = longval ();
10847 if (i != (~(size_t)0 % 10))
10849 fprintf (f, "%ld\n", i);
10853 unsigned long int i = ulongval ();
10854 if (i != (~(size_t)0 % 10))
10856 fprintf (f, "%lu\n", i);
10858 return ferror (f) || fclose (f) != 0;
10864 rm -f conftest$ac_exeext
10865 if { (ac_try="$ac_link"
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_link") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 res_lo=`cat conftest.val`
10886 echo "$as_me: program exited with status $ac_status" >&5
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ( exit $ac_status )
10893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10897 if test "$cross_compiling" = yes; then
10898 # Depending upon the size, compute the lo and hi bounds.
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 #include <stddef.h>
10909 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && {
10930 test -z "$ac_c_werror_flag" ||
10931 test ! -s conftest.err
10932 } && test -s conftest.$ac_objext; then
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 #include <stddef.h>
10945 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10952 rm -f conftest.$ac_objext
10953 if { (ac_try="$ac_compile"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_compile") 2>conftest.er1
10961 grep -v '^ *+' conftest.er1 >conftest.err
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_c_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest.$ac_objext; then
10969 ac_hi=$ac_mid; break
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_lo=`expr $ac_mid + 1`
10975 if test $ac_lo -le $ac_mid; then
10979 ac_mid=`expr 2 '*' $ac_mid + 1`
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <stddef.h>
10998 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_compile") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest.$ac_objext; then
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 #include <stddef.h>
11034 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11041 rm -f conftest.$ac_objext
11042 if { (ac_try="$ac_compile"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_compile") 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
11058 ac_lo=$ac_mid; break
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_hi=`expr '(' $ac_mid ')' - 1`
11064 if test $ac_mid -le $ac_hi; then
11068 ac_mid=`expr 2 '*' $ac_mid`
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 # Binary search between lo and hi bounds.
11085 while test "x$ac_lo" != "x$ac_hi"; do
11086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11087 cat >conftest.$ac_ext <<_ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 #include <stddef.h>
11097 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest.$ac_objext; then
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ac_lo=`expr '(' $ac_mid ')' + 1`
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 ?*) fits_in_uint=$ac_lo;;
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 #include <stddef.h>
11143 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11144 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11146 #include <stdlib.h>
11151 FILE *f = fopen ("conftest.val", "w");
11154 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11156 long int i = longval ();
11157 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11159 fprintf (f, "%ld\n", i);
11163 unsigned long int i = ulongval ();
11164 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11166 fprintf (f, "%lu\n", i);
11168 return ferror (f) || fclose (f) != 0;
11174 rm -f conftest$ac_exeext
11175 if { (ac_try="$ac_link"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_link") 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11185 { (case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_try") 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 fits_in_uint=`cat conftest.val`
11196 echo "$as_me: program exited with status $ac_status" >&5
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ( exit $ac_status )
11203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11207 if test "$fits_in_uint" = 1; then
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <stddef.h>
11216 extern unsigned long foo;
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 if test -z "$result"; then
11254 if test "$fits_in_uint" = 1; then
11255 result="$res_hi$res_lo"U
11257 result="$res_hi$res_lo"UL
11260 result='~(size_t)0'
11263 { echo "$as_me:$LINENO: result: $result" >&5
11264 echo "${ECHO_T}$result" >&6; }
11265 if test "$result" != yes; then
11267 cat >>confdefs.h <<_ACEOF
11268 #define SIZE_MAX $result
11277 for ac_header in stdint.h
11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11290 # Is the header compilable?
11291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 #include <$ac_header>
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_compile") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest.$ac_objext; then
11319 ac_header_compiler=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_compiler=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <$ac_header>
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null && {
11355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11358 ac_header_preproc=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_header_preproc=no
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11370 # So? What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377 ac_header_preproc=yes
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 eval "$as_ac_Header=\$ac_header_preproc"
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11424 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11425 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 $ac_includes_default
11435 typedef ptrdiff_t ac__type_new_;
11439 if ((ac__type_new_ *) 0)
11441 if (sizeof (ac__type_new_))
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.$ac_objext; then
11464 ac_cv_type_ptrdiff_t=yes
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_cv_type_ptrdiff_t=no
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11474 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11475 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11476 if test $ac_cv_type_ptrdiff_t = yes; then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define ptrdiff_t long
11497 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11498 stdlib.h string.h unistd.h sys/param.h
11500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 ac_res=`eval echo '${'$as_ac_Header'}'`
11508 { echo "$as_me:$LINENO: result: $ac_res" >&5
11509 echo "${ECHO_T}$ac_res" >&6; }
11511 # Is the header compilable?
11512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 #include <$ac_header>
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && {
11537 test -z "$ac_c_werror_flag" ||
11538 test ! -s conftest.err
11539 } && test -s conftest.$ac_objext; then
11540 ac_header_compiler=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_compiler=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 echo "${ECHO_T}$ac_header_compiler" >&6; }
11552 # Is the header present?
11553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <$ac_header>
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null && {
11576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11579 ac_header_preproc=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_preproc=no
11587 rm -f conftest.err conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11589 echo "${ECHO_T}$ac_header_preproc" >&6; }
11591 # So? What about this header?
11592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11598 ac_header_preproc=yes
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 eval "$as_ac_Header=\$ac_header_preproc"
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11660 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11661 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11662 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 cat >conftest.$ac_ext <<_ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11679 #define $ac_func innocuous_$ac_func
11681 /* System header to define __stub macros and hopefully few prototypes,
11682 which can conflict with char $ac_func (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11687 # include <limits.h>
11689 # include <assert.h>
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11701 /* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704 #if defined __stub_$ac_func || defined __stub___$ac_func
11711 return $ac_func ();
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext &&
11733 $as_test_x conftest$ac_exeext; then
11734 eval "$as_ac_var=yes"
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 eval "$as_ac_var=no"
11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11745 ac_res=`eval echo '${'$as_ac_var'}'`
11746 { echo "$as_me:$LINENO: result: $ac_res" >&5
11747 echo "${ECHO_T}$ac_res" >&6; }
11748 if test `eval echo '${'$as_ac_var'}'` = yes; then
11749 cat >>confdefs.h <<_ACEOF
11750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11759 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11760 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11775 char *p = (char *) _snprintf;
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest.$ac_objext; then
11799 ac_cv_have_decl__snprintf=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_have_decl__snprintf=no
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11810 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11811 if test $ac_cv_have_decl__snprintf = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define HAVE_DECL__SNPRINTF $gt_value
11823 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11824 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11825 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11840 char *p = (char *) _snwprintf;
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 ac_cv_have_decl__snwprintf=yes
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_cv_have_decl__snwprintf=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11875 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11876 if test $ac_cv_have_decl__snwprintf = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define HAVE_DECL__SNWPRINTF $gt_value
11889 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11890 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11891 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11905 #ifndef feof_unlocked
11906 char *p = (char *) feof_unlocked;
11913 rm -f conftest.$ac_objext
11914 if { (ac_try="$ac_compile"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_compile") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest.$ac_objext; then
11930 ac_cv_have_decl_feof_unlocked=yes
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_cv_have_decl_feof_unlocked=no
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11941 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11942 if test $ac_cv_have_decl_feof_unlocked = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11954 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11955 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11956 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11970 #ifndef fgets_unlocked
11971 char *p = (char *) fgets_unlocked;
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995 ac_cv_have_decl_fgets_unlocked=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_have_decl_fgets_unlocked=no
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12006 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12007 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12013 cat >>confdefs.h <<_ACEOF
12014 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12019 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12020 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12021 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12035 #ifndef getc_unlocked
12036 char *p = (char *) getc_unlocked;
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 ac_cv_have_decl_getc_unlocked=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_cv_have_decl_getc_unlocked=no
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12071 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12072 if test $ac_cv_have_decl_getc_unlocked = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12084 case $gt_cv_func_printf_posix in
12085 *yes) HAVE_POSIX_PRINTF=1 ;;
12086 *) HAVE_POSIX_PRINTF=0 ;;
12089 if test "$ac_cv_func_asprintf" = yes; then
12095 if test "$ac_cv_func_snprintf" = yes; then
12101 if test "$ac_cv_func_wprintf" = yes; then
12113 am_save_CPPFLAGS="$CPPFLAGS"
12115 for element in $INCICONV; do
12117 for x in $CPPFLAGS; do
12119 acl_save_prefix="$prefix"
12120 prefix="$acl_final_prefix"
12121 acl_save_exec_prefix="$exec_prefix"
12122 exec_prefix="$acl_final_exec_prefix"
12124 exec_prefix="$acl_save_exec_prefix"
12125 prefix="$acl_save_prefix"
12127 if test "X$x" = "X$element"; then
12132 if test -z "$haveit"; then
12133 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12138 { echo "$as_me:$LINENO: checking for iconv" >&5
12139 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12140 if test "${am_cv_func_iconv+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 am_cv_func_iconv="no, consider installing GNU libiconv"
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <stdlib.h>
12157 iconv_t cd = iconv_open("","");
12158 iconv(cd,NULL,NULL,NULL,NULL);
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
12182 am_cv_func_iconv=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12192 if test "$am_cv_func_iconv" != yes; then
12193 am_save_LIBS="$LIBS"
12194 LIBS="$LIBS $LIBICONV"
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 #include <stdlib.h>
12206 iconv_t cd = iconv_open("","");
12207 iconv(cd,NULL,NULL,NULL,NULL);
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext &&
12230 $as_test_x conftest$ac_exeext; then
12231 am_cv_lib_iconv=yes
12232 am_cv_func_iconv=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS="$am_save_LIBS"
12246 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12247 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12248 if test "$am_cv_func_iconv" = yes; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_ICONV 1
12255 if test "$am_cv_lib_iconv" = yes; then
12256 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12257 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12258 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12259 echo "${ECHO_T}$LIBICONV" >&6; }
12261 CPPFLAGS="$am_save_CPPFLAGS"
12268 if test "$am_cv_func_iconv" = yes; then
12269 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12270 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12271 if test "${am_cv_proto_iconv+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12282 #include <stdlib.h>
12288 #if defined(__STDC__) || defined(__cplusplus)
12289 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest.$ac_objext; then
12319 am_cv_proto_iconv_arg1=""
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 am_cv_proto_iconv_arg1="const"
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328 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);"
12331 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12332 { echo "$as_me:$LINENO: result: ${ac_t:-
12333 }$am_cv_proto_iconv" >&5
12334 echo "${ECHO_T}${ac_t:-
12335 }$am_cv_proto_iconv" >&6; }
12337 cat >>confdefs.h <<_ACEOF
12338 #define ICONV_CONST $am_cv_proto_iconv_arg1
12344 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12345 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12346 if test "${am_cv_langinfo_codeset+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include <langinfo.h>
12359 char* cs = nl_langinfo(CODESET);
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest$ac_exeext &&
12381 $as_test_x conftest$ac_exeext; then
12382 am_cv_langinfo_codeset=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 am_cv_langinfo_codeset=no
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391 conftest$ac_exeext conftest.$ac_ext
12394 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12395 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12396 if test $am_cv_langinfo_codeset = yes; then
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_LANGINFO_CODESET 1
12404 if test $ac_cv_header_locale_h = yes; then
12406 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12407 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12408 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <locale.h>
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_link") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest$ac_exeext &&
12443 $as_test_x conftest$ac_exeext; then
12444 gt_cv_val_LC_MESSAGES=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 gt_cv_val_LC_MESSAGES=no
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12455 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12456 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12457 if test $gt_cv_val_LC_MESSAGES = yes; then
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_LC_MESSAGES 1
12467 if test -n "$INTL_MACOSX_LIBS"; then
12468 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12471 for ac_prog in bison
12473 # Extract the first word of "$ac_prog", so it can be a program name with args.
12474 set dummy $ac_prog; ac_word=$2
12475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 if test -n "$INTLBISON"; then
12481 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_prog_INTLBISON="$ac_prog"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 INTLBISON=$ac_cv_prog_INTLBISON
12501 if test -n "$INTLBISON"; then
12502 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12503 echo "${ECHO_T}$INTLBISON" >&6; }
12505 { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12510 test -n "$INTLBISON" && break
12513 if test -z "$INTLBISON"; then
12516 { echo "$as_me:$LINENO: checking version of bison" >&5
12517 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12518 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12519 case $ac_prog_version in
12520 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12521 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12522 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12523 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12525 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12526 echo "${ECHO_T}$ac_prog_version" >&6; }
12528 if test $ac_verc_fail = yes; then
12547 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12548 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12549 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 gt_save_CPPFLAGS="$CPPFLAGS"
12553 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12554 gt_save_LIBS="$LIBS"
12555 LIBS="$LIBS -framework CoreFoundation"
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 #include <CFPreferences.h>
12566 CFPreferencesCopyAppValue(NULL, NULL)
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext &&
12588 $as_test_x conftest$ac_exeext; then
12589 gt_cv_func_CFPreferencesCopyAppValue=yes
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 gt_cv_func_CFPreferencesCopyAppValue=no
12597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598 conftest$ac_exeext conftest.$ac_ext
12599 CPPFLAGS="$gt_save_CPPFLAGS"
12600 LIBS="$gt_save_LIBS"
12602 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12603 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12604 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12611 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12612 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12613 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 gt_save_CPPFLAGS="$CPPFLAGS"
12617 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12618 gt_save_LIBS="$LIBS"
12619 LIBS="$LIBS -framework CoreFoundation"
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 #include <CFLocale.h>
12630 CFLocaleCopyCurrent();
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest$ac_exeext &&
12652 $as_test_x conftest$ac_exeext; then
12653 gt_cv_func_CFLocaleCopyCurrent=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 gt_cv_func_CFLocaleCopyCurrent=no
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662 conftest$ac_exeext conftest.$ac_ext
12663 CPPFLAGS="$gt_save_CPPFLAGS"
12664 LIBS="$gt_save_LIBS"
12666 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12667 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12668 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define HAVE_CFLOCALECOPYCURRENT 1
12676 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12677 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12683 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12684 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12685 # Check whether --enable-nls was given.
12686 if test "${enable_nls+set}" = set; then
12687 enableval=$enable_nls; USE_NLS=$enableval
12692 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12693 echo "${ECHO_T}$USE_NLS" >&6; }
12698 BUILD_INCLUDED_LIBINTL=no
12699 USE_INCLUDED_LIBINTL=no
12705 if test "$USE_NLS" = "yes"; then
12706 gt_use_preinstalled_gnugettext=no
12708 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12709 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12711 # Check whether --with-included-gettext was given.
12712 if test "${with_included_gettext+set}" = set; then
12713 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12715 nls_cv_force_use_gnu_gettext=no
12718 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12719 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12721 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12722 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12729 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12730 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12731 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 #include <libintl.h>
12741 extern int _nl_msg_cat_cntr;
12742 extern int *_nl_domain_bindings;
12746 bindtextdomain ("", "");
12747 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_link") 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } && {
12766 test -z "$ac_c_werror_flag" ||
12767 test ! -s conftest.err
12768 } && test -s conftest$ac_exeext &&
12769 $as_test_x conftest$ac_exeext; then
12770 gt_cv_func_gnugettext1_libc=yes
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 gt_cv_func_gnugettext1_libc=no
12778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12779 conftest$ac_exeext conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12782 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12784 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12790 acl_save_prefix="$prefix"
12791 prefix="$acl_final_prefix"
12792 acl_save_exec_prefix="$exec_prefix"
12793 exec_prefix="$acl_final_exec_prefix"
12795 eval additional_includedir=\"$includedir\"
12796 eval additional_libdir=\"$libdir\"
12798 exec_prefix="$acl_save_exec_prefix"
12799 prefix="$acl_save_prefix"
12802 # Check whether --with-libintl-prefix was given.
12803 if test "${with_libintl_prefix+set}" = set; then
12804 withval=$with_libintl_prefix;
12805 if test "X$withval" = "Xno"; then
12808 if test "X$withval" = "X"; then
12810 acl_save_prefix="$prefix"
12811 prefix="$acl_final_prefix"
12812 acl_save_exec_prefix="$exec_prefix"
12813 exec_prefix="$acl_final_exec_prefix"
12815 eval additional_includedir=\"$includedir\"
12816 eval additional_libdir=\"$libdir\"
12818 exec_prefix="$acl_save_exec_prefix"
12819 prefix="$acl_save_prefix"
12822 additional_includedir="$withval/include"
12823 additional_libdir="$withval/lib"
12834 names_already_handled=
12835 names_next_round='intl '
12836 while test -n "$names_next_round"; do
12837 names_this_round="$names_next_round"
12839 for name in $names_this_round; do
12841 for n in $names_already_handled; do
12842 if test "$n" = "$name"; then
12843 already_handled=yes
12847 if test -z "$already_handled"; then
12848 names_already_handled="$names_already_handled $name"
12849 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12850 eval value=\"\$HAVE_LIB$uppername\"
12851 if test -n "$value"; then
12852 if test "$value" = yes; then
12853 eval value=\"\$LIB$uppername\"
12854 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12855 eval value=\"\$LTLIB$uppername\"
12856 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12865 if test $use_additional = yes; then
12866 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12867 found_dir="$additional_libdir"
12868 found_so="$additional_libdir/lib$name.$shlibext"
12869 if test -f "$additional_libdir/lib$name.la"; then
12870 found_la="$additional_libdir/lib$name.la"
12873 if test -f "$additional_libdir/lib$name.$libext"; then
12874 found_dir="$additional_libdir"
12875 found_a="$additional_libdir/lib$name.$libext"
12876 if test -f "$additional_libdir/lib$name.la"; then
12877 found_la="$additional_libdir/lib$name.la"
12882 if test "X$found_dir" = "X"; then
12883 for x in $LDFLAGS $LTLIBINTL; do
12885 acl_save_prefix="$prefix"
12886 prefix="$acl_final_prefix"
12887 acl_save_exec_prefix="$exec_prefix"
12888 exec_prefix="$acl_final_exec_prefix"
12890 exec_prefix="$acl_save_exec_prefix"
12891 prefix="$acl_save_prefix"
12895 dir=`echo "X$x" | sed -e 's/^X-L//'`
12896 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12898 found_so="$dir/lib$name.$shlibext"
12899 if test -f "$dir/lib$name.la"; then
12900 found_la="$dir/lib$name.la"
12903 if test -f "$dir/lib$name.$libext"; then
12905 found_a="$dir/lib$name.$libext"
12906 if test -f "$dir/lib$name.la"; then
12907 found_la="$dir/lib$name.la"
12913 if test "X$found_dir" != "X"; then
12918 if test "X$found_dir" != "X"; then
12919 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12920 if test "X$found_so" != "X"; then
12921 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12922 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12925 for x in $ltrpathdirs; do
12926 if test "X$x" = "X$found_dir"; then
12931 if test -z "$haveit"; then
12932 ltrpathdirs="$ltrpathdirs $found_dir"
12934 if test "$hardcode_direct" = yes; then
12935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12937 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12938 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12940 for x in $rpathdirs; do
12941 if test "X$x" = "X$found_dir"; then
12946 if test -z "$haveit"; then
12947 rpathdirs="$rpathdirs $found_dir"
12951 for x in $LDFLAGS $LIBINTL; do
12953 acl_save_prefix="$prefix"
12954 prefix="$acl_final_prefix"
12955 acl_save_exec_prefix="$exec_prefix"
12956 exec_prefix="$acl_final_exec_prefix"
12958 exec_prefix="$acl_save_exec_prefix"
12959 prefix="$acl_save_prefix"
12961 if test "X$x" = "X-L$found_dir"; then
12966 if test -z "$haveit"; then
12967 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12969 if test "$hardcode_minus_L" != no; then
12970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12972 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12978 if test "X$found_a" != "X"; then
12979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12981 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12984 additional_includedir=
12985 case "$found_dir" in
12987 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12988 additional_includedir="$basedir/include"
12991 if test "X$additional_includedir" != "X"; then
12992 if test "X$additional_includedir" != "X/usr/include"; then
12994 if test "X$additional_includedir" = "X/usr/local/include"; then
12995 if test -n "$GCC"; then
12997 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13001 if test -z "$haveit"; then
13002 for x in $CPPFLAGS $INCINTL; do
13004 acl_save_prefix="$prefix"
13005 prefix="$acl_final_prefix"
13006 acl_save_exec_prefix="$exec_prefix"
13007 exec_prefix="$acl_final_exec_prefix"
13009 exec_prefix="$acl_save_exec_prefix"
13010 prefix="$acl_save_prefix"
13012 if test "X$x" = "X-I$additional_includedir"; then
13017 if test -z "$haveit"; then
13018 if test -d "$additional_includedir"; then
13019 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13025 if test -n "$found_la"; then
13026 save_libdir="$libdir"
13027 case "$found_la" in
13028 */* | *\\*) . "$found_la" ;;
13029 *) . "./$found_la" ;;
13031 libdir="$save_libdir"
13032 for dep in $dependency_libs; do
13035 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13036 if test "X$additional_libdir" != "X/usr/lib"; then
13038 if test "X$additional_libdir" = "X/usr/local/lib"; then
13039 if test -n "$GCC"; then
13041 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13045 if test -z "$haveit"; then
13047 for x in $LDFLAGS $LIBINTL; do
13049 acl_save_prefix="$prefix"
13050 prefix="$acl_final_prefix"
13051 acl_save_exec_prefix="$exec_prefix"
13052 exec_prefix="$acl_final_exec_prefix"
13054 exec_prefix="$acl_save_exec_prefix"
13055 prefix="$acl_save_prefix"
13057 if test "X$x" = "X-L$additional_libdir"; then
13062 if test -z "$haveit"; then
13063 if test -d "$additional_libdir"; then
13064 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13068 for x in $LDFLAGS $LTLIBINTL; do
13070 acl_save_prefix="$prefix"
13071 prefix="$acl_final_prefix"
13072 acl_save_exec_prefix="$exec_prefix"
13073 exec_prefix="$acl_final_exec_prefix"
13075 exec_prefix="$acl_save_exec_prefix"
13076 prefix="$acl_save_prefix"
13078 if test "X$x" = "X-L$additional_libdir"; then
13083 if test -z "$haveit"; then
13084 if test -d "$additional_libdir"; then
13085 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13092 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13093 if test "$enable_rpath" != no; then
13095 for x in $rpathdirs; do
13096 if test "X$x" = "X$dir"; then
13101 if test -z "$haveit"; then
13102 rpathdirs="$rpathdirs $dir"
13105 for x in $ltrpathdirs; do
13106 if test "X$x" = "X$dir"; then
13111 if test -z "$haveit"; then
13112 ltrpathdirs="$ltrpathdirs $dir"
13117 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13120 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13123 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13124 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13130 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13131 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13137 if test "X$rpathdirs" != "X"; then
13138 if test -n "$hardcode_libdir_separator"; then
13140 for found_dir in $rpathdirs; do
13141 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13143 acl_save_libdir="$libdir"
13145 eval flag=\"$hardcode_libdir_flag_spec\"
13146 libdir="$acl_save_libdir"
13147 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13149 for found_dir in $rpathdirs; do
13150 acl_save_libdir="$libdir"
13151 libdir="$found_dir"
13152 eval flag=\"$hardcode_libdir_flag_spec\"
13153 libdir="$acl_save_libdir"
13154 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13158 if test "X$ltrpathdirs" != "X"; then
13159 for found_dir in $ltrpathdirs; do
13160 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13164 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13165 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13166 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 gt_save_CPPFLAGS="$CPPFLAGS"
13170 CPPFLAGS="$CPPFLAGS $INCINTL"
13171 gt_save_LIBS="$LIBS"
13172 LIBS="$LIBS $LIBINTL"
13173 cat >conftest.$ac_ext <<_ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 #include <libintl.h>
13180 extern int _nl_msg_cat_cntr;
13185 const char *_nl_expand_alias (const char *);
13189 bindtextdomain ("", "");
13190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13204 grep -v '^ *+' conftest.er1 >conftest.err
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest$ac_exeext &&
13212 $as_test_x conftest$ac_exeext; then
13213 gt_cv_func_gnugettext1_libintl=yes
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 gt_cv_func_gnugettext1_libintl=no
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222 conftest$ac_exeext conftest.$ac_ext
13223 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13224 LIBS="$LIBS $LIBICONV"
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <libintl.h>
13232 extern int _nl_msg_cat_cntr;
13237 const char *_nl_expand_alias (const char *);
13241 bindtextdomain ("", "");
13242 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_link") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest$ac_exeext &&
13264 $as_test_x conftest$ac_exeext; then
13265 LIBINTL="$LIBINTL $LIBICONV"
13266 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13267 gt_cv_func_gnugettext1_libintl=yes
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13277 conftest$ac_exeext conftest.$ac_ext
13279 CPPFLAGS="$gt_save_CPPFLAGS"
13280 LIBS="$gt_save_LIBS"
13282 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13283 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13286 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13287 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13288 && test "$PACKAGE" != gettext-runtime \
13289 && test "$PACKAGE" != gettext-tools; }; then
13290 gt_use_preinstalled_gnugettext=yes
13298 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13299 nls_cv_use_gnu_gettext=yes
13303 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13304 BUILD_INCLUDED_LIBINTL=yes
13305 USE_INCLUDED_LIBINTL=yes
13306 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13307 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13308 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13312 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13318 if test -n "$INTL_MACOSX_LIBS"; then
13319 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13320 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13321 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13322 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13326 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13327 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define ENABLE_NLS 1
13338 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13339 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13340 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13341 echo "${ECHO_T}$USE_NLS" >&6; }
13342 if test "$USE_NLS" = "yes"; then
13343 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13344 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13345 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13346 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13347 gt_source="external libintl"
13352 gt_source="included intl directory"
13354 { echo "$as_me:$LINENO: result: $gt_source" >&5
13355 echo "${ECHO_T}$gt_source" >&6; }
13358 if test "$USE_NLS" = "yes"; then
13360 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13361 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13362 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13363 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13364 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13365 echo "${ECHO_T}$LIBINTL" >&6; }
13367 for element in $INCINTL; do
13369 for x in $CPPFLAGS; do
13371 acl_save_prefix="$prefix"
13372 prefix="$acl_final_prefix"
13373 acl_save_exec_prefix="$exec_prefix"
13374 exec_prefix="$acl_final_exec_prefix"
13376 exec_prefix="$acl_save_exec_prefix"
13377 prefix="$acl_save_prefix"
13379 if test "X$x" = "X$element"; then
13384 if test -z "$haveit"; then
13385 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_GETTEXT 1
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_DCGETTEXT 1
13407 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13408 BUILD_INCLUDED_LIBINTL=yes
13415 nls_cv_header_intl=
13416 nls_cv_header_libgt=
13428 if test "$USE_INCLUDED_LIBINTL" = yes; then
13429 INTLOBJS="\$(GETTOBJS)"
13433 INTL_LIBTOOL_SUFFIX_PREFIX=
13437 INTLLIBS="$LIBINTL"
13449 support_postgresql=no
13451 support_smartalloc=yes
13452 support_readline=yes
13456 support_wx_console=no
13461 support_static_tools=no
13462 support_static_fd=no
13463 support_static_sd=no
13464 support_static_dir=no
13465 support_static_cons=no
13467 build_client_only=no
13475 # -------------------------------------------
13476 # gnome (default off)
13477 # -------------------------------------------
13478 # Check whether --enable-gnome was given.
13479 if test "${enable_gnome+set}" = set; then
13480 enableval=$enable_gnome; if test x$enableval = xyes; then
13487 if test x$support_gnome = xyes; then
13488 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13490 if test $pkg = 0; then
13491 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13492 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13493 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13494 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13499 GNOME_DIR=src/gnome2-console
13500 gnome_version="Version 2.x"
13502 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13503 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13504 { (exit 1); exit 1; }; }
13509 # -------------------------------------------
13510 # bat (default off)
13511 # -------------------------------------------
13512 # Check whether --enable-bat was given.
13513 if test "${enable_bat+set}" = set; then
13514 enableval=$enable_bat; if test x$enableval = xyes; then
13516 cat >>confdefs.h <<\_ACEOF
13526 if test x$support_bat = xyes; then
13527 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13529 if test $pkg = 0; then
13530 BAT_DIR=src/qt-console
13532 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13533 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13534 { (exit 1); exit 1; }; }
13539 # If bat is enabled, we need the qwt library
13546 if test x$support_bat = xyes; then
13547 { echo "$as_me:$LINENO: checking for qwt support" >&5
13548 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13550 # Check whether --with-qwt was given.
13551 if test "${with_qwt+set}" = set; then
13553 case "$with_qwt" in
13558 if test -f ${with_qwt}/include/qwt.h; then
13559 QWT_INC="${with_qwt}/include"
13560 QWT_LDFLAGS="-L${with_qwt}/lib"
13571 # Search in standard places, or --with-qwt not specified
13573 if test $no_qwt = no; then
13574 if test x$QWT_INC = x; then
13575 for root in /usr /usr/local; do
13576 for ver in qwt qwt5 qwt-qt4; do
13577 if test -f ${root}/include/${ver}/qwt.h; then
13578 QWT_INC="${root}/include/${ver}"
13579 if test -d ${root}/lib64/; then
13580 QWT_LDFLAGS="-L${root}/lib64"
13582 QWT_LDFLAGS="-L${root}/lib"
13593 if test x$QWT_INC = x; then
13594 { echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6; }
13598 cat >>confdefs.h <<\_ACEOF
13602 { echo "$as_me:$LINENO: result: yes" >&5
13603 echo "${ECHO_T}yes" >&6; }
13614 # -------------------------------------------
13615 # bwx-console (default off)
13616 # -------------------------------------------
13617 # Check whether --enable-bwx-console was given.
13618 if test "${enable_bwx_console+set}" = set; then
13619 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13620 support_wx_console=yes
13626 if test x$support_wx_console = xyes; then
13627 abc=`$WXCONFIG $WXFLAGS --cppflags`
13629 if test $pkg = 0; then
13630 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13631 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13632 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13636 WX_DIR=src/wx-console
13639 echo "wx-config program not found. bwx-console disabled."
13641 support_wx_console=no
13647 # -------------------------------------------
13648 # tray-monitor (default off)
13649 # -------------------------------------------
13650 # Check whether --enable-tray-monitor was given.
13651 if test "${enable_tray_monitor+set}" = set; then
13652 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13653 support_tray_monitor=yes
13659 if test x$support_tray_monitor = xyes; then
13660 abc=`$PKGCONFIG --exists gtk+-2.0`
13662 if test $pkg = 0; then
13663 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13664 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13667 TRAY_MONITOR_DIR=src/tray-monitor
13668 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13670 if test $pkg = 0; then
13672 cat >>confdefs.h <<\_ACEOF
13673 #define HAVE_GTK_2_4 1
13681 # -------------------------------------------
13682 # smartalloc (default off)
13683 # -------------------------------------------
13684 # Check whether --enable-smartalloc was given.
13685 if test "${enable_smartalloc+set}" = set; then
13686 enableval=$enable_smartalloc; if test x$enableval = xno; then
13687 support_smartalloc=no
13692 if test x$support_smartalloc = xyes; then
13694 cat >>confdefs.h <<\_ACEOF
13695 #define SMARTALLOC 1
13700 # -------------------------------------------
13701 # static-tools (default off)
13702 # -------------------------------------------
13703 # Check whether --enable-static-tools was given.
13704 if test "${enable_static_tools+set}" = set; then
13705 enableval=$enable_static_tools; if test x$enableval = xyes; then
13706 support_static_tools=yes
13712 if test x$support_static_tools = xyes; then
13713 TTOOL_LDFLAGS="-static"
13717 # -------------------------------------------
13718 # static-fd (default off)
13719 # -------------------------------------------
13720 # Check whether --enable-static-fd was given.
13721 if test "${enable_static_fd+set}" = set; then
13722 enableval=$enable_static_fd; if test x$enableval = xyes; then
13723 support_static_fd=yes
13729 if test x$support_static_fd = xyes; then
13730 STATIC_FD="static-bacula-fd"
13734 # -------------------------------------------
13735 # static-sd (default off)
13736 # -------------------------------------------
13737 # Check whether --enable-static-sd was given.
13738 if test "${enable_static_sd+set}" = set; then
13739 enableval=$enable_static_sd; if test x$enableval = xyes; then
13740 support_static_sd=yes
13746 if test x$support_static_sd = xyes; then
13747 STATIC_SD="static-bacula-sd"
13751 # -------------------------------------------
13752 # static-dir (default off)
13753 # -------------------------------------------
13754 # Check whether --enable-static-dir was given.
13755 if test "${enable_static_dir+set}" = set; then
13756 enableval=$enable_static_dir; if test x$enableval = xyes; then
13757 support_static_dir=yes
13763 if test x$support_static_dir = xyes; then
13764 STATIC_DIR="static-bacula-dir"
13768 # -------------------------------------------
13769 # static-cons (default off)
13770 # -------------------------------------------
13771 # Check whether --enable-static-cons was given.
13772 if test "${enable_static_cons+set}" = set; then
13773 enableval=$enable_static_cons; if test x$enableval = xyes; then
13774 support_static_cons=yes
13782 if test x$support_static_cons = xyes; then
13783 STATIC_CONS="static-bconsole"
13784 STATIC_GNOME_CONS="static-bgnome-console"
13785 STATIC_WX_CONS="static-bwx-console"
13791 # -------------------------------------------
13792 # client_only (default off)
13793 # -------------------------------------------
13794 # Check whether --enable-client-only was given.
13795 if test "${enable_client_only+set}" = set; then
13796 enableval=$enable_client_only; if test x$enableval = xyes; then
13797 build_client_only=yes
13803 if test x$build_client_only = xno; then
13810 # -------------------------------------------
13811 # director (default on)
13812 # -------------------------------------------
13813 # Check whether --enable-build-dird was given.
13814 if test "${enable_build_dird+set}" = set; then
13815 enableval=$enable_build_dird; if test x$enableval = xno; then
13820 if test x$build_dird = xyes; then
13821 DIRD_DIR="src/dird"
13822 DIR_TOOLS="DIRTOOLS"
13825 DIR_TOOLS="NODIRTOOLS"
13830 # -------------------------------------------
13831 # stored (default on)
13832 # -------------------------------------------
13833 # Check whether --enable-build-stored was given.
13834 if test "${enable_build_stored+set}" = set; then
13835 enableval=$enable_build_stored; if test x$enableval = xno; then
13840 if test x$build_stored = xyes; then
13841 STORED_DIR="src/stored"
13847 # ---------------------------------------------------
13848 # Check for conio (Bacula readline substitute)(
13849 # ---------------------------------------------------
13850 # this allows you to turn it completely off
13851 # Check whether --enable-conio was given.
13852 if test "${enable_conio+set}" = set; then
13853 enableval=$enable_conio; if test x$enableval = xno; then
13861 # ---------------------------------------------------
13862 # Check for IPv6 support
13863 # ---------------------------------------------------
13864 # this allows you to turn it completely off
13866 # Check whether --enable-ipv6 was given.
13867 if test "${enable_ipv6+set}" = set; then
13868 enableval=$enable_ipv6; if test x$enableval = xno; then
13875 if test x$support_ipv6 = xyes; then
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include <sys/types.h>
13883 #include <sys/socket.h>
13884 #include <netinet/in.h>
13888 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>conftest.er1
13902 grep -v '^ *+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest$ac_exeext &&
13910 $as_test_x conftest$ac_exeext; then
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext conftest.$ac_ext
13923 if test x$support_ipv6 = xyes; then
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_IPV6 1
13934 if test x$support_conio = xyes; then
13935 if test "${ac_cv_header_termcap_h+set}" = set; then
13936 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13937 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13938 if test "${ac_cv_header_termcap_h+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13942 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13944 # Is the header compilable?
13945 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13946 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13954 #include <termcap.h>
13956 rm -f conftest.$ac_objext
13957 if { (ac_try="$ac_compile"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_compile") 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && {
13970 test -z "$ac_c_werror_flag" ||
13971 test ! -s conftest.err
13972 } && test -s conftest.$ac_objext; then
13973 ac_header_compiler=yes
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ac_header_compiler=no
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13983 echo "${ECHO_T}$ac_header_compiler" >&6; }
13985 # Is the header present?
13986 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13987 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 #include <termcap.h>
13996 if { (ac_try="$ac_cpp conftest.$ac_ext"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } >/dev/null && {
14009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14010 test ! -s conftest.err
14012 ac_header_preproc=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 ac_header_preproc=no
14020 rm -f conftest.err conftest.$ac_ext
14021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14022 echo "${ECHO_T}$ac_header_preproc" >&6; }
14024 # So? What about this header?
14025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14028 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14030 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14031 ac_header_preproc=yes
14034 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14035 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14037 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14039 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14041 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14043 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14045 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14049 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14050 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_termcap_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 ac_cv_header_termcap_h=$ac_header_preproc
14056 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14057 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14060 if test $ac_cv_header_termcap_h = yes; then
14061 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14062 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-ltermcap $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_termcap_tgetent=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_termcap_tgetent=no
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14121 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14122 if test $ac_cv_lib_termcap_tgetent = yes; then
14123 CONS_LIBS="-ltermcap"
14127 support_readline=no
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_CONIO 1
14135 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14136 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14137 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-lncurses $LIBS"
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14164 rm -f conftest.$ac_objext conftest$ac_exeext
14165 if { (ac_try="$ac_link"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_link") 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && {
14178 test -z "$ac_c_werror_flag" ||
14179 test ! -s conftest.err
14180 } && test -s conftest$ac_exeext &&
14181 $as_test_x conftest$ac_exeext; then
14182 ac_cv_lib_ncurses_tgetent=yes
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_cv_lib_ncurses_tgetent=no
14190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14191 conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14194 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14195 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14196 if test $ac_cv_lib_ncurses_tgetent = yes; then
14197 CONS_LIBS="-lncurses"
14201 support_readline=no
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_CONIO 1
14217 for ac_header in curses.h
14219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 ac_res=`eval echo '${'$as_ac_Header'}'`
14227 { echo "$as_me:$LINENO: result: $ac_res" >&5
14228 echo "${ECHO_T}$ac_res" >&6; }
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <$ac_header>
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14251 grep -v '^ *+' conftest.er1 >conftest.err
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest.$ac_objext; then
14259 ac_header_compiler=yes
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_header_compiler=no
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <$ac_header>
14282 if { (ac_try="$ac_cpp conftest.$ac_ext"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } >/dev/null && {
14295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14298 ac_header_preproc=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_preproc=no
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 eval "$as_ac_Header=\$ac_header_preproc"
14342 ac_res=`eval echo '${'$as_ac_Header'}'`
14343 { echo "$as_me:$LINENO: result: $ac_res" >&5
14344 echo "${ECHO_T}$ac_res" >&6; }
14347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356 { echo "$as_me:$LINENO: checking for term.h" >&5
14357 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_term_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14368 #include <curses.h>
14374 rm -f conftest.$ac_objext
14375 if { (ac_try="$ac_compile"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_compile") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest.$ac_objext; then
14391 ac_cv_header_term_h=yes
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_cv_header_term_h=no
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14402 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14403 if test $ac_cv_header_term_h = yes; then
14404 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14405 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14406 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 ac_check_lib_save_LIBS=$LIBS
14410 LIBS="-lcurses $LIBS"
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_link") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest$ac_exeext &&
14450 $as_test_x conftest$ac_exeext; then
14451 ac_cv_lib_curses_tgetent=yes
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_cv_lib_curses_tgetent=no
14459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14460 conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS
14463 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14464 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14465 if test $ac_cv_lib_curses_tgetent = yes; then
14466 CONS_LIBS="-lcurses"
14470 support_readline=no
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_CONIO 1
14481 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14492 # ---------------------------------------------------
14493 # Check for readline support/directory (default off)
14494 # ---------------------------------------------------
14495 # this allows you to turn it completely off
14496 # Check whether --enable-readline was given.
14497 if test "${enable_readline+set}" = set; then
14498 enableval=$enable_readline; if test x$enableval = xno; then
14499 support_readline=no
14506 if test x$support_readline = xyes; then
14508 # Check whether --with-readline was given.
14509 if test "${with_readline+set}" = set; then
14510 withval=$with_readline;
14511 case "$with_readline" in
14514 if test -f ${with_readline}/readline.h; then
14515 CONS_INC="-I${with_readline}"
14516 CONS_LDFLAGS="-L$with_readline"
14517 elif test -f ${with_readline}/include/readline/readline.h; then
14518 CONS_INC="-I${with_readline}/include/readline"
14519 CONS_LDFLAGS="-L${with_readline}/lib"
14520 with_readline="${with_readline}/include/readline"
14522 with_readline="/usr/include/readline"
14524 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14527 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 ac_res=`eval echo '${'$as_ac_Header'}'`
14532 { echo "$as_me:$LINENO: result: $ac_res" >&5
14533 echo "${ECHO_T}$ac_res" >&6; }
14535 # Is the header compilable?
14536 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14537 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 $ac_includes_default
14545 #include <${with_readline}/readline.h>
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_compile") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && {
14561 test -z "$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 } && test -s conftest.$ac_objext; then
14564 ac_header_compiler=yes
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_header_compiler=no
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14574 echo "${ECHO_T}$ac_header_compiler" >&6; }
14576 # Is the header present?
14577 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14578 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 #include <${with_readline}/readline.h>
14587 if { (ac_try="$ac_cpp conftest.$ac_ext"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } >/dev/null && {
14600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14601 test ! -s conftest.err
14603 ac_header_preproc=yes
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_header_preproc=no
14611 rm -f conftest.err conftest.$ac_ext
14612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14613 echo "${ECHO_T}$ac_header_preproc" >&6; }
14615 # So? What about this header?
14616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14618 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14622 ac_header_preproc=yes
14625 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14626 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14628 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14630 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14632 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14634 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14636 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14640 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14641 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 eval "$as_ac_Header=\$ac_header_preproc"
14647 ac_res=`eval echo '${'$as_ac_Header'}'`
14648 { echo "$as_me:$LINENO: result: $ac_res" >&5
14649 echo "${ECHO_T}$ac_res" >&6; }
14652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_READLINE 1
14658 CONS_LIBS="-lreadline -lhistory -ltermcap"
14663 echo "readline.h not found. readline turned off ..."
14675 # check for standard readline library
14676 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14677 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14678 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14679 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14683 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14685 # Is the header compilable?
14686 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14687 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 $ac_includes_default
14695 #include </usr/include/readline/readline.h>
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && {
14711 test -z "$ac_c_werror_flag" ||
14712 test ! -s conftest.err
14713 } && test -s conftest.$ac_objext; then
14714 ac_header_compiler=yes
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_header_compiler=no
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14724 echo "${ECHO_T}$ac_header_compiler" >&6; }
14726 # Is the header present?
14727 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14728 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include </usr/include/readline/readline.h>
14737 if { (ac_try="$ac_cpp conftest.$ac_ext"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } >/dev/null && {
14750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14753 ac_header_preproc=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_header_preproc=no
14761 rm -f conftest.err conftest.$ac_ext
14762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14763 echo "${ECHO_T}$ac_header_preproc" >&6; }
14765 # So? What about this header?
14766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14768 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14772 ac_header_preproc=yes
14775 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14776 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14778 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14780 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14782 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14784 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14786 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14790 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14791 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14792 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14797 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14798 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14801 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_READLINE 1
14808 CONS_INC="-I/usr/include/readline"
14809 CONS_LIBS="-lreadline -ltermcap"
14813 # Did not find standard library, so try Bacula's default
14814 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14817 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 ac_res=`eval echo '${'$as_ac_Header'}'`
14822 { echo "$as_me:$LINENO: result: $ac_res" >&5
14823 echo "${ECHO_T}$ac_res" >&6; }
14825 # Is the header compilable?
14826 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14827 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 #include <${TOP_DIR}/depkgs/readline/readline.h>
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_compile") 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } && {
14851 test -z "$ac_c_werror_flag" ||
14852 test ! -s conftest.err
14853 } && test -s conftest.$ac_objext; then
14854 ac_header_compiler=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_header_compiler=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14864 echo "${ECHO_T}$ac_header_compiler" >&6; }
14866 # Is the header present?
14867 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14868 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <${TOP_DIR}/depkgs/readline/readline.h>
14877 if { (ac_try="$ac_cpp conftest.$ac_ext"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } >/dev/null && {
14890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14893 ac_header_preproc=yes
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 ac_header_preproc=no
14901 rm -f conftest.err conftest.$ac_ext
14902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14903 echo "${ECHO_T}$ac_header_preproc" >&6; }
14905 # So? What about this header?
14906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14912 ac_header_preproc=yes
14915 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14916 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14918 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14920 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14922 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14924 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14926 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14930 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14931 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 eval "$as_ac_Header=\$ac_header_preproc"
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944 cat >>confdefs.h <<\_ACEOF
14945 #define HAVE_READLINE 1
14949 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14950 CONS_LIBS="-lreadline -lhistory -ltermcap"
14951 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14952 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14956 echo "readline.h not found. readline turned off ..."
14983 # Minimal stuff for readline Makefile configuration
14986 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14987 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14988 if test "${ac_cv_header_stat_broken+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <sys/types.h>
14998 #include <sys/stat.h>
15000 #if defined S_ISBLK && defined S_IFDIR
15001 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15004 #if defined S_ISBLK && defined S_IFCHR
15005 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15008 #if defined S_ISLNK && defined S_IFREG
15009 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15012 #if defined S_ISSOCK && defined S_IFREG
15013 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15017 rm -f conftest.$ac_objext
15018 if { (ac_try="$ac_compile"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_compile") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest.$ac_objext; then
15034 ac_cv_header_stat_broken=no
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 ac_cv_header_stat_broken=yes
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15045 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15046 if test $ac_cv_header_stat_broken = yes; then
15048 cat >>confdefs.h <<\_ACEOF
15049 #define STAT_MACROS_BROKEN 1
15059 ac_header_dirent=no
15060 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15061 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15062 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15063 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <sys/types.h>
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
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_compile") 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); } && {
15099 test -z "$ac_c_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest.$ac_objext; then
15102 eval "$as_ac_Header=yes"
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 eval "$as_ac_Header=no"
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15120 ac_header_dirent=$ac_hdr; break
15124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15125 if test $ac_header_dirent = dirent.h; then
15126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15128 if test "${ac_cv_search_opendir+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 ac_func_search_save_LIBS=$LIBS
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15154 for ac_lib in '' dir; do
15155 if test -z "$ac_lib"; then
15156 ac_res="none required"
15159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext &&
15178 $as_test_x conftest$ac_exeext; then
15179 ac_cv_search_opendir=$ac_res
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15189 if test "${ac_cv_search_opendir+set}" = set; then
15193 if test "${ac_cv_search_opendir+set}" = set; then
15196 ac_cv_search_opendir=no
15198 rm conftest.$ac_ext
15199 LIBS=$ac_func_search_save_LIBS
15201 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15202 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15203 ac_res=$ac_cv_search_opendir
15204 if test "$ac_res" != no; then
15205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15210 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15212 if test "${ac_cv_search_opendir+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 ac_func_search_save_LIBS=$LIBS
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15238 for ac_lib in '' x; do
15239 if test -z "$ac_lib"; then
15240 ac_res="none required"
15243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_link") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest$ac_exeext &&
15262 $as_test_x conftest$ac_exeext; then
15263 ac_cv_search_opendir=$ac_res
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15273 if test "${ac_cv_search_opendir+set}" = set; then
15277 if test "${ac_cv_search_opendir+set}" = set; then
15280 ac_cv_search_opendir=no
15282 rm conftest.$ac_ext
15283 LIBS=$ac_func_search_save_LIBS
15285 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15286 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15287 ac_res=$ac_cv_search_opendir
15288 if test "$ac_res" != no; then
15289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15302 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15318 #define $ac_func innocuous_$ac_func
15320 /* System header to define __stub macros and hopefully few prototypes,
15321 which can conflict with char $ac_func (); below.
15322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15323 <limits.h> exists even on freestanding compilers. */
15326 # include <limits.h>
15328 # include <assert.h>
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15340 /* The GNU C library defines this for functions which it implements
15341 to always fail with ENOSYS. Some functions are actually named
15342 something starting with __ and the normal name is an alias. */
15343 #if defined __stub_$ac_func || defined __stub___$ac_func
15350 return $ac_func ();
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_link") 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && {
15369 test -z "$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 } && test -s conftest$ac_exeext &&
15372 $as_test_x conftest$ac_exeext; then
15373 eval "$as_ac_var=yes"
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 eval "$as_ac_var=no"
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15384 ac_res=`eval echo '${'$as_ac_var'}'`
15385 { echo "$as_me:$LINENO: result: $ac_res" >&5
15386 echo "${ECHO_T}$ac_res" >&6; }
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15397 for ac_func in nanosleep nl_langinfo
15399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15413 #define $ac_func innocuous_$ac_func
15415 /* System header to define __stub macros and hopefully few prototypes,
15416 which can conflict with char $ac_func (); below.
15417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15418 <limits.h> exists even on freestanding compilers. */
15421 # include <limits.h>
15423 # include <assert.h>
15428 /* Override any GCC internal prototype to avoid an error.
15429 Use char because int might match the return type of a GCC
15430 builtin and then its argument prototype would still apply. */
15435 /* The GNU C library defines this for functions which it implements
15436 to always fail with ENOSYS. Some functions are actually named
15437 something starting with __ and the normal name is an alias. */
15438 #if defined __stub_$ac_func || defined __stub___$ac_func
15445 return $ac_func ();
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_link") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest$ac_exeext &&
15467 $as_test_x conftest$ac_exeext; then
15468 eval "$as_ac_var=yes"
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 eval "$as_ac_var=no"
15476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15477 conftest$ac_exeext conftest.$ac_ext
15479 ac_res=`eval echo '${'$as_ac_var'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15482 if test `eval echo '${'$as_ac_var'}'` = yes; then
15483 cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491 for ac_header in varargs.h
15493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501 { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15504 # Is the header compilable?
15505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 $ac_includes_default
15514 #include <$ac_header>
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest.$ac_objext; then
15533 ac_header_compiler=yes
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_header_compiler=no
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543 echo "${ECHO_T}$ac_header_compiler" >&6; }
15545 # Is the header present?
15546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 #include <$ac_header>
15556 if { (ac_try="$ac_cpp conftest.$ac_ext"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null && {
15569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15570 test ! -s conftest.err
15572 ac_header_preproc=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_header_preproc=no
15580 rm -f conftest.err conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582 echo "${ECHO_T}$ac_header_preproc" >&6; }
15584 # So? What about this header?
15585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591 ac_header_preproc=yes
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 eval "$as_ac_Header=\$ac_header_preproc"
15616 ac_res=`eval echo '${'$as_ac_Header'}'`
15617 { echo "$as_me:$LINENO: result: $ac_res" >&5
15618 echo "${ECHO_T}$ac_res" >&6; }
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 # End of readline/conio stuff
15632 # -----------------------------------------------------------------------
15634 # -----------------------------------------------------------------------
15635 # Check for Python support
15637 { echo "$as_me:$LINENO: checking for Python support" >&5
15638 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15640 # Check whether --with-python was given.
15641 if test "${with_python+set}" = set; then
15642 withval=$with_python;
15645 if test "$withval" != "no"; then
15646 if test "$withval" = "yes"; then
15647 for python_root in /usr /usr/local /usr/sfw; do
15648 for ver in python2.2 python2.3 python2.4 python2.5; do
15649 if test -f $python_root/include/${ver}/Python.h; then
15650 PYTHON_INCDIR=-I$python_root/include/${ver}
15651 if test -d $python_root/lib64/${ver}/config; then
15652 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15654 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15660 if test x$PYTHON_INCDIR = x; then
15661 if test -f $prefix/include/Python.h; then
15662 PYTHON_INCDIR=-I$prefix/include
15663 if test -d $prefix/lib64/config; then
15664 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15666 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15669 { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15671 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15672 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15673 { (exit 1); exit 1; }; }
15677 if test -f $withval/Python.h; then
15678 PYTHON_INCDIR=-I$withval
15679 PYTHON_LIBS="-L$withval/config -lpython"
15680 elif test -f $withval/include/Python.h; then
15681 PYTHON_INCDIR=-I$withval/include
15682 if test -d $withval/lib64/config; then
15683 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15685 PYTHON_LIBS="-L$withval/lib/config -lpython"
15687 elif test -f $withval/include/python/Python.h; then
15688 PYTHON_INCDIR=-I$withval/include/python
15689 if test -d $withval/lib64/python/config; then
15690 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15692 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15695 { echo "$as_me:$LINENO: result: no" >&5
15696 echo "${ECHO_T}no" >&6; }
15697 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15698 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15699 { (exit 1); exit 1; }; }
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE_PYTHON 1
15706 { echo "$as_me:$LINENO: result: yes" >&5
15707 echo "${ECHO_T}yes" >&6; }
15709 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15710 echo "$as_me: checking for more Python libs" >&6;}
15711 saved_LIBS="$LIBS"; LIBS=
15712 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15713 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15714 if test "${ac_cv_search_shm_open+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_func_search_save_LIBS=$LIBS
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15725 /* Override any GCC internal prototype to avoid an error.
15726 Use char because int might match the return type of a GCC
15727 builtin and then its argument prototype would still apply. */
15735 return shm_open ();
15740 for ac_lib in '' rt; do
15741 if test -z "$ac_lib"; then
15742 ac_res="none required"
15745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_link") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest$ac_exeext &&
15764 $as_test_x conftest$ac_exeext; then
15765 ac_cv_search_shm_open=$ac_res
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15775 if test "${ac_cv_search_shm_open+set}" = set; then
15779 if test "${ac_cv_search_shm_open+set}" = set; then
15782 ac_cv_search_shm_open=no
15784 rm conftest.$ac_ext
15785 LIBS=$ac_func_search_save_LIBS
15787 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15788 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15789 ac_res=$ac_cv_search_shm_open
15790 if test "$ac_res" != no; then
15791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15796 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15797 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15798 if test "${ac_cv_lib_util_openpty+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 ac_check_lib_save_LIBS=$LIBS
15802 LIBS="-lutil $LIBS"
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply. */
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (ac_try="$ac_link"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_link") 2>conftest.er1
15834 grep -v '^ *+' conftest.er1 >conftest.err
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } && {
15839 test -z "$ac_c_werror_flag" ||
15840 test ! -s conftest.err
15841 } && test -s conftest$ac_exeext &&
15842 $as_test_x conftest$ac_exeext; then
15843 ac_cv_lib_util_openpty=yes
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_cv_lib_util_openpty=no
15851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15852 conftest$ac_exeext conftest.$ac_ext
15853 LIBS=$ac_check_lib_save_LIBS
15855 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15856 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15857 if test $ac_cv_lib_util_openpty = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define HAVE_LIBUTIL 1
15862 LIBS="-lutil $LIBS"
15866 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15869 { echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6; }
15875 { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15884 # Find where sockets are (especially for Solaris)
15885 # Do this before the TCP Wrappers test since tcp wrappers
15886 # uses the socket library and some linkers are stupid.
15888 { echo "$as_me:$LINENO: checking for socket" >&5
15889 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15890 if test "${ac_cv_func_socket+set}" = set; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15901 #define socket innocuous_socket
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char socket (); below.
15905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15906 <limits.h> exists even on freestanding compilers. */
15909 # include <limits.h>
15911 # include <assert.h>
15916 /* Override any GCC internal prototype to avoid an error.
15917 Use char because int might match the return type of a GCC
15918 builtin and then its argument prototype would still apply. */
15923 /* The GNU C library defines this for functions which it implements
15924 to always fail with ENOSYS. Some functions are actually named
15925 something starting with __ and the normal name is an alias. */
15926 #if defined __stub_socket || defined __stub___socket
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (ac_try="$ac_link"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_link") 2>conftest.er1
15947 grep -v '^ *+' conftest.er1 >conftest.err
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest$ac_exeext &&
15955 $as_test_x conftest$ac_exeext; then
15956 ac_cv_func_socket=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_cv_func_socket=no
15964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15965 conftest$ac_exeext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15968 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15969 if test $ac_cv_func_socket = yes; then
15970 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15971 echo "${ECHO_T}using libc's socket" >&6; }
15974 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15975 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15976 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 ac_check_lib_save_LIBS=$LIBS
15980 LIBS="-lxnet $LIBS"
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15988 /* Override any GCC internal prototype to avoid an error.
15989 Use char because int might match the return type of a GCC
15990 builtin and then its argument prototype would still apply. */
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_link") 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } && {
16017 test -z "$ac_c_werror_flag" ||
16018 test ! -s conftest.err
16019 } && test -s conftest$ac_exeext &&
16020 $as_test_x conftest$ac_exeext; then
16021 ac_cv_lib_xnet_socket=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_cv_lib_xnet_socket=no
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16033 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16034 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16035 if test $ac_cv_lib_xnet_socket = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_LIBXNET 1
16040 LIBS="-lxnet $LIBS"
16045 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16046 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16047 if test "${ac_cv_lib_socket_socket+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 ac_check_lib_save_LIBS=$LIBS
16051 LIBS="-lsocket $LIBS"
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16059 /* Override any GCC internal prototype to avoid an error.
16060 Use char because int might match the return type of a GCC
16061 builtin and then its argument prototype would still apply. */
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (ac_try="$ac_link"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_link") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && {
16088 test -z "$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 } && test -s conftest$ac_exeext &&
16091 $as_test_x conftest$ac_exeext; then
16092 ac_cv_lib_socket_socket=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_cv_lib_socket_socket=no
16100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101 conftest$ac_exeext conftest.$ac_ext
16102 LIBS=$ac_check_lib_save_LIBS
16104 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16105 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16106 if test $ac_cv_lib_socket_socket = yes; then
16107 cat >>confdefs.h <<_ACEOF
16108 #define HAVE_LIBSOCKET 1
16111 LIBS="-lsocket $LIBS"
16116 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16117 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16118 if test "${ac_cv_lib_inet_socket+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 ac_check_lib_save_LIBS=$LIBS
16122 LIBS="-linet $LIBS"
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16130 /* Override any GCC internal prototype to avoid an error.
16131 Use char because int might match the return type of a GCC
16132 builtin and then its argument prototype would still apply. */
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (ac_try="$ac_link"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_link") 2>conftest.er1
16154 grep -v '^ *+' conftest.er1 >conftest.err
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } && {
16159 test -z "$ac_c_werror_flag" ||
16160 test ! -s conftest.err
16161 } && test -s conftest$ac_exeext &&
16162 $as_test_x conftest$ac_exeext; then
16163 ac_cv_lib_inet_socket=yes
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_lib_inet_socket=no
16171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16172 conftest$ac_exeext conftest.$ac_ext
16173 LIBS=$ac_check_lib_save_LIBS
16175 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16176 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16177 if test $ac_cv_lib_inet_socket = yes; then
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_LIBINET 1
16182 LIBS="-linet $LIBS"
16190 # -----------------------------------------------------------
16191 # Check whether user wants TCP wrappers support (default off)
16192 # -----------------------------------------------------------
16196 # Check whether --with-tcp-wrappers was given.
16197 if test "${with_tcp_wrappers+set}" = set; then
16198 withval=$with_tcp_wrappers;
16199 if test "x$withval" != "xno" ; then
16201 LIBS="$saved_LIBS -lwrap"
16202 { echo "$as_me:$LINENO: checking for libwrap" >&5
16203 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16204 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16205 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16206 if test "${ac_cv_search_nanosleep+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 ac_func_search_save_LIBS=$LIBS
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16217 /* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16227 return nanosleep ();
16232 for ac_lib in '' rt; do
16233 if test -z "$ac_lib"; then
16234 ac_res="none required"
16237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (ac_try="$ac_link"
16241 case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_link") 2>conftest.er1
16248 grep -v '^ *+' conftest.er1 >conftest.err
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } && {
16253 test -z "$ac_c_werror_flag" ||
16254 test ! -s conftest.err
16255 } && test -s conftest$ac_exeext &&
16256 $as_test_x conftest$ac_exeext; then
16257 ac_cv_search_nanosleep=$ac_res
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16267 if test "${ac_cv_search_nanosleep+set}" = set; then
16271 if test "${ac_cv_search_nanosleep+set}" = set; then
16274 ac_cv_search_nanosleep=no
16276 rm conftest.$ac_ext
16277 LIBS=$ac_func_search_save_LIBS
16279 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16280 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16281 ac_res=$ac_cv_search_nanosleep
16282 if test "$ac_res" != no; then
16283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <sys/types.h>
16295 int deny_severity = 0;
16296 int allow_severity = 0;
16297 struct request_info *req;
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (ac_try="$ac_link"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_link") 2>conftest.er1
16315 grep -v '^ *+' conftest.er1 >conftest.err
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest$ac_exeext &&
16323 $as_test_x conftest$ac_exeext; then
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16328 cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_LIBWRAP 1
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16341 LIBS="$saved_LIBS -lwrap -lnsl"
16342 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 #include <sys/types.h>
16351 int deny_severity = 0;
16352 int allow_severity = 0;
16353 struct request_info *req;
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest$ac_exeext &&
16379 $as_test_x conftest$ac_exeext; then
16381 { echo "$as_me:$LINENO: result: yes" >&5
16382 echo "${ECHO_T}yes" >&6; }
16384 cat >>confdefs.h <<\_ACEOF
16385 #define HAVE_LIBWRAP 1
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16397 echo "$as_me: error: *** libwrap missing" >&2;}
16398 { (exit 1); exit 1; }; }
16402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16403 conftest$ac_exeext conftest.$ac_ext
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16415 # -----------------------------------------------------------
16416 # Check whether OpenSSL is available
16417 # -----------------------------------------------------------
16418 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16419 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16421 # Check whether --with-openssl was given.
16422 if test "${with_openssl+set}" = set; then
16423 withval=$with_openssl; with_openssl_directory=${withval}
16427 if test "x$with_openssl_directory" != "x"; then
16428 OPENSSL_LIBS="-lssl -lcrypto"
16431 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16432 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16433 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16436 saved_LIBS="${LIBS}"
16437 saved_CFLAGS="${CFLAGS}"
16438 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16439 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16441 cat >conftest.$ac_ext <<_ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 #include <openssl/ssl.h>
16451 CRYPTO_set_id_callback(NULL);
16456 rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (ac_try="$ac_link"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_link") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest$ac_exeext &&
16473 $as_test_x conftest$ac_exeext; then
16476 support_crypto="yes"
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16487 conftest$ac_exeext conftest.$ac_ext
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 #include <openssl/evp.h>
16504 rm -f conftest.$ac_objext conftest$ac_exeext
16505 if { (ac_try="$ac_link"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_link") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && {
16518 test -z "$ac_c_werror_flag" ||
16519 test ! -s conftest.err
16520 } && test -s conftest$ac_exeext &&
16521 $as_test_x conftest$ac_exeext; then
16522 ac_cv_openssl_sha2="yes"
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 ac_cv_openssl_sha2="no"
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16534 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16535 # implementation, presumably for export reasons. If 192bit AES
16536 # is available, we assume that we're running with a 'non-export'
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 #include <openssl/evp.h>
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (ac_try="$ac_link"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_link") 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest$ac_exeext &&
16570 $as_test_x conftest$ac_exeext; then
16571 ac_cv_openssl_export="no"
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_cv_openssl_export="yes"
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581 conftest$ac_exeext conftest.$ac_ext
16583 LIBS="${saved_LIBS}"
16584 CFLAGS="${saved_CFLAGS}"
16586 if test "$support_tls" = "yes"; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_OPENSSL 1
16593 cat >>confdefs.h <<\_ACEOF
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_CRYPTO 1
16604 if test "$ac_cv_openssl_sha2" = "yes"; then
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_SHA2 1
16612 if test "$ac_cv_openssl_export" = "yes"; then
16614 cat >>confdefs.h <<\_ACEOF
16615 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16621 support_crypto="no"
16626 { echo "$as_me:$LINENO: result: $support_tls" >&5
16627 echo "${ECHO_T}$support_tls" >&6; }
16632 # -----------------------------------------------------------
16633 # dlopen is needed for plugins
16634 # -----------------------------------------------------------
16635 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16636 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16637 if test "${ac_cv_search_dlopen+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 ac_func_search_save_LIBS=$LIBS
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16648 /* Override any GCC internal prototype to avoid an error.
16649 Use char because int might match the return type of a GCC
16650 builtin and then its argument prototype would still apply. */
16663 for ac_lib in '' dl; do
16664 if test -z "$ac_lib"; then
16665 ac_res="none required"
16668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } && {
16684 test -z "$ac_c_werror_flag" ||
16685 test ! -s conftest.err
16686 } && test -s conftest$ac_exeext &&
16687 $as_test_x conftest$ac_exeext; then
16688 ac_cv_search_dlopen=$ac_res
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16698 if test "${ac_cv_search_dlopen+set}" = set; then
16702 if test "${ac_cv_search_dlopen+set}" = set; then
16705 ac_cv_search_dlopen=no
16707 rm conftest.$ac_ext
16708 LIBS=$ac_func_search_save_LIBS
16710 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16711 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16712 ac_res=$ac_cv_search_dlopen
16713 if test "$ac_res" != no; then
16714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16719 # ------------------------------------------
16720 # Where to place working dir
16721 # ------------------------------------------
16722 working_dir=`eval echo ${prefix}/var/bacula/working`
16724 # Check whether --with-working-dir was given.
16725 if test "${with_working_dir+set}" = set; then
16726 withval=$with_working_dir;
16727 if test "x$withval" != "xno" ; then
16728 working_dir=$withval
16737 # ------------------------------------------------------------------
16738 # If the user has not set archivedir, we set our default as /tmp
16739 # ------------------------------------------------------------------
16742 # Check whether --with-archivedir was given.
16743 if test "${with_archivedir+set}" = set; then
16744 withval=$with_archivedir;
16745 if test "x$withval" != "xno" ; then
16746 archivedir=$withval
16757 # ------------------------------------------
16758 # Where to place scriptdir (script files)
16759 # ------------------------------------------
16760 scriptdir=`eval echo ${sysconfdir}`
16762 # Check whether --with-scriptdir was given.
16763 if test "${with_scriptdir+set}" = set; then
16764 withval=$with_scriptdir;
16765 if test "x$withval" != "xno" ; then
16776 # ------------------------------------------
16777 # Where to place plugindir (script files)
16778 # ------------------------------------------
16779 plugindir=`eval echo ${sysconfdir}`
16781 # Check whether --with-plugindir was given.
16782 if test "${with_plugindir+set}" = set; then
16783 withval=$with_plugindir;
16784 if test "x$withval" != "xno" ; then
16795 # ------------------------------------------
16796 # Where to send dump email
16797 # ------------------------------------------
16798 dump_email=root@localhost
16800 # Check whether --with-dump-email was given.
16801 if test "${with_dump_email+set}" = set; then
16802 withval=$with_dump_email;
16803 if test "x$withval" != "xno" ; then
16804 dump_email=$withval
16813 # ------------------------------------------
16814 # Where to send job email
16815 # ------------------------------------------
16816 job_email=root@localhost
16818 # Check whether --with-job-email was given.
16819 if test "${with_job_email+set}" = set; then
16820 withval=$with_job_email;
16821 if test "x$withval" != "xno" ; then
16831 # ------------------------------------------
16832 # Where to find smtp host
16833 # ------------------------------------------
16834 smtp_host=localhost
16836 # Check whether --with-smtp_host was given.
16837 if test "${with_smtp_host+set}" = set; then
16838 withval=$with_smtp_host;
16839 if test "x$withval" != "xno" ; then
16850 # ------------------------------------
16851 # Where to place pid files
16852 # ------------------------------------
16855 # Check whether --with-pid-dir was given.
16856 if test "${with_pid_dir+set}" = set; then
16857 withval=$with_pid_dir;
16858 if test "x$withval" != "xno" ; then
16866 cat >>confdefs.h <<_ACEOF
16867 #define _PATH_BACULA_PIDDIR "$piddir"
16873 # ------------------------------------
16874 # Where to place subsys "lock file"
16875 # ------------------------------------
16876 subsysdir=/var/run/subsys
16877 if test -d /var/run/subsys; then
16878 subsysdir=/var/run/subsys
16879 elif test -d /var/lock/subsys; then
16880 subsysdir=/var/lock/subsys
16882 subsysdir=/var/run/subsys
16885 # Check whether --with-subsys-dir was given.
16886 if test "${with_subsys_dir+set}" = set; then
16887 withval=$with_subsys_dir;
16888 if test "x$withval" != "xno" ; then
16900 # ------------------------------------
16901 # Where to start assigning ports
16902 # ------------------------------------
16905 # Check whether --with-baseport was given.
16906 if test "${with_baseport+set}" = set; then
16907 withval=$with_baseport;
16908 if test "x$withval" != "xno" ; then
16917 dir_port=`expr $baseport`
16918 fd_port=`expr $baseport + 1`
16919 sd_port=`expr $fd_port + 1`
16926 # ------------------------------------------
16927 # Generate passwords
16928 # ------------------------------------------
16931 # Check whether --with-dir-password was given.
16932 if test "${with_dir_password+set}" = set; then
16933 withval=$with_dir_password;
16934 if test "x$withval" != "xno" ; then
16935 dir_password=$withval
16942 if test "x$dir_password" = "x" ; then
16943 if test "x$OPENSSL" = "xnone" ; then
16944 key=`autoconf/randpass 33`
16946 key=`openssl rand -base64 33`
16953 # Check whether --with-fd-password was given.
16954 if test "${with_fd_password+set}" = set; then
16955 withval=$with_fd_password;
16956 if test "x$withval" != "xno" ; then
16957 fd_password=$withval
16964 if test "x$fd_password" = "x" ; then
16965 if test "x$OPENSSL" = "xnone" ; then
16966 key=`autoconf/randpass 37`
16968 key=`openssl rand -base64 33`
16975 # Check whether --with-sd-password was given.
16976 if test "${with_sd_password+set}" = set; then
16977 withval=$with_sd_password;
16978 if test "x$withval" != "xno" ; then
16979 sd_password=$withval
16986 if test "x$sd_password" = "x" ; then
16987 if test "x$OPENSSL" = "xnone" ; then
16988 key=`autoconf/randpass 41`
16990 key=`openssl rand -base64 33`
16997 # Check whether --with-mon-dir-password was given.
16998 if test "${with_mon_dir_password+set}" = set; then
16999 withval=$with_mon_dir_password;
17000 if test "x$withval" != "xno" ; then
17001 mon_dir_password=$withval
17008 if test "x$mon_dir_password" = "x" ; then
17009 if test "x$OPENSSL" = "xnone" ; then
17010 key=`autoconf/randpass 33`
17012 key=`openssl rand -base64 33`
17014 mon_dir_password=$key
17019 # Check whether --with-mon-fd-password was given.
17020 if test "${with_mon_fd_password+set}" = set; then
17021 withval=$with_mon_fd_password;
17022 if test "x$withval" != "xno" ; then
17023 mon_fd_password=$withval
17030 if test "x$mon_fd_password" = "x" ; then
17031 if test "x$OPENSSL" = "xnone" ; then
17032 key=`autoconf/randpass 37`
17034 key=`openssl rand -base64 33`
17036 mon_fd_password=$key
17041 # Check whether --with-mon-sd-password was given.
17042 if test "${with_mon_sd_password+set}" = set; then
17043 withval=$with_mon_sd_password;
17044 if test "x$withval" != "xno" ; then
17045 mon_sd_password=$withval
17052 if test "x$mon_sd_password" = "x" ; then
17053 if test "x$OPENSSL" = "xnone" ; then
17054 key=`autoconf/randpass 41`
17056 key=`openssl rand -base64 33`
17058 mon_sd_password=$key
17069 # Pickup any database name
17073 # Check whether --with-db_name was given.
17074 if test "${with_db_name+set}" = set; then
17075 withval=$with_db_name;
17076 if test "x$withval" != "x" ; then
17087 # Check whether --with-db_user was given.
17088 if test "${with_db_user+set}" = set; then
17089 withval=$with_db_user;
17090 if test "x$withval" != "x" ; then
17101 # Check whether --with-db_password was given.
17102 if test "${with_db_password+set}" = set; then
17103 withval=$with_db_password;
17104 if test "x$withval" != "x" ; then
17105 db_password=$withval
17114 # Pickup a database port
17118 # Check whether --with-db_port was given.
17119 if test "${with_db_port+set}" = set; then
17120 withval=$with_db_port;
17121 if test "x$withval" != "x" ; then
17131 # Handle users and groups for each daemon
17135 # Check whether --with-dir_user was given.
17136 if test "${with_dir_user+set}" = set; then
17137 withval=$with_dir_user;
17138 if test "x$withval" != "x" ; then
17148 # Check whether --with-dir_group was given.
17149 if test "${with_dir_group+set}" = set; then
17150 withval=$with_dir_group;
17151 if test "x$withval" != "x" ; then
17161 # Check whether --with-sd_user was given.
17162 if test "${with_sd_user+set}" = set; then
17163 withval=$with_sd_user;
17164 if test "x$withval" != "x" ; then
17174 # Check whether --with-sd_group was given.
17175 if test "${with_sd_group+set}" = set; then
17176 withval=$with_sd_group;
17177 if test "x$withval" != "x" ; then
17187 # Check whether --with-fd_user was given.
17188 if test "${with_fd_user+set}" = set; then
17189 withval=$with_fd_user;
17190 if test "x$withval" != "x" ; then
17200 # Check whether --with-fd_group was given.
17201 if test "${with_fd_group+set}" = set; then
17202 withval=$with_fd_group;
17203 if test "x$withval" != "x" ; then
17219 # allow setting default executable permissions
17223 # Check whether --with-sbin-perm was given.
17224 if test "${with_sbin_perm+set}" = set; then
17225 withval=$with_sbin_perm;
17226 if test "x$withval" != "x" ; then
17236 # ------------------------------------------------
17237 # Bacula check for various SQL database engines
17238 # ------------------------------------------------
17242 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17243 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17245 # Check whether --with-postgresql was given.
17246 if test "${with_postgresql+set}" = set; then
17247 withval=$with_postgresql;
17248 if test "$withval" != "no"; then
17249 if test "$db_found" = "yes"; then
17250 { echo "$as_me:$LINENO: result: error" >&5
17251 echo "${ECHO_T}error" >&6; }
17252 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17253 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17254 { (exit 1); exit 1; }; };
17256 if test "$withval" = "yes"; then
17257 PG_CONFIG=`which pg_config`
17258 if test -n "$PG_CONFIG";then
17259 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17260 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17261 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17262 elif test -f /usr/local/include/libpq-fe.h; then
17263 POSTGRESQL_INCDIR=/usr/local/include
17264 if test -d /usr/local/lib64; then
17265 POSTGRESQL_LIBDIR=/usr/local/lib64
17267 POSTGRESQL_LIBDIR=/usr/local/lib
17269 POSTGRESQL_BINDIR=/usr/local/bin
17270 elif test -f /usr/include/libpq-fe.h; then
17271 POSTGRESQL_INCDIR=/usr/include
17272 if test -d /usr/lib64; then
17273 POSTGRESQL_LIBDIR=/usr/lib64
17275 POSTGRESQL_LIBDIR=/usr/lib
17277 POSTGRESQL_BINDIR=/usr/bin
17278 elif test -f /usr/include/pgsql/libpq-fe.h; then
17279 POSTGRESQL_INCDIR=/usr/include/pgsql
17280 if test -d /usr/lib64/pgsql; then
17281 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17283 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17285 POSTGRESQL_BINDIR=/usr/bin
17286 elif test -f /usr/include/postgresql/libpq-fe.h; then
17287 POSTGRESQL_INCDIR=/usr/include/postgresql
17288 if test -d /usr/lib64/postgresql; then
17289 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17291 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17293 POSTGRESQL_BINDIR=/usr/bin
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17297 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17298 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17299 { (exit 1); exit 1; }; }
17301 elif test -f $withval/include/libpq-fe.h; then
17302 POSTGRESQL_INCDIR=$withval/include
17303 POSTGRESQL_LIBDIR=$withval/lib
17304 POSTGRESQL_BINDIR=$withval/bin
17305 elif test -f $withval/include/postgresql/libpq-fe.h; then
17306 POSTGRESQL_INCDIR=$withval/include/postgresql
17307 if test -d $withval/lib64; then
17308 POSTGRESQL_LIBDIR=$withval/lib64
17310 POSTGRESQL_LIBDIR=$withval/lib
17312 POSTGRESQL_BINDIR=$withval/bin
17314 { echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6; }
17316 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17317 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17318 { (exit 1); exit 1; }; }
17320 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17321 { echo "$as_me:$LINENO: checking for crypt" >&5
17322 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17323 if test "${ac_cv_func_crypt+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17334 #define crypt innocuous_crypt
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char crypt (); below.
17338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339 <limits.h> exists even on freestanding compilers. */
17342 # include <limits.h>
17344 # include <assert.h>
17349 /* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17356 /* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359 #if defined __stub_crypt || defined __stub___crypt
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 ac_cv_func_crypt=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_func_crypt=no
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17400 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17401 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17402 if test $ac_cv_func_crypt = yes; then
17405 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17406 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17407 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lcrypt $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17419 /* Override any GCC internal prototype to avoid an error.
17420 Use char because int might match the return type of a GCC
17421 builtin and then its argument prototype would still apply. */
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && {
17448 test -z "$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17450 } && test -s conftest$ac_exeext &&
17451 $as_test_x conftest$ac_exeext; then
17452 ac_cv_lib_crypt_crypt=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_lib_crypt_crypt=no
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext conftest.$ac_ext
17462 LIBS=$ac_check_lib_save_LIBS
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17465 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17466 if test $ac_cv_lib_crypt_crypt = yes; then
17467 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17472 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17473 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17474 SQL_BINDIR=$POSTGRESQL_BINDIR
17475 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17477 cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_POSTGRESQL 1
17481 { echo "$as_me:$LINENO: result: yes" >&5
17482 echo "${ECHO_T}yes" >&6; }
17484 support_postgresql=yes
17488 { echo "$as_me:$LINENO: result: no" >&5
17489 echo "${ECHO_T}no" >&6; }
17494 { echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6; }
17507 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17508 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17510 # Check whether --with-mysql was given.
17511 if test "${with_mysql+set}" = set; then
17512 withval=$with_mysql;
17513 if test "$withval" != "no"; then
17514 if test "$withval" = "yes"; then
17515 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17516 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17517 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17518 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17519 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17521 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17523 MYSQL_BINDIR=/usr/local/mysql/bin
17524 elif test -f /usr/include/mysql/mysql.h; then
17525 MYSQL_INCDIR=/usr/include/mysql
17526 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17527 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17528 MYSQL_LIBDIR=/usr/lib64/mysql
17529 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17530 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17531 MYSQL_LIBDIR=/usr/lib/mysql
17533 MYSQL_LIBDIR=/usr/lib
17535 MYSQL_BINDIR=/usr/bin
17536 elif test -f /usr/include/mysql.h; then
17537 MYSQL_INCDIR=/usr/include
17538 if test -f /usr/lib64/libmysqlclient_r.a \
17539 -o -f /usr/lib64/libmysqlclient_r.so; then
17540 MYSQL_LIBDIR=/usr/lib64
17542 MYSQL_LIBDIR=/usr/lib
17544 MYSQL_BINDIR=/usr/bin
17545 elif test -f /usr/local/include/mysql/mysql.h; then
17546 MYSQL_INCDIR=/usr/local/include/mysql
17547 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17548 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17549 MYSQL_LIBDIR=/usr/local/lib64/mysql
17551 MYSQL_LIBDIR=/usr/local/lib/mysql
17553 MYSQL_BINDIR=/usr/local/bin
17554 elif test -f /usr/local/include/mysql.h; then
17555 MYSQL_INCDIR=/usr/local/include
17556 if test -f /usr/local/lib64/libmysqlclient_r.a \
17557 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17558 MYSQL_LIBDIR=/usr/local/lib64
17560 MYSQL_LIBDIR=/usr/local/lib
17562 MYSQL_BINDIR=/usr/local/bin
17564 { echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6; }
17566 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17567 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17568 { (exit 1); exit 1; }; }
17571 if test -f $withval/include/mysql/mysql.h; then
17572 MYSQL_INCDIR=$withval/include/mysql
17573 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17574 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17575 MYSQL_LIBDIR=$withval/lib64/mysql
17577 MYSQL_LIBDIR=$withval/lib/mysql
17579 if test -f $withval/lib/libmysqlclient_r.so; then
17580 MYSQL_LIBDIR=$withval/lib
17583 MYSQL_BINDIR=$withval/bin
17584 elif test -f $withval/include/mysql.h; then
17585 MYSQL_INCDIR=$withval/include
17586 if test -f $withval/lib64/libmysqlclient_r.a \
17587 -o -f $withval/lib64/libmysqlclient_r.so; then
17588 MYSQL_LIBDIR=$withval/lib64
17590 MYSQL_LIBDIR=$withval/lib
17592 MYSQL_BINDIR=$withval/bin
17594 { echo "$as_me:$LINENO: result: no" >&5
17595 echo "${ECHO_T}no" >&6; }
17596 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17597 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17598 { (exit 1); exit 1; }; }
17601 SQL_INCLUDE=-I$MYSQL_INCDIR
17602 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17603 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17604 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_THREAD_SAFE_MYSQL 1
17610 SQL_BINDIR=$MYSQL_BINDIR
17611 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17613 cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_MYSQL 1
17617 { echo "$as_me:$LINENO: result: yes" >&5
17618 echo "${ECHO_T}yes" >&6; }
17625 { echo "$as_me:$LINENO: result: no" >&5
17626 echo "${ECHO_T}no" >&6; }
17634 # Check whether --with-embedded-mysql was given.
17635 if test "${with_embedded_mysql+set}" = set; then
17636 withval=$with_embedded_mysql;
17637 if test "$withval" != "no"; then
17638 if test "$withval" = "yes"; then
17639 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17640 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17641 if test -d /usr/local/mysql/lib64/mysql; then
17642 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17644 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17646 MYSQL_BINDIR=/usr/local/mysql/bin
17647 elif test -f /usr/include/mysql/mysql.h; then
17648 MYSQL_INCDIR=/usr/include/mysql
17649 if test -d /usr/lib64/mysql; then
17650 MYSQL_LIBDIR=/usr/lib64/mysql
17652 MYSQL_LIBDIR=/usr/lib/mysql
17654 MYSQL_BINDIR=/usr/bin
17655 elif test -f /usr/include/mysql.h; then
17656 MYSQL_INCDIR=/usr/include
17657 if test -d /usr/lib64; then
17658 MYSQL_LIBDIR=/usr/lib64
17660 MYSQL_LIBDIR=/usr/lib
17662 MYSQL_BINDIR=/usr/bin
17663 elif test -f /usr/local/include/mysql/mysql.h; then
17664 MYSQL_INCDIR=/usr/local/include/mysql
17665 if test -d /usr/local/lib64/mysql; then
17666 MYSQL_LIBDIR=/usr/local/lib64/mysql
17668 MYSQL_LIBDIR=/usr/local/lib/mysql
17670 MYSQL_BINDIR=/usr/local/bin
17671 elif test -f /usr/local/include/mysql.h; then
17672 MYSQL_INCDIR=/usr/local/include
17673 if test -d /usr/local/lib64; then
17674 MYSQL_LIBDIR=/usr/local/lib64
17676 MYSQL_LIBDIR=/usr/local/lib
17678 MYSQL_BINDIR=/usr/local/bin
17680 { echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6; }
17682 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17683 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17684 { (exit 1); exit 1; }; }
17687 if test -f $withval/include/mysql/mysql.h; then
17688 MYSQL_INCDIR=$withval/include/mysql
17689 if test -d $withval/lib64/mysql; then
17690 MYSQL_LIBDIR=$withval/lib64/mysql
17692 MYSQL_LIBDIR=$withval/lib/mysql
17694 MYSQL_BINDIR=$withval/bin
17695 elif test -f $withval/include/mysql.h; then
17696 MYSQL_INCDIR=$withval/include
17697 if test -d $withval/lib64; then
17698 MYSQL_LIBDIR=$withval/lib64
17700 MYSQL_LIBDIR=$withval/lib
17702 MYSQL_BINDIR=$withval/bin
17704 { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17707 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17708 { (exit 1); exit 1; }; }
17711 SQL_INCLUDE=-I$MYSQL_INCDIR
17712 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17713 SQL_BINDIR=$MYSQL_BINDIR
17714 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17716 cat >>confdefs.h <<\_ACEOF
17717 #define HAVE_MYSQL 1
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_EMBEDDED_MYSQL 1
17724 { echo "$as_me:$LINENO: result: yes" >&5
17725 echo "${ECHO_T}yes" >&6; }
17732 { echo "$as_me:$LINENO: result: no" >&5
17733 echo "${ECHO_T}no" >&6; }
17749 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17750 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17752 # Check whether --with-sqlite3 was given.
17753 if test "${with_sqlite3+set}" = set; then
17754 withval=$with_sqlite3;
17755 if test "$withval" != "no"; then
17756 if test "$withval" = "yes"; then
17757 if test -f /usr/local/include/sqlite3.h; then
17758 SQLITE_INCDIR=/usr/local/include
17759 if test -d /usr/local/lib64; then
17760 SQLITE_LIBDIR=/usr/local/lib64
17762 SQLITE_LIBDIR=/usr/local/lib
17764 SQLITE_BINDIR=/usr/local/bin
17765 elif test -f /usr/include/sqlite3.h; then
17766 SQLITE_INCDIR=/usr/include
17767 if test -d /usr/lib64; then
17768 SQLITE_LIBDIR=/usr/lib64
17770 SQLITE_LIBDIR=/usr/lib
17772 SQLITE_BINDIR=/usr/bin
17773 elif test -f $prefix/include/sqlite3.h; then
17774 SQLITE_INCDIR=$prefix/include
17775 if test -d $prefix/lib64; then
17776 SQLITE_LIBDIR=$prefix/lib64
17778 SQLITE_LIBDIR=$prefix/lib
17780 SQLITE_BINDIR=$prefix/bin
17782 { echo "$as_me:$LINENO: result: no" >&5
17783 echo "${ECHO_T}no" >&6; }
17784 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17785 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17786 { (exit 1); exit 1; }; }
17789 if test -f $withval/sqlite3.h; then
17790 SQLITE_INCDIR=$withval
17791 SQLITE_LIBDIR=$withval
17792 SQLITE_BINDIR=$withval
17793 elif test -f $withval/include/sqlite3.h; then
17794 SQLITE_INCDIR=$withval/include
17795 if test -d $withval/lib64; then
17796 SQLITE_LIBDIR=$withval/lib64
17798 SQLITE_LIBDIR=$withval/lib
17800 SQLITE_BINDIR=$withval/bin
17802 { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17804 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17805 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17806 { (exit 1); exit 1; }; }
17809 SQL_INCLUDE=-I$SQLITE_INCDIR
17810 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17811 SQL_BINDIR=$SQLITE_BINDIR
17812 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17814 cat >>confdefs.h <<\_ACEOF
17815 #define HAVE_SQLITE3 1
17818 { echo "$as_me:$LINENO: result: yes" >&5
17819 echo "${ECHO_T}yes" >&6; }
17821 support_sqlite3=yes
17826 { echo "$as_me:$LINENO: result: no" >&5
17827 echo "${ECHO_T}no" >&6; }
17832 { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17845 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17846 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17848 # Check whether --with-sqlite was given.
17849 if test "${with_sqlite+set}" = set; then
17850 withval=$with_sqlite;
17851 if test "$withval" != "no"; then
17852 if test "$withval" = "yes"; then
17853 if test -f /usr/local/include/sqlite.h; then
17854 SQLITE_INCDIR=/usr/local/include
17855 if test -d /usr/local/lib64; then
17856 SQLITE_LIBDIR=/usr/local/lib64
17858 SQLITE_LIBDIR=/usr/local/lib
17860 SQLITE_BINDIR=/usr/local/bin
17861 elif test -f /usr/include/sqlite.h; then
17862 SQLITE_INCDIR=/usr/include
17863 if test -d /usr/lib64; then
17864 SQLITE_LIBDIR=/usr/lib64
17866 SQLITE_LIBDIR=/usr/lib
17868 SQLITE_BINDIR=/usr/bin
17869 elif test -f $prefix/include/sqlite.h; then
17870 SQLITE_INCDIR=$prefix/include
17871 if test -d $prefix/lib64; then
17872 SQLITE_LIBDIR=$prefix/lib64
17874 SQLITE_LIBDIR=$prefix/lib
17876 SQLITE_BINDIR=$prefix/bin
17878 { echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6; }
17880 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17881 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17882 { (exit 1); exit 1; }; }
17885 if test -f $withval/sqlite.h; then
17886 SQLITE_INCDIR=$withval
17887 SQLITE_LIBDIR=$withval
17888 SQLITE_BINDIR=$withval
17889 elif test -f $withval/include/sqlite.h; then
17890 SQLITE_INCDIR=$withval/include
17891 if test -d $withval/lib64; then
17892 SQLITE_LIBDIR=$withval/lib64
17894 SQLITE_LIBDIR=$withval/lib
17896 SQLITE_BINDIR=$withval/bin
17898 { echo "$as_me:$LINENO: result: no" >&5
17899 echo "${ECHO_T}no" >&6; }
17900 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17901 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17902 { (exit 1); exit 1; }; }
17905 SQL_INCLUDE=-I$SQLITE_INCDIR
17906 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17907 SQL_BINDIR=$SQLITE_BINDIR
17908 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17910 cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_SQLITE 1
17914 { echo "$as_me:$LINENO: result: yes" >&5
17915 echo "${ECHO_T}yes" >&6; }
17922 { echo "$as_me:$LINENO: result: no" >&5
17923 echo "${ECHO_T}no" >&6; }
17928 { echo "$as_me:$LINENO: result: no" >&5
17929 echo "${ECHO_T}no" >&6; }
17941 { echo "$as_me:$LINENO: checking for DBI support" >&5
17942 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17944 # Check whether --with-dbi was given.
17945 if test "${with_dbi+set}" = set; then
17947 if test "$withval" != "no"; then
17948 if test "$withval" = "yes"; then
17949 if test -f /usr/local/include/dbi/dbi.h; then
17950 DBI_INCDIR=/usr/local/dbi/include
17951 if test -d /usr/local/lib64; then
17952 DBI_LIBDIR=/usr/local/lib64
17954 DBI_LIBDIR=/usr/local/lib
17956 DBI_BINDIR=/usr/local/bin
17957 elif test -f /usr/include/dbi/dbi.h; then
17958 DBI_INCDIR=/usr/include
17959 if test -d /usr/lib64; then
17960 DBI_LIBDIR=/usr/lib64
17962 DBI_LIBDIR=/usr/lib
17964 DBI_BINDIR=/usr/bin
17965 elif test -f $prefix/include/dbi/dbi.h; then
17966 DBI_INCDIR=$prefix/include
17967 if test -d $prefix/lib64; then
17968 DBI_LIBDIR=$prefix/lib64
17970 DBI_LIBDIR=$prefix/lib
17972 DBI_BINDIR=$prefix/bin
17974 { echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6; }
17976 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17977 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17978 { (exit 1); exit 1; }; }
17980 if test -d /usr/local/lib/dbd; then
17981 DRIVERDIR=/usr/local/lib/dbd
17982 if test -d /usr/local/lib64/dbd; then
17983 DRIVERDIR=/usr/local/lib64/dbd
17985 DRIVERDIR=/usr/local/lib/dbd
17987 elif test -d /usr/lib/dbd; then
17988 DRIVERDIR=/usr/lib/dbd
17989 if test -d /usr/lib64/dbd; then
17990 DRIVERDIR=/usr/lib64/dbd
17992 DRIVERDIR=/usr/lib/dbd
17994 elif test -d $prefix/lib/dbd; then
17995 if test -d $prefix/lib64/dbd; then
17996 DRIVERDIR=$prefix/lib64/dbd
17998 DRIVERDIR=$prefix/lib/dbd
18001 { echo "$as_me:$LINENO: result: no" >&5
18002 echo "${ECHO_T}no" >&6; }
18003 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
18004 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
18005 { (exit 1); exit 1; }; }
18008 if test -f $withval/dbi.h; then
18009 DBI_INCDIR=$withval
18010 DBI_LIBDIR=$withval
18011 DBI_BINDIR=$withval
18012 elif test -f $withval/include/dbi/dbi.h; then
18013 DBI_INCDIR=$withval/include
18014 if test -d $withval/lib64; then
18015 DBI_LIBDIR=$withval/lib64
18017 DBI_LIBDIR=$withval/lib
18019 DBI_BINDIR=$withval/bin
18021 { echo "$as_me:$LINENO: result: no" >&5
18022 echo "${ECHO_T}no" >&6; }
18023 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
18024 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
18025 { (exit 1); exit 1; }; }
18027 if test -d $withval/dbd; then
18028 DRIVERDIR=$withval/dbd
18029 elif test -d $withval/lib/; then
18030 if test -d $withval/lib64/dbd; then
18031 DRIVERDIR=$withval/lib64/dbd
18033 DRIVERDIR=$withval/lib/dbd
18036 { echo "$as_me:$LINENO: result: no" >&5
18037 echo "${ECHO_T}no" >&6; }
18038 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18039 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18040 { (exit 1); exit 1; }; }
18043 SQL_INCLUDE=-I$DBI_INCDIR
18044 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18045 SQL_BINDIR=$DBI_BINDIR
18046 SQL_LIB=$DBI_LIBDIR/libdbi.a
18047 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18050 cat >>confdefs.h <<\_ACEOF
18054 { echo "$as_me:$LINENO: result: yes" >&5
18055 echo "${ECHO_T}yes" >&6; }
18063 { echo "$as_me:$LINENO: result: no" >&5
18064 echo "${ECHO_T}no" >&6; }
18069 { echo "$as_me:$LINENO: result: no" >&5
18070 echo "${ECHO_T}no" >&6; }
18085 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18086 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18088 # Check whether --with-dbi-driver was given.
18089 if test "${with_dbi_driver+set}" = set; then
18090 withval=$with_dbi_driver;
18091 if test "$withval" != "no"; then
18095 if test -f /usr/local/mysql/bin/mysql; then
18096 SQL_BINDIR=/usr/local/mysql/bin
18097 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18098 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18099 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18101 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18103 elif test -f /usr/bin/mysql; then
18104 SQL_BINDIR=/usr/bin
18105 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18106 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18107 SQL_LIBDIR=/usr/lib64/mysql
18108 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18109 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18110 SQL_LIBDIR=/usr/lib/mysql
18112 SQL_LIBDIR=/usr/lib
18114 elif test -f /usr/local/bin/mysql; then
18115 SQL_BINDIR=/usr/local/bin
18116 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18117 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18118 SQL_LIBDIR=/usr/local/lib64/mysql
18119 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18120 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18121 SQL_LIBDIR=/usr/local/lib/mysql
18123 SQL_LIBDIR=/usr/local/lib
18125 elif test -f $withval/bin/mysql; then
18126 SQL_BINDIR=$withval/bin
18127 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18128 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18129 SQL_LIBDIR=$withval/lib64/mysql
18130 elif test -f $withval/lib64/libmysqlclient_r.a \
18131 -o -f $withval/lib64/libmysqlclient_r.so; then
18132 SQL_LIBDIR=$withval/lib64
18133 elif test -f $withval/lib/libmysqlclient_r.a \
18134 -o -f $withval/lib/libmysqlclient_r.so; then
18135 SQL_LIBDIR=$withval/lib/
18137 SQL_LIBDIR=$withval/lib/mysql
18140 { echo "$as_me:$LINENO: result: no" >&5
18141 echo "${ECHO_T}no" >&6; }
18142 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18143 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18144 { (exit 1); exit 1; }; }
18146 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18149 db_prog="postgresql"
18150 PG_CONFIG=`which pg_config`
18151 if test -n "$PG_CONFIG"; then
18152 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18153 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18154 elif test -f /usr/local/bin/psql; then
18155 SQL_BINDIR=/usr/local/bin
18156 if test -d /usr/local/lib64; then
18157 SQL_LIBDIR=/usr/local/lib64
18159 SQL_LIBDIR=/usr/local/lib
18161 elif test -f /usr/bin/psql; then
18162 SQL_BINDIR=/usr/local/bin
18163 if test -d /usr/lib64/postgresql; then
18164 SQL_LIBDIR=/usr/lib64/postgresql
18165 elif test -d /usr/lib/postgresql; then
18166 SQL_LIBDIR=/usr/lib/postgresql
18167 elif test -d /usr/lib64; then
18168 SQL_LIBDIR=/usr/lib64
18170 SQL_LIBDIR=/usr/lib
18172 elif test -f $withval/bin/psql; then
18173 SQL_BINDIR=$withval/bin
18174 if test -d $withval/lib64; then
18175 SQL_LIBDIR=$withval/lib64
18177 SQL_LIBDIR=$withval/lib
18180 { echo "$as_me:$LINENO: result: no" >&5
18181 echo "${ECHO_T}no" >&6; }
18182 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18183 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18184 { (exit 1); exit 1; }; }
18186 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18190 if test -f /usr/local/bin/sqlite; then
18191 SQL_BINDIR=/usr/local/bin
18192 if test -d /usr/local/lib64; then
18193 SQL_LIBDIR=/usr/local/lib64
18195 SQL_LIBDIR=/usr/local/lib
18197 elif test -f /usr/bin/sqlite; then
18198 SQL_BINDIR=/usr/bin
18199 if test -d /usr/lib64; then
18200 SQL_LIBDIR=/usr/lib64
18202 SQL_LIBDIR=/usr/lib
18204 elif test -f $withval/bin/sqlite; then
18205 SQL_BINDIR=$withval/bin
18206 if test -d $withval/lib64; then
18207 SQL_LIBDIR=$withval/lib64
18209 SQL_LIBDIR=$withval/lib
18212 { echo "$as_me:$LINENO: result: no" >&5
18213 echo "${ECHO_T}no" >&6; }
18214 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18215 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18216 { (exit 1); exit 1; }; }
18218 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
18222 if test -f /usr/local/bin/sqlite3; then
18223 SQL_BINDIR=/usr/local/bin
18224 if test -d /usr/local/lib64; then
18225 SQL_LIBDIR=/usr/local/lib64
18227 SQL_LIBDIR=/usr/local/lib
18229 elif test -f /usr/bin/sqlite3; then
18230 SQL_BINDIR=/usr/bin
18231 if test -d /usr/lib64; then
18232 SQL_LIBDIR=/usr/lib64
18234 SQL_LIBDIR=/usr/lib
18236 elif test -f $withval/bin/sqlite3; then
18237 SQL_BINDIR=$withval/bin
18238 if test -d $withval/lib64; then
18239 SQL_LIBDIR=$withval/lib64
18241 SQL_LIBDIR=$withval/lib
18244 { echo "$as_me:$LINENO: result: no" >&5
18245 echo "${ECHO_T}no" >&6; }
18246 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18247 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18248 { (exit 1); exit 1; }; }
18250 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
18253 { echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6; }
18255 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18256 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18257 { (exit 1); exit 1; }; }
18261 { echo "$as_me:$LINENO: result: yes" >&5
18262 echo "${ECHO_T}yes" >&6; }
18265 { echo "$as_me:$LINENO: result: no" >&5
18266 echo "${ECHO_T}no" >&6; }
18271 { echo "$as_me:$LINENO: result: no" >&5
18272 echo "${ECHO_T}no" >&6; }
18285 # -------------------------------------------
18286 # enable batch attribute DB insert (default on)
18287 # -------------------------------------------
18288 support_batch_insert=no
18289 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18291 if test $pkg = 0; then
18292 support_batch_insert=yes
18293 # Check whether --enable-batch-insert was given.
18294 if test "${enable_batch_insert+set}" = set; then
18295 enableval=$enable_batch_insert; if test x$enableval = xno; then
18296 support_batch_insert=no
18298 support_batch_insert=yes
18304 # Check if postgresql support batch mode
18305 if test x$DB_TYPE = xpostgresql; then
18306 A=`nm $SQL_LIB | grep PQputCopyData`
18308 if test $pkg != 0; then
18309 support_batch_insert=no
18313 if test x$DB_TYPE = xdbi; then
18317 # Check for batch insert
18318 if test $DB_PROG = postgresql; then
18319 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18323 if test $DB_PROG = mysql; then
18324 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18328 if test $DB_PROG = sqlite3; then
18329 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18333 if test $pkg = 0; then
18334 # Check whether --enable-batch-insert was given.
18335 if test "${enable_batch_insert+set}" = set; then
18336 enableval=$enable_batch_insert; if test x$enableval = xno; then
18337 support_batch_insert=no
18339 support_batch_insert=yes
18345 # If dbi was not chosen, let the comment in file
18351 if test $support_batch_insert = yes ; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_BATCH_FILE_INSERT 1
18360 cat >>confdefs.h <<\_ACEOF
18361 #define PROTOTYPES 1
18365 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18366 if test -z "$CCOPTS"; then
18367 CCOPTS='-g -O2 -Wall'
18375 largefile_support="no"
18377 # Check whether --enable-largefile was given.
18378 if test "${enable_largefile+set}" = set; then
18379 enableval=$enable_largefile;
18382 if test "$enable_largefile" != no; then
18383 if test -n "$ac_tool_prefix"; then
18384 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18385 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_prog_GETCONF+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 if test -n "$GETCONF"; then
18392 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18398 test -z "$as_dir" && as_dir=.
18399 for ac_exec_ext in '' $ac_executable_extensions; do
18400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18401 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18411 GETCONF=$ac_cv_prog_GETCONF
18412 if test -n "$GETCONF"; then
18413 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18414 echo "${ECHO_T}$GETCONF" >&6; }
18416 { echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6; }
18422 if test -z "$ac_cv_prog_GETCONF"; then
18423 ac_ct_GETCONF=$GETCONF
18424 # Extract the first word of "getconf", so it can be a program name with args.
18425 set dummy getconf; ac_word=$2
18426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18428 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 if test -n "$ac_ct_GETCONF"; then
18432 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18438 test -z "$as_dir" && as_dir=.
18439 for ac_exec_ext in '' $ac_executable_extensions; do
18440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18441 ac_cv_prog_ac_ct_GETCONF="getconf"
18442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18451 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18452 if test -n "$ac_ct_GETCONF"; then
18453 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18454 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18456 { echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6; }
18460 if test "x$ac_ct_GETCONF" = x; then
18463 case $cross_compiling:$ac_tool_warned in
18465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18466 whose name does not start with the host triplet. If you think this
18467 configuration is useful to you, please write to autoconf@gnu.org." >&5
18468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18469 whose name does not start with the host triplet. If you think this
18470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18471 ac_tool_warned=yes ;;
18473 GETCONF=$ac_ct_GETCONF
18476 GETCONF="$ac_cv_prog_GETCONF"
18479 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18480 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18481 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18485 ac_cv_sys_largefile_CFLAGS=no
18487 # IRIX 6.2 and later require cc -n32.
18488 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18489 if test "$GCC" != yes; then
18490 ac_cv_sys_largefile_CFLAGS=-n32
18493 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_sys_largefile_CFLAGS=no
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18541 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18542 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18543 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18544 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18545 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18549 ac_cv_sys_largefile_LDFLAGS=no
18553 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18554 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18555 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18556 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18557 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18561 ac_cv_sys_largefile_LIBS=no
18565 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18566 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18568 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18571 -D_FILE_OFFSET_BITS=*) ;;
18572 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18573 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18578 case "$CPPFLAGS" in
18579 '') CPPFLAGS="$ac_flag" ;;
18580 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18588 '') CFLAGS="$ac_flag" ;;
18589 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18594 case "$ac_cv_sys_largefile_LDFLAGS" in
18598 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18599 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18602 case "$ac_cv_sys_largefile_LIBS" in
18606 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18607 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18610 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18611 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 ac_cv_sys_file_offset_bits=no
18616 ac_cv_sys_file_offset_bits=64
18617 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18619 -D_FILE_OFFSET_BITS)
18620 ac_cv_sys_file_offset_bits=1 ;;
18621 -D_FILE_OFFSET_BITS=*)
18622 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18627 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18628 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18629 if test "$ac_cv_sys_file_offset_bits" != no; then
18631 cat >>confdefs.h <<_ACEOF
18632 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18636 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18637 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18638 if test "${ac_cv_sys_largefile_source+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 ac_cv_sys_largefile_source=no
18642 ac_cv_sys_largefile_source=1
18643 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18645 -D_LARGEFILE_SOURCE)
18646 ac_cv_sys_largefile_source=1 ;;
18647 -D_LARGEFILE_SOURCE=*)
18648 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18653 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18654 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18655 if test "$ac_cv_sys_largefile_source" != no; then
18657 cat >>confdefs.h <<_ACEOF
18658 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18662 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18663 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18664 if test "${ac_cv_sys_large_files+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 ac_cv_sys_large_files=no
18668 ac_cv_sys_large_files=1
18669 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18672 ac_cv_sys_large_files=1 ;;
18674 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18679 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18680 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18681 if test "$ac_cv_sys_large_files" != no; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define _LARGE_FILES $ac_cv_sys_large_files
18692 { echo "$as_me:$LINENO: checking for X" >&5
18693 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18696 # Check whether --with-x was given.
18697 if test "${with_x+set}" = set; then
18701 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18702 if test "x$with_x" = xno; then
18703 # The user explicitly disabled X.
18706 case $x_includes,$x_libraries in #(
18707 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18708 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18709 { (exit 1); exit 1; }; };; #(
18710 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 # One or both of the vars are not set, and there is no cached value.
18714 ac_x_includes=no ac_x_libraries=no
18715 rm -f -r conftest.dir
18716 if mkdir conftest.dir; then
18718 cat >Imakefile <<'_ACEOF'
18720 @echo incroot='${INCROOT}'
18722 @echo usrlibdir='${USRLIBDIR}'
18724 @echo libdir='${LIBDIR}'
18726 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18728 for ac_var in incroot usrlibdir libdir; do
18729 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18731 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18732 for ac_extension in a so sl; do
18733 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18734 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18735 ac_im_usrlibdir=$ac_im_libdir; break
18738 # Screen out bogus values from the imake configuration. They are
18739 # bogus both because they are the default anyway, and because
18740 # using them would break gcc on systems where it needs fixed includes.
18741 case $ac_im_incroot in
18742 /usr/include) ac_x_includes= ;;
18743 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18745 case $ac_im_usrlibdir in
18746 /usr/lib | /lib) ;;
18747 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18751 rm -f -r conftest.dir
18754 # Standard set of common directories for X headers.
18755 # Check X11 before X11Rn because it is often a symlink to the current release.
18767 /usr/local/X11/include
18768 /usr/local/X11R6/include
18769 /usr/local/X11R5/include
18770 /usr/local/X11R4/include
18772 /usr/local/include/X11
18773 /usr/local/include/X11R6
18774 /usr/local/include/X11R5
18775 /usr/local/include/X11R4
18779 /usr/XFree86/include/X11
18783 /usr/unsupported/include
18784 /usr/athena/include
18785 /usr/local/x11r5/include
18786 /usr/lpp/Xamples/include
18788 /usr/openwin/include
18789 /usr/openwin/share/include'
18791 if test "$ac_x_includes" = no; then
18792 # Guess where to find include files, by looking for Xlib.h.
18793 # First, try using that file with no special directory specified.
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 #include <X11/Xlib.h>
18802 if { (ac_try="$ac_cpp conftest.$ac_ext"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18810 grep -v '^ *+' conftest.er1 >conftest.err
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } >/dev/null && {
18815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18818 # We can compile using X headers with no special include directory.
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 for ac_dir in $ac_x_header_dirs; do
18825 if test -r "$ac_dir/X11/Xlib.h"; then
18826 ac_x_includes=$ac_dir
18832 rm -f conftest.err conftest.$ac_ext
18833 fi # $ac_x_includes = no
18835 if test "$ac_x_libraries" = no; then
18836 # Check for the libraries.
18837 # See if we find them without any special options.
18838 # Don't add to $LIBS permanently.
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 #include <X11/Xlib.h>
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest$ac_exeext &&
18873 $as_test_x conftest$ac_exeext; then
18875 # We can link X programs with no special library path.
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18882 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18884 # Don't even attempt the hair of trying to link an X program!
18885 for ac_extension in a so sl; do
18886 if test -r "$ac_dir/libX11.$ac_extension"; then
18887 ac_x_libraries=$ac_dir
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext conftest.$ac_ext
18896 fi # $ac_x_libraries = no
18898 case $ac_x_includes,$ac_x_libraries in #(
18899 no,* | *,no | *\'*)
18900 # Didn't find X, or a directory has "'" in its name.
18901 ac_cv_have_x="have_x=no";; #(
18903 # Record where we found X for the cache.
18904 ac_cv_have_x="have_x=yes\
18905 ac_x_includes='$ac_x_includes'\
18906 ac_x_libraries='$ac_x_libraries'"
18912 eval "$ac_cv_have_x"
18915 if test "$have_x" != yes; then
18916 { echo "$as_me:$LINENO: result: $have_x" >&5
18917 echo "${ECHO_T}$have_x" >&6; }
18920 # If each of the values was on the command line, it overrides each guess.
18921 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18922 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18923 # Update the cache value to reflect the command line values.
18924 ac_cv_have_x="have_x=yes\
18925 ac_x_includes='$x_includes'\
18926 ac_x_libraries='$x_libraries'"
18927 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18928 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18931 if test "$no_x" = yes; then
18932 # Not all programs may use this symbol, but it does not hurt to define it.
18934 cat >>confdefs.h <<\_ACEOF
18935 #define X_DISPLAY_MISSING 1
18938 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18940 if test -n "$x_includes"; then
18941 X_CFLAGS="$X_CFLAGS -I$x_includes"
18944 # It would also be nice to do this for all -L options, not just this one.
18945 if test -n "$x_libraries"; then
18946 X_LIBS="$X_LIBS -L$x_libraries"
18947 # For Solaris; some versions of Sun CC require a space after -R and
18948 # others require no space. Words are not sufficient . . . .
18949 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18950 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18951 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18952 ac_xsave_c_werror_flag=$ac_c_werror_flag
18953 ac_c_werror_flag=yes
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18987 { echo "$as_me:$LINENO: result: no" >&5
18988 echo "${ECHO_T}no" >&6; }
18989 X_LIBS="$X_LIBS -R$x_libraries"
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 LIBS="$ac_xsave_LIBS -R $x_libraries"
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && {
19024 test -z "$ac_c_werror_flag" ||
19025 test ! -s conftest.err
19026 } && test -s conftest$ac_exeext &&
19027 $as_test_x conftest$ac_exeext; then
19028 { echo "$as_me:$LINENO: result: yes" >&5
19029 echo "${ECHO_T}yes" >&6; }
19030 X_LIBS="$X_LIBS -R $x_libraries"
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 { echo "$as_me:$LINENO: result: neither works" >&5
19036 echo "${ECHO_T}neither works" >&6; }
19039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19040 conftest$ac_exeext conftest.$ac_ext
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19045 ac_c_werror_flag=$ac_xsave_c_werror_flag
19046 LIBS=$ac_xsave_LIBS
19049 # Check for system-dependent libraries X programs must link with.
19050 # Do this before checking for the system-independent R6 libraries
19051 # (-lICE), since we may need -lsocket or whatever for X linking.
19053 if test "$ISC" = yes; then
19054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19056 # Martyn Johnson says this is needed for Ultrix, if the X
19057 # libraries were built with DECnet support. And Karl Berry says
19058 # the Alpha needs dnet_stub (dnet does not exist).
19059 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19073 char XOpenDisplay ();
19077 return XOpenDisplay ();
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext &&
19099 $as_test_x conftest$ac_exeext; then
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19106 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19107 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-ldnet $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19129 return dnet_ntoa ();
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (ac_try="$ac_link"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_link") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest$ac_exeext &&
19151 $as_test_x conftest$ac_exeext; then
19152 ac_cv_lib_dnet_dnet_ntoa=yes
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_cv_lib_dnet_dnet_ntoa=no
19160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19161 conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19165 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19166 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19167 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19170 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19171 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19172 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19173 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 ac_check_lib_save_LIBS=$LIBS
19177 LIBS="-ldnet_stub $LIBS"
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19195 return dnet_ntoa ();
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (ac_try="$ac_link"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_link") 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && {
19214 test -z "$ac_c_werror_flag" ||
19215 test ! -s conftest.err
19216 } && test -s conftest$ac_exeext &&
19217 $as_test_x conftest$ac_exeext; then
19218 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_cv_lib_dnet_stub_dnet_ntoa=no
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19231 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19232 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19233 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240 conftest$ac_exeext conftest.$ac_ext
19241 LIBS="$ac_xsave_LIBS"
19243 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19244 # to get the SysV transport functions.
19245 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19247 # The nsl library prevents programs from opening the X display
19248 # on Irix 5.2, according to T.E. Dickey.
19249 # The functions gethostbyname, getservbyname, and inet_addr are
19250 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19251 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19252 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19253 if test "${ac_cv_func_gethostbyname+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19264 #define gethostbyname innocuous_gethostbyname
19266 /* System header to define __stub macros and hopefully few prototypes,
19267 which can conflict with char gethostbyname (); below.
19268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19269 <limits.h> exists even on freestanding compilers. */
19272 # include <limits.h>
19274 # include <assert.h>
19277 #undef gethostbyname
19279 /* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19285 char gethostbyname ();
19286 /* The GNU C library defines this for functions which it implements
19287 to always fail with ENOSYS. Some functions are actually named
19288 something starting with __ and the normal name is an alias. */
19289 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19296 return gethostbyname ();
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_link") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest$ac_exeext &&
19318 $as_test_x conftest$ac_exeext; then
19319 ac_cv_func_gethostbyname=yes
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ac_cv_func_gethostbyname=no
19327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19328 conftest$ac_exeext conftest.$ac_ext
19330 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19331 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19333 if test $ac_cv_func_gethostbyname = no; then
19334 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19335 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 ac_check_lib_save_LIBS=$LIBS
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19354 char gethostbyname ();
19358 return gethostbyname ();
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_link") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } && {
19377 test -z "$ac_c_werror_flag" ||
19378 test ! -s conftest.err
19379 } && test -s conftest$ac_exeext &&
19380 $as_test_x conftest$ac_exeext; then
19381 ac_cv_lib_nsl_gethostbyname=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_cv_lib_nsl_gethostbyname=no
19389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19390 conftest$ac_exeext conftest.$ac_ext
19391 LIBS=$ac_check_lib_save_LIBS
19393 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19394 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19395 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19399 if test $ac_cv_lib_nsl_gethostbyname = no; then
19400 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19401 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_check_lib_save_LIBS=$LIBS
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19420 char gethostbyname ();
19424 return gethostbyname ();
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest$ac_exeext &&
19446 $as_test_x conftest$ac_exeext; then
19447 ac_cv_lib_bsd_gethostbyname=yes
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_cv_lib_bsd_gethostbyname=no
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19460 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19461 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19468 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19469 # socket/setsockopt and other routines are undefined under SCO ODT
19470 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19471 # on later versions), says Simon Leinen: it contains gethostby*
19472 # variants that don't use the name server (or something). -lsocket
19473 # must be given before -lnsl if both are needed. We assume that
19474 # if connect needs -lnsl, so does gethostbyname.
19475 { echo "$as_me:$LINENO: checking for connect" >&5
19476 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19477 if test "${ac_cv_func_connect+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 cat >conftest.$ac_ext <<_ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h. */
19486 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19488 #define connect innocuous_connect
19490 /* System header to define __stub macros and hopefully few prototypes,
19491 which can conflict with char connect (); below.
19492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19493 <limits.h> exists even on freestanding compilers. */
19496 # include <limits.h>
19498 # include <assert.h>
19503 /* Override any GCC internal prototype to avoid an error.
19504 Use char because int might match the return type of a GCC
19505 builtin and then its argument prototype would still apply. */
19510 /* The GNU C library defines this for functions which it implements
19511 to always fail with ENOSYS. Some functions are actually named
19512 something starting with __ and the normal name is an alias. */
19513 #if defined __stub_connect || defined __stub___connect
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_link") 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest$ac_exeext &&
19542 $as_test_x conftest$ac_exeext; then
19543 ac_cv_func_connect=yes
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19548 ac_cv_func_connect=no
19551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19552 conftest$ac_exeext conftest.$ac_ext
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19555 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19557 if test $ac_cv_func_connect = no; then
19558 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19559 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19560 if test "${ac_cv_lib_socket_connect+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 ac_check_lib_save_LIBS=$LIBS
19564 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19565 cat >conftest.$ac_ext <<_ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19572 /* Override any GCC internal prototype to avoid an error.
19573 Use char because int might match the return type of a GCC
19574 builtin and then its argument prototype would still apply. */
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_link") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest$ac_exeext &&
19604 $as_test_x conftest$ac_exeext; then
19605 ac_cv_lib_socket_connect=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_lib_socket_connect=no
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614 conftest$ac_exeext conftest.$ac_ext
19615 LIBS=$ac_check_lib_save_LIBS
19617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19618 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19619 if test $ac_cv_lib_socket_connect = yes; then
19620 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19625 # Guillermo Gomez says -lposix is necessary on A/UX.
19626 { echo "$as_me:$LINENO: checking for remove" >&5
19627 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19628 if test "${ac_cv_func_remove+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19639 #define remove innocuous_remove
19641 /* System header to define __stub macros and hopefully few prototypes,
19642 which can conflict with char remove (); below.
19643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644 <limits.h> exists even on freestanding compilers. */
19647 # include <limits.h>
19649 # include <assert.h>
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined __stub_remove || defined __stub___remove
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (ac_try="$ac_link"
19678 case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_link") 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } && {
19690 test -z "$ac_c_werror_flag" ||
19691 test ! -s conftest.err
19692 } && test -s conftest$ac_exeext &&
19693 $as_test_x conftest$ac_exeext; then
19694 ac_cv_func_remove=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_func_remove=no
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703 conftest$ac_exeext conftest.$ac_ext
19705 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19706 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19708 if test $ac_cv_func_remove = no; then
19709 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19710 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19711 if test "${ac_cv_lib_posix_remove+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lposix $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 ac_cv_lib_posix_remove=yes
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_cv_lib_posix_remove=no
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19769 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19770 if test $ac_cv_lib_posix_remove = yes; then
19771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19776 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19777 { echo "$as_me:$LINENO: checking for shmat" >&5
19778 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19779 if test "${ac_cv_func_shmat+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19790 #define shmat innocuous_shmat
19792 /* System header to define __stub macros and hopefully few prototypes,
19793 which can conflict with char shmat (); below.
19794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795 <limits.h> exists even on freestanding compilers. */
19798 # include <limits.h>
19800 # include <assert.h>
19805 /* Override any GCC internal prototype to avoid an error.
19806 Use char because int might match the return type of a GCC
19807 builtin and then its argument prototype would still apply. */
19812 /* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815 #if defined __stub_shmat || defined __stub___shmat
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_func_shmat=yes
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_func_shmat=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19856 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19857 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19859 if test $ac_cv_func_shmat = no; then
19860 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19861 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19862 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 ac_check_lib_save_LIBS=$LIBS
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19907 ac_cv_lib_ipc_shmat=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_lib_ipc_shmat=no
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19919 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19920 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19921 if test $ac_cv_lib_ipc_shmat = yes; then
19922 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19928 # Check for libraries that X11R6 Xt/Xaw programs need.
19929 ac_save_LDFLAGS=$LDFLAGS
19930 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19931 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19932 # check for ICE first), but we must link in the order -lSM -lICE or
19933 # we get undefined symbols. So assume we have SM if we have ICE.
19934 # These have to be linked with before -lX11, unlike the other
19935 # libraries we check for below, so use a different variable.
19936 # John Interrante, Karl Berry
19937 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19938 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19939 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19951 /* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19957 char IceConnectionNumber ();
19961 return IceConnectionNumber ();
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_link") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest$ac_exeext &&
19983 $as_test_x conftest$ac_exeext; then
19984 ac_cv_lib_ICE_IceConnectionNumber=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_lib_ICE_IceConnectionNumber=no
19992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993 conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19996 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19997 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19998 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19999 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20002 LDFLAGS=$ac_save_LDFLAGS
20070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 ac_res=`eval echo '${'$as_ac_Header'}'`
20078 { echo "$as_me:$LINENO: result: $ac_res" >&5
20079 echo "${ECHO_T}$ac_res" >&6; }
20081 # Is the header compilable?
20082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20091 #include <$ac_header>
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest.$ac_objext; then
20110 ac_header_compiler=yes
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_header_compiler=no
20118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20120 echo "${ECHO_T}$ac_header_compiler" >&6; }
20122 # Is the header present?
20123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 #include <$ac_header>
20133 if { (ac_try="$ac_cpp conftest.$ac_ext"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } >/dev/null && {
20146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20149 ac_header_preproc=yes
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_header_preproc=no
20157 rm -f conftest.err conftest.$ac_ext
20158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20159 echo "${ECHO_T}$ac_header_preproc" >&6; }
20161 # So? What about this header?
20162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20168 ac_header_preproc=yes
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 eval "$as_ac_Header=\$ac_header_preproc"
20193 ac_res=`eval echo '${'$as_ac_Header'}'`
20194 { echo "$as_me:$LINENO: result: $ac_res" >&5
20195 echo "${ECHO_T}$ac_res" >&6; }
20198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20199 cat >>confdefs.h <<_ACEOF
20200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20207 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20209 if test "${ac_cv_header_stdc+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 #include <stdlib.h>
20219 #include <stdarg.h>
20220 #include <string.h>
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest.$ac_objext; then
20248 ac_cv_header_stdc=yes
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_header_stdc=no
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258 if test $ac_cv_header_stdc = yes; then
20259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 #include <string.h>
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270 $EGREP "memchr" >/dev/null 2>&1; then
20273 ac_cv_header_stdc=no
20279 if test $ac_cv_header_stdc = yes; then
20280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 #include <stdlib.h>
20290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20291 $EGREP "free" >/dev/null 2>&1; then
20294 ac_cv_header_stdc=no
20300 if test $ac_cv_header_stdc = yes; then
20301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20302 if test "$cross_compiling" = yes; then
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20312 #include <stdlib.h>
20313 #if ((' ' & 0x0FF) == 0x020)
20314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20317 # define ISLOWER(c) \
20318 (('a' <= (c) && (c) <= 'i') \
20319 || ('j' <= (c) && (c) <= 'r') \
20320 || ('s' <= (c) && (c) <= 'z'))
20321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20329 for (i = 0; i < 256; i++)
20330 if (XOR (islower (i), ISLOWER (i))
20331 || toupper (i) != TOUPPER (i))
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_link") 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20347 { (case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_try") 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20358 echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ( exit $ac_status )
20363 ac_cv_header_stdc=no
20365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20371 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20372 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20373 if test $ac_cv_header_stdc = yes; then
20375 cat >>confdefs.h <<\_ACEOF
20376 #define STDC_HEADERS 1
20381 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20382 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20383 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include <sys/types.h>
20396 return makedev(0, 0);
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext &&
20418 $as_test_x conftest$ac_exeext; then
20419 ac_cv_header_sys_types_h_makedev=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_header_sys_types_h_makedev=no
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20431 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20432 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20434 if test $ac_cv_header_sys_types_h_makedev = no; then
20435 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20436 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20437 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20438 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20442 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20444 # Is the header compilable?
20445 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20446 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 $ac_includes_default
20454 #include <sys/mkdev.h>
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest.$ac_objext; then
20473 ac_header_compiler=yes
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_compiler=no
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6; }
20485 # Is the header present?
20486 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20487 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <sys/mkdev.h>
20496 if { (ac_try="$ac_cpp conftest.$ac_ext"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } >/dev/null && {
20509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20512 ac_header_preproc=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_preproc=no
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20524 # So? What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20527 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20531 ac_header_preproc=yes
20534 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20549 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20550 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20551 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20556 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20557 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20560 if test $ac_cv_header_sys_mkdev_h = yes; then
20562 cat >>confdefs.h <<\_ACEOF
20563 #define MAJOR_IN_MKDEV 1
20570 if test $ac_cv_header_sys_mkdev_h = no; then
20571 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20572 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20573 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20574 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20578 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20580 # Is the header compilable?
20581 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20582 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 $ac_includes_default
20590 #include <sys/sysmacros.h>
20592 rm -f conftest.$ac_objext
20593 if { (ac_try="$ac_compile"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_compile") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest.$ac_objext; then
20609 ac_header_compiler=yes
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_header_compiler=no
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20619 echo "${ECHO_T}$ac_header_compiler" >&6; }
20621 # Is the header present?
20622 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20623 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <sys/sysmacros.h>
20632 if { (ac_try="$ac_cpp conftest.$ac_ext"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } >/dev/null && {
20645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20648 ac_header_preproc=yes
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ac_header_preproc=no
20656 rm -f conftest.err conftest.$ac_ext
20657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6; }
20660 # So? What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20663 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc=yes
20670 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20685 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20686 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20687 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20693 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20696 if test $ac_cv_header_sys_sysmacros_h = yes; then
20698 cat >>confdefs.h <<\_ACEOF
20699 #define MAJOR_IN_SYSMACROS 1
20713 ac_header_dirent=no
20714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20715 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20716 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20717 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <sys/types.h>
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest.$ac_objext; then
20756 eval "$as_ac_Header=yes"
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 eval "$as_ac_Header=no"
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 ac_res=`eval echo '${'$as_ac_Header'}'`
20767 { echo "$as_me:$LINENO: result: $ac_res" >&5
20768 echo "${ECHO_T}$ac_res" >&6; }
20769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20774 ac_header_dirent=$ac_hdr; break
20778 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20779 if test $ac_header_dirent = dirent.h; then
20780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20782 if test "${ac_cv_search_opendir+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 ac_func_search_save_LIBS=$LIBS
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20808 for ac_lib in '' dir; do
20809 if test -z "$ac_lib"; then
20810 ac_res="none required"
20813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_link") 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest$ac_exeext &&
20832 $as_test_x conftest$ac_exeext; then
20833 ac_cv_search_opendir=$ac_res
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20843 if test "${ac_cv_search_opendir+set}" = set; then
20847 if test "${ac_cv_search_opendir+set}" = set; then
20850 ac_cv_search_opendir=no
20852 rm conftest.$ac_ext
20853 LIBS=$ac_func_search_save_LIBS
20855 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20856 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20857 ac_res=$ac_cv_search_opendir
20858 if test "$ac_res" != no; then
20859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20864 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20866 if test "${ac_cv_search_opendir+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 ac_func_search_save_LIBS=$LIBS
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20892 for ac_lib in '' x; do
20893 if test -z "$ac_lib"; then
20894 ac_res="none required"
20897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>conftest.er1
20908 grep -v '^ *+' conftest.er1 >conftest.err
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest$ac_exeext &&
20916 $as_test_x conftest$ac_exeext; then
20917 ac_cv_search_opendir=$ac_res
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20927 if test "${ac_cv_search_opendir+set}" = set; then
20931 if test "${ac_cv_search_opendir+set}" = set; then
20934 ac_cv_search_opendir=no
20936 rm conftest.$ac_ext
20937 LIBS=$ac_func_search_save_LIBS
20939 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20940 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20941 ac_res=$ac_cv_search_opendir
20942 if test "$ac_res" != no; then
20943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20949 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20950 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20951 if test "${ac_cv_header_stat_broken+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/types.h>
20961 #include <sys/stat.h>
20963 #if defined S_ISBLK && defined S_IFDIR
20964 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20967 #if defined S_ISBLK && defined S_IFCHR
20968 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20971 #if defined S_ISLNK && defined S_IFREG
20972 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20975 #if defined S_ISSOCK && defined S_IFREG
20976 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_compile") 2>conftest.er1
20989 grep -v '^ *+' conftest.er1 >conftest.err
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest.$ac_objext; then
20997 ac_cv_header_stat_broken=no
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_cv_header_stat_broken=yes
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
21008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
21009 if test $ac_cv_header_stat_broken = yes; then
21011 cat >>confdefs.h <<\_ACEOF
21012 #define STAT_MACROS_BROKEN 1
21017 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <sys/types.h>
21029 #include <sys/wait.h>
21030 #ifndef WEXITSTATUS
21031 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21034 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21042 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_cv_header_sys_wait_h=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_header_sys_wait_h=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21075 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21076 if test $ac_cv_header_sys_wait_h = yes; then
21078 cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_SYS_WAIT_H 1
21084 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21086 if test "${ac_cv_header_time+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <sys/types.h>
21096 #include <sys/time.h>
21102 if ((struct tm *) 0)
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 ac_cv_header_time=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_header_time=no
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21136 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21137 if test $ac_cv_header_time = yes; then
21139 cat >>confdefs.h <<\_ACEOF
21140 #define TIME_WITH_SYS_TIME 1
21145 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21146 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21147 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21160 static struct stat ac_aggr;
21161 if (ac_aggr.st_blksize)
21167 rm -f conftest.$ac_objext
21168 if { (ac_try="$ac_compile"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_compile") 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest.$ac_objext; then
21184 ac_cv_member_struct_stat_st_blksize=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 $ac_includes_default
21199 static struct stat ac_aggr;
21200 if (sizeof ac_aggr.st_blksize)
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21223 ac_cv_member_struct_stat_st_blksize=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_member_struct_stat_st_blksize=no
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21238 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21240 cat >>confdefs.h <<_ACEOF
21241 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21245 cat >>confdefs.h <<\_ACEOF
21246 #define HAVE_ST_BLKSIZE 1
21252 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21253 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21254 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 $ac_includes_default
21267 static struct stat ac_aggr;
21268 if (ac_aggr.st_blocks)
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_compile") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && {
21288 test -z "$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 } && test -s conftest.$ac_objext; then
21291 ac_cv_member_struct_stat_st_blocks=yes
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 cat >conftest.$ac_ext <<_ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h. */
21302 $ac_includes_default
21306 static struct stat ac_aggr;
21307 if (sizeof ac_aggr.st_blocks)
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_compile") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest.$ac_objext; then
21330 ac_cv_member_struct_stat_st_blocks=yes
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21335 ac_cv_member_struct_stat_st_blocks=no
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21345 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21347 cat >>confdefs.h <<_ACEOF
21348 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21352 cat >>confdefs.h <<\_ACEOF
21353 #define HAVE_ST_BLOCKS 1
21357 case " $LIBOBJS " in
21358 *" fileblocks.$ac_objext "* ) ;;
21359 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21366 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21367 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21368 if test "${ac_cv_struct_tm+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 #include <sys/types.h>
21384 int *p = &tm.tm_sec;
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397 (eval "$ac_compile") 2>conftest.er1
21399 grep -v '^ *+' conftest.er1 >conftest.err
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && {
21404 test -z "$ac_c_werror_flag" ||
21405 test ! -s conftest.err
21406 } && test -s conftest.$ac_objext; then
21407 ac_cv_struct_tm=time.h
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ac_cv_struct_tm=sys/time.h
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21418 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21419 if test $ac_cv_struct_tm = sys/time.h; then
21421 cat >>confdefs.h <<\_ACEOF
21422 #define TM_IN_SYS_TIME 1
21427 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21428 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21429 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <sys/types.h>
21439 #include <$ac_cv_struct_tm>
21445 static struct tm ac_aggr;
21446 if (ac_aggr.tm_zone)
21452 rm -f conftest.$ac_objext
21453 if { (ac_try="$ac_compile"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_compile") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest.$ac_objext; then
21469 ac_cv_member_struct_tm_tm_zone=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <sys/types.h>
21481 #include <$ac_cv_struct_tm>
21487 static struct tm ac_aggr;
21488 if (sizeof ac_aggr.tm_zone)
21494 rm -f conftest.$ac_objext
21495 if { (ac_try="$ac_compile"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_compile") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest.$ac_objext; then
21511 ac_cv_member_struct_tm_tm_zone=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_cv_member_struct_tm_tm_zone=no
21519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21528 cat >>confdefs.h <<_ACEOF
21529 #define HAVE_STRUCT_TM_TM_ZONE 1
21535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define HAVE_TM_ZONE 1
21542 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21543 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21544 if test "${ac_cv_have_decl_tzname+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_cv_have_decl_tzname=yes
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_cv_have_decl_tzname=no
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21594 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21595 if test $ac_cv_have_decl_tzname = yes; then
21597 cat >>confdefs.h <<_ACEOF
21598 #define HAVE_DECL_TZNAME 1
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_DECL_TZNAME 0
21611 { echo "$as_me:$LINENO: checking for tzname" >&5
21612 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21613 if test "${ac_cv_var_tzname+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21623 #if !HAVE_DECL_TZNAME
21624 extern char *tzname[];
21630 return tzname[0][0];
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_link") 2>conftest.er1
21644 grep -v '^ *+' conftest.er1 >conftest.err
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest$ac_exeext &&
21652 $as_test_x conftest$ac_exeext; then
21653 ac_cv_var_tzname=yes
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 ac_cv_var_tzname=no
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662 conftest$ac_exeext conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21665 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21666 if test $ac_cv_var_tzname = yes; then
21668 cat >>confdefs.h <<\_ACEOF
21669 #define HAVE_TZNAME 1
21676 { echo "$as_me:$LINENO: checking for utime.h" >&5
21677 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21678 if test "${ba_cv_header_utime_h+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21688 #include <sys/types.h>
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_compile") 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest.$ac_objext; then
21715 ba_cv_header_utime_h=yes
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ba_cv_header_utime_h=no
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21726 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21727 test $ba_cv_header_utime_h = yes &&
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_UTIME_H 1
21733 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21734 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21735 if test "${ba_cv_header_socklen_t+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 #include <sys/types.h>
21746 #include <sys/socket.h>
21755 rm -f conftest.$ac_objext
21756 if { (ac_try="$ac_compile"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_compile") 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } && {
21769 test -z "$ac_c_werror_flag" ||
21770 test ! -s conftest.err
21771 } && test -s conftest.$ac_objext; then
21772 ba_cv_header_socklen_t=yes
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ba_cv_header_socklen_t=no
21780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21782 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21783 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21784 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_SOCKLEN_T 1
21789 { echo "$as_me:$LINENO: checking for bigendian" >&5
21790 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21791 if test "${ba_cv_bigendian+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 if test "$cross_compiling" = yes; then
21797 cat >conftest.$ac_ext <<_ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21805 rm -f conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21816 { (case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_try") 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ba_cv_bigendian=yes
21827 echo "$as_me: program exited with status $ac_status" >&5
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ( exit $ac_status )
21834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21839 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21840 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21841 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21842 #define HAVE_BIGENDIAN 1
21847 ac_cpp='$CXXCPP $CPPFLAGS'
21848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21853 { echo "$as_me:$LINENO: checking for typeof" >&5
21854 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21855 if test "${ba_cv_have_typeof+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 if test "$cross_compiling" = yes; then
21859 ba_cv_have_typeof=no
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 main(){char *a = 0; a = (typeof a)a;}
21869 rm -f conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_link") 2>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ba_cv_have_typeof=yes
21891 echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ( exit $ac_status )
21896 ba_cv_have_typeof=no
21898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21904 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21905 test $ba_cv_have_typeof = yes &&
21906 cat >>confdefs.h <<\_ACEOF
21907 #define HAVE_TYPEOF 1
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21917 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21919 if test "${ac_cv_c_const+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21932 /* FIXME: Include the comments suggested by Paul. */
21933 #ifndef __cplusplus
21934 /* Ultrix mips cc rejects this. */
21935 typedef int charset[2];
21937 /* SunOS 4.1.1 cc rejects this. */
21938 char const *const *pcpcc;
21940 /* NEC SVR4.0.2 mips cc rejects this. */
21941 struct point {int x, y;};
21942 static struct point const zero = {0,0};
21943 /* AIX XL C 1.02.0.0 rejects this.
21944 It does not let you subtract one const X* pointer from another in
21945 an arm of an if-expression whose if-part is not a constant
21947 const char *g = "string";
21948 pcpcc = &g + (g ? g-g : 0);
21949 /* HPUX 7.0 cc rejects these. */
21951 ppc = (char**) pcpcc;
21952 pcpcc = (char const *const *) ppc;
21953 { /* SCO 3.2v4 cc rejects this. */
21955 char const *s = 0 ? (char *) 0 : (char const *) 0;
21960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21961 int x[] = {25, 17};
21962 const int *foo = &x[0];
21965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21966 typedef const int *iptr;
21970 { /* AIX XL C 1.02.0.0 rejects this saying
21971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21972 struct s { int j; const int *ap[3]; };
21973 struct s *b; b->j = 5;
21975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21976 const int foo = 10;
21977 if (!foo) return 0;
21979 return !cs[0] && !zero.x;
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22014 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22015 if test $ac_cv_c_const = no; then
22017 cat >>confdefs.h <<\_ACEOF
22025 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
22026 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
22028 # The order of these tests is important.
22029 cat >conftest.$ac_ext <<_ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 #include <sys/statvfs.h>
22036 #include <sys/fstyp.h>
22038 if { (ac_try="$ac_cpp conftest.$ac_ext"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } >/dev/null && {
22051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22054 cat >>confdefs.h <<\_ACEOF
22055 #define FSTYPE_STATVFS 1
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22065 rm -f conftest.err conftest.$ac_ext
22066 if test $fstype = no; then
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22073 #include <sys/statfs.h>
22074 #include <sys/fstyp.h>
22076 if { (ac_try="$ac_cpp conftest.$ac_ext"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22084 grep -v '^ *+' conftest.er1 >conftest.err
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } >/dev/null && {
22089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22092 cat >>confdefs.h <<\_ACEOF
22093 #define FSTYPE_USG_STATFS 1
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22103 rm -f conftest.err conftest.$ac_ext
22105 if test $fstype = no; then
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/statfs.h>
22113 #include <sys/vmount.h>
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } >/dev/null && {
22128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22131 cat >>confdefs.h <<\_ACEOF
22132 #define FSTYPE_AIX_STATFS 1
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22142 rm -f conftest.err conftest.$ac_ext
22144 if test $fstype = no; then
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 #include <mntent.h>
22153 if { (ac_try="$ac_cpp conftest.$ac_ext"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } >/dev/null && {
22166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22169 cat >>confdefs.h <<\_ACEOF
22170 #define FSTYPE_MNTENT 1
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22180 rm -f conftest.err conftest.$ac_ext
22182 if test $fstype = no; then
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 #include <sys/mount.h>
22192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22193 $EGREP "f_type;" >/dev/null 2>&1; then
22194 cat >>confdefs.h <<\_ACEOF
22195 #define FSTYPE_STATFS 1
22202 if test $fstype = no; then
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 #include <sys/mount.h>
22210 #include <sys/fs_types.h>
22212 if { (ac_try="$ac_cpp conftest.$ac_ext"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } >/dev/null && {
22225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22228 cat >>confdefs.h <<\_ACEOF
22229 #define FSTYPE_GETMNT 1
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22239 rm -f conftest.err conftest.$ac_ext
22241 { echo "$as_me:$LINENO: result: $fstype" >&5
22242 echo "${ECHO_T}$fstype" >&6; }
22244 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22245 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22246 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22247 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22251 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22253 # Is the header compilable?
22254 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22255 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22263 #include <sys/statvfs.h>
22265 rm -f conftest.$ac_objext
22266 if { (ac_try="$ac_compile"
22267 case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_compile") 2>conftest.er1
22274 grep -v '^ *+' conftest.er1 >conftest.err
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } && {
22279 test -z "$ac_c_werror_flag" ||
22280 test ! -s conftest.err
22281 } && test -s conftest.$ac_objext; then
22282 ac_header_compiler=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_header_compiler=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22292 echo "${ECHO_T}$ac_header_compiler" >&6; }
22294 # Is the header present?
22295 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22296 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22303 #include <sys/statvfs.h>
22305 if { (ac_try="$ac_cpp conftest.$ac_ext"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22313 grep -v '^ *+' conftest.er1 >conftest.err
22315 cat conftest.err >&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } >/dev/null && {
22318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22319 test ! -s conftest.err
22321 ac_header_preproc=yes
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_header_preproc=no
22329 rm -f conftest.err conftest.$ac_ext
22330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6; }
22333 # So? What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22340 ac_header_preproc=yes
22343 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22358 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22359 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22360 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22365 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22366 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22369 if test $ac_cv_header_sys_statvfs_h = yes; then
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_SYS_STATVFS_H 1
22379 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22380 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22381 if test "${ac_cv_type_signal+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 #include <sys/types.h>
22391 #include <signal.h>
22396 return *(signal (0, 0)) (0) == 1;
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_compile") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest.$ac_objext; then
22418 ac_cv_type_signal=int
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_cv_type_signal=void
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22429 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22431 cat >>confdefs.h <<_ACEOF
22432 #define RETSIGTYPE $ac_cv_type_signal
22437 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22438 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22439 if test "${bash_cv_signal_vintage+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 #include <signal.h>
22455 struct sigaction sa;
22456 sigemptyset(&ss); sigsuspend(&ss);
22457 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22458 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest$ac_exeext &&
22481 $as_test_x conftest$ac_exeext; then
22482 bash_cv_signal_vintage="posix"
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 #include <signal.h>
22499 int mask = sigmask(SIGINT);
22500 sigsetmask(mask); sigblock(mask); sigpause(mask);
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest$ac_exeext &&
22523 $as_test_x conftest$ac_exeext; then
22524 bash_cv_signal_vintage="4.2bsd"
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22537 #include <signal.h>
22538 RETSIGTYPE foo() { }
22543 int mask = sigmask(SIGINT);
22544 sigset(SIGINT, foo); sigrelse(SIGINT);
22545 sighold(SIGINT); sigpause(SIGINT);
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (ac_try="$ac_link"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558 (eval "$ac_link") 2>conftest.er1
22560 grep -v '^ *+' conftest.er1 >conftest.err
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } && {
22565 test -z "$ac_c_werror_flag" ||
22566 test ! -s conftest.err
22567 } && test -s conftest$ac_exeext &&
22568 $as_test_x conftest$ac_exeext; then
22569 bash_cv_signal_vintage="svr3"
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 bash_cv_signal_vintage="v7"
22578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22579 conftest$ac_exeext conftest.$ac_ext
22583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584 conftest$ac_exeext conftest.$ac_ext
22588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22589 conftest$ac_exeext conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22594 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22595 if test "$bash_cv_signal_vintage" = "posix"; then
22596 cat >>confdefs.h <<\_ACEOF
22597 #define HAVE_POSIX_SIGNALS 1
22600 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22601 cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_BSD_SIGNALS 1
22605 elif test "$bash_cv_signal_vintage" = "svr3"; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_USG_SIGHOLD 1
22612 { echo "$as_me:$LINENO: checking for mode_t" >&5
22613 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22614 if test "${ac_cv_type_mode_t+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22617 cat >conftest.$ac_ext <<_ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h. */
22623 $ac_includes_default
22624 typedef mode_t ac__type_new_;
22628 if ((ac__type_new_ *) 0)
22630 if (sizeof (ac__type_new_))
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_compile") 2>conftest.er1
22645 grep -v '^ *+' conftest.er1 >conftest.err
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } && {
22650 test -z "$ac_c_werror_flag" ||
22651 test ! -s conftest.err
22652 } && test -s conftest.$ac_objext; then
22653 ac_cv_type_mode_t=yes
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22658 ac_cv_type_mode_t=no
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22664 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22665 if test $ac_cv_type_mode_t = yes; then
22669 cat >>confdefs.h <<_ACEOF
22675 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22676 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22677 if test "${ac_cv_type_uid_t+set}" = set; then
22678 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 #include <sys/types.h>
22689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22690 $EGREP "uid_t" >/dev/null 2>&1; then
22691 ac_cv_type_uid_t=yes
22693 ac_cv_type_uid_t=no
22698 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22699 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22700 if test $ac_cv_type_uid_t = no; then
22702 cat >>confdefs.h <<\_ACEOF
22707 cat >>confdefs.h <<\_ACEOF
22713 { echo "$as_me:$LINENO: checking for size_t" >&5
22714 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22715 if test "${ac_cv_type_size_t+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 $ac_includes_default
22725 typedef size_t ac__type_new_;
22729 if ((ac__type_new_ *) 0)
22731 if (sizeof (ac__type_new_))
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_type_size_t=yes
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_cv_type_size_t=no
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22765 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22766 if test $ac_cv_type_size_t = yes; then
22770 cat >>confdefs.h <<_ACEOF
22771 #define size_t unsigned int
22776 { echo "$as_me:$LINENO: checking for pid_t" >&5
22777 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22778 if test "${ac_cv_type_pid_t+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 $ac_includes_default
22788 typedef pid_t ac__type_new_;
22792 if ((ac__type_new_ *) 0)
22794 if (sizeof (ac__type_new_))
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.$ac_objext; then
22817 ac_cv_type_pid_t=yes
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 ac_cv_type_pid_t=no
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22827 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22828 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22829 if test $ac_cv_type_pid_t = yes; then
22833 cat >>confdefs.h <<_ACEOF
22839 { echo "$as_me:$LINENO: checking for off_t" >&5
22840 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22841 if test "${ac_cv_type_off_t+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
22844 cat >conftest.$ac_ext <<_ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 $ac_includes_default
22851 typedef off_t ac__type_new_;
22855 if ((ac__type_new_ *) 0)
22857 if (sizeof (ac__type_new_))
22863 rm -f conftest.$ac_objext
22864 if { (ac_try="$ac_compile"
22865 case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870 (eval "$ac_compile") 2>conftest.er1
22872 grep -v '^ *+' conftest.er1 >conftest.err
22874 cat conftest.err >&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } && {
22877 test -z "$ac_c_werror_flag" ||
22878 test ! -s conftest.err
22879 } && test -s conftest.$ac_objext; then
22880 ac_cv_type_off_t=yes
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ac_cv_type_off_t=no
22888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22890 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22891 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22892 if test $ac_cv_type_off_t = yes; then
22896 cat >>confdefs.h <<_ACEOF
22897 #define off_t long int
22902 { echo "$as_me:$LINENO: checking for ino_t" >&5
22903 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22904 if test "${ac_cv_type_ino_t+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22914 typedef ino_t ac__type_new_;
22918 if ((ac__type_new_ *) 0)
22920 if (sizeof (ac__type_new_))
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22935 grep -v '^ *+' conftest.er1 >conftest.err
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.$ac_objext; then
22943 ac_cv_type_ino_t=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_cv_type_ino_t=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22954 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22955 if test $ac_cv_type_ino_t = yes; then
22959 cat >>confdefs.h <<_ACEOF
22960 #define ino_t unsigned long
22965 { echo "$as_me:$LINENO: checking for dev_t" >&5
22966 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22967 if test "${ac_cv_type_dev_t+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 $ac_includes_default
22977 typedef dev_t ac__type_new_;
22981 if ((ac__type_new_ *) 0)
22983 if (sizeof (ac__type_new_))
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_cv_type_dev_t=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_cv_type_dev_t=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
23017 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
23018 if test $ac_cv_type_dev_t = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define dev_t unsigned long
23028 { echo "$as_me:$LINENO: checking for daddr_t" >&5
23029 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
23030 if test "${ac_cv_type_daddr_t+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 $ac_includes_default
23040 typedef daddr_t ac__type_new_;
23044 if ((ac__type_new_ *) 0)
23046 if (sizeof (ac__type_new_))
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23061 grep -v '^ *+' conftest.er1 >conftest.err
23063 cat conftest.err >&5
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_cv_type_daddr_t=yes
23071 echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_type_daddr_t=no
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
23080 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
23081 if test $ac_cv_type_daddr_t = yes; then
23085 cat >>confdefs.h <<_ACEOF
23086 #define daddr_t long
23091 { echo "$as_me:$LINENO: checking for major_t" >&5
23092 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
23093 if test "${ac_cv_type_major_t+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 $ac_includes_default
23103 typedef major_t ac__type_new_;
23107 if ((ac__type_new_ *) 0)
23109 if (sizeof (ac__type_new_))
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23132 ac_cv_type_major_t=yes
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_cv_type_major_t=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23143 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23144 if test $ac_cv_type_major_t = yes; then
23148 cat >>confdefs.h <<_ACEOF
23149 #define major_t int
23154 { echo "$as_me:$LINENO: checking for minor_t" >&5
23155 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23156 if test "${ac_cv_type_minor_t+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 $ac_includes_default
23166 typedef minor_t ac__type_new_;
23170 if ((ac__type_new_ *) 0)
23172 if (sizeof (ac__type_new_))
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 ac_cv_type_minor_t=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_cv_type_minor_t=no
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23206 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23207 if test $ac_cv_type_minor_t = yes; then
23211 cat >>confdefs.h <<_ACEOF
23212 #define minor_t int
23217 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23218 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23219 if test "${ac_cv_type_ssize_t+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 cat >conftest.$ac_ext <<_ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h. */
23228 $ac_includes_default
23229 typedef ssize_t ac__type_new_;
23233 if ((ac__type_new_ *) 0)
23235 if (sizeof (ac__type_new_))
23241 rm -f conftest.$ac_objext
23242 if { (ac_try="$ac_compile"
23243 case "(($ac_try" in
23244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245 *) ac_try_echo=$ac_try;;
23247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248 (eval "$ac_compile") 2>conftest.er1
23250 grep -v '^ *+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } && {
23255 test -z "$ac_c_werror_flag" ||
23256 test ! -s conftest.err
23257 } && test -s conftest.$ac_objext; then
23258 ac_cv_type_ssize_t=yes
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 ac_cv_type_ssize_t=no
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23269 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23270 if test $ac_cv_type_ssize_t = yes; then
23274 cat >>confdefs.h <<_ACEOF
23275 #define ssize_t int
23280 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23281 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23282 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23291 $ac_includes_default
23295 static struct stat ac_aggr;
23296 if (ac_aggr.st_blocks)
23302 rm -f conftest.$ac_objext
23303 if { (ac_try="$ac_compile"
23304 case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_compile") 2>conftest.er1
23311 grep -v '^ *+' conftest.er1 >conftest.err
23313 cat conftest.err >&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && {
23316 test -z "$ac_c_werror_flag" ||
23317 test ! -s conftest.err
23318 } && test -s conftest.$ac_objext; then
23319 ac_cv_member_struct_stat_st_blocks=yes
23321 echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23324 cat >conftest.$ac_ext <<_ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23330 $ac_includes_default
23334 static struct stat ac_aggr;
23335 if (sizeof ac_aggr.st_blocks)
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_cv_member_struct_stat_st_blocks=yes
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_cv_member_struct_stat_st_blocks=no
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23372 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23373 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23380 cat >>confdefs.h <<\_ACEOF
23381 #define HAVE_ST_BLOCKS 1
23385 case " $LIBOBJS " in
23386 *" fileblocks.$ac_objext "* ) ;;
23387 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23394 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23395 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23396 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 $ac_includes_default
23409 static struct stat ac_aggr;
23410 if (ac_aggr.st_rdev)
23416 rm -f conftest.$ac_objext
23417 if { (ac_try="$ac_compile"
23418 case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_compile") 2>conftest.er1
23425 grep -v '^ *+' conftest.er1 >conftest.err
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } && {
23430 test -z "$ac_c_werror_flag" ||
23431 test ! -s conftest.err
23432 } && test -s conftest.$ac_objext; then
23433 ac_cv_member_struct_stat_st_rdev=yes
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23448 static struct stat ac_aggr;
23449 if (sizeof ac_aggr.st_rdev)
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 ac_cv_member_struct_stat_st_rdev=yes
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ac_cv_member_struct_stat_st_rdev=no
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23486 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23487 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_STRUCT_STAT_ST_RDEV 1
23494 cat >>confdefs.h <<\_ACEOF
23495 #define HAVE_ST_RDEV 1
23501 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23502 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23503 if test "${ac_cv_struct_tm+set}" = set; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 #include <sys/types.h>
23519 int *p = &tm.tm_sec;
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532 (eval "$ac_compile") 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } && {
23539 test -z "$ac_c_werror_flag" ||
23540 test ! -s conftest.err
23541 } && test -s conftest.$ac_objext; then
23542 ac_cv_struct_tm=time.h
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 ac_cv_struct_tm=sys/time.h
23550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23553 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23554 if test $ac_cv_struct_tm = sys/time.h; then
23556 cat >>confdefs.h <<\_ACEOF
23557 #define TM_IN_SYS_TIME 1
23562 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23564 if test "${ac_cv_c_const+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 cat >conftest.$ac_ext <<_ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23577 /* FIXME: Include the comments suggested by Paul. */
23578 #ifndef __cplusplus
23579 /* Ultrix mips cc rejects this. */
23580 typedef int charset[2];
23582 /* SunOS 4.1.1 cc rejects this. */
23583 char const *const *pcpcc;
23585 /* NEC SVR4.0.2 mips cc rejects this. */
23586 struct point {int x, y;};
23587 static struct point const zero = {0,0};
23588 /* AIX XL C 1.02.0.0 rejects this.
23589 It does not let you subtract one const X* pointer from another in
23590 an arm of an if-expression whose if-part is not a constant
23592 const char *g = "string";
23593 pcpcc = &g + (g ? g-g : 0);
23594 /* HPUX 7.0 cc rejects these. */
23596 ppc = (char**) pcpcc;
23597 pcpcc = (char const *const *) ppc;
23598 { /* SCO 3.2v4 cc rejects this. */
23600 char const *s = 0 ? (char *) 0 : (char const *) 0;
23605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23606 int x[] = {25, 17};
23607 const int *foo = &x[0];
23610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23611 typedef const int *iptr;
23615 { /* AIX XL C 1.02.0.0 rejects this saying
23616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23617 struct s { int j; const int *ap[3]; };
23618 struct s *b; b->j = 5;
23620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23621 const int foo = 10;
23622 if (!foo) return 0;
23624 return !cs[0] && !zero.x;
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23640 grep -v '^ *+' conftest.er1 >conftest.err
23642 cat conftest.err >&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23650 echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23659 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23660 if test $ac_cv_c_const = no; then
23662 cat >>confdefs.h <<\_ACEOF
23670 { echo "$as_me:$LINENO: checking for char" >&5
23671 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23672 if test "${ac_cv_type_char+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 typedef char ac__type_new_;
23686 if ((ac__type_new_ *) 0)
23688 if (sizeof (ac__type_new_))
23694 rm -f conftest.$ac_objext
23695 if { (ac_try="$ac_compile"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_compile") 2>conftest.er1
23703 grep -v '^ *+' conftest.er1 >conftest.err
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest.$ac_objext; then
23711 ac_cv_type_char=yes
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23722 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23724 # The cast to long int works around a bug in the HP C Compiler
23725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23727 # This bug is HP SR number 8606223364.
23728 { echo "$as_me:$LINENO: checking size of char" >&5
23729 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23730 if test "${ac_cv_sizeof_char+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23733 if test "$cross_compiling" = yes; then
23734 # Depending upon the size, compute the lo and hi bounds.
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23741 $ac_includes_default
23742 typedef char ac__type_sizeof_;
23746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23753 rm -f conftest.$ac_objext
23754 if { (ac_try="$ac_compile"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760 (eval "$ac_compile") 2>conftest.er1
23762 grep -v '^ *+' conftest.er1 >conftest.err
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } && {
23767 test -z "$ac_c_werror_flag" ||
23768 test ! -s conftest.err
23769 } && test -s conftest.$ac_objext; then
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23778 $ac_includes_default
23779 typedef char ac__type_sizeof_;
23783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797 (eval "$ac_compile") 2>conftest.er1
23799 grep -v '^ *+' conftest.er1 >conftest.err
23801 cat conftest.err >&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } && {
23804 test -z "$ac_c_werror_flag" ||
23805 test ! -s conftest.err
23806 } && test -s conftest.$ac_objext; then
23807 ac_hi=$ac_mid; break
23809 echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23812 ac_lo=`expr $ac_mid + 1`
23813 if test $ac_lo -le $ac_mid; then
23817 ac_mid=`expr 2 '*' $ac_mid + 1`
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23826 cat >conftest.$ac_ext <<_ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23833 typedef char ac__type_sizeof_;
23837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23853 grep -v '^ *+' conftest.er1 >conftest.err
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.$ac_objext; then
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 $ac_includes_default
23870 typedef char ac__type_sizeof_;
23874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23881 rm -f conftest.$ac_objext
23882 if { (ac_try="$ac_compile"
23883 case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_compile") 2>conftest.er1
23890 grep -v '^ *+' conftest.er1 >conftest.err
23892 cat conftest.err >&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && {
23895 test -z "$ac_c_werror_flag" ||
23896 test ! -s conftest.err
23897 } && test -s conftest.$ac_objext; then
23898 ac_lo=$ac_mid; break
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ac_hi=`expr '(' $ac_mid ')' - 1`
23904 if test $ac_mid -le $ac_hi; then
23908 ac_mid=`expr 2 '*' $ac_mid`
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 # Binary search between lo and hi bounds.
23925 while test "x$ac_lo" != "x$ac_hi"; do
23926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23927 cat >conftest.$ac_ext <<_ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 $ac_includes_default
23934 typedef char ac__type_sizeof_;
23938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23945 rm -f conftest.$ac_objext
23946 if { (ac_try="$ac_compile"
23947 case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_compile") 2>conftest.er1
23954 grep -v '^ *+' conftest.er1 >conftest.err
23956 cat conftest.err >&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } && {
23959 test -z "$ac_c_werror_flag" ||
23960 test ! -s conftest.err
23961 } && test -s conftest.$ac_objext; then
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 ac_lo=`expr '(' $ac_mid ')' + 1`
23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973 ?*) ac_cv_sizeof_char=$ac_lo;;
23974 '') if test "$ac_cv_type_char" = yes; then
23975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23976 See \`config.log' for more details." >&5
23977 echo "$as_me: error: cannot compute sizeof (char)
23978 See \`config.log' for more details." >&2;}
23979 { (exit 77); exit 77; }; }
23981 ac_cv_sizeof_char=0
23985 cat >conftest.$ac_ext <<_ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 $ac_includes_default
23992 typedef char ac__type_sizeof_;
23993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23996 #include <stdlib.h>
24001 FILE *f = fopen ("conftest.val", "w");
24004 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24006 long int i = longval ();
24007 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24009 fprintf (f, "%ld\n", i);
24013 unsigned long int i = ulongval ();
24014 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24016 fprintf (f, "%lu\n", i);
24018 return ferror (f) || fclose (f) != 0;
24024 rm -f conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_link") 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24035 { (case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040 (eval "$ac_try") 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24044 ac_cv_sizeof_char=`cat conftest.val`
24046 echo "$as_me: program exited with status $ac_status" >&5
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 ( exit $ac_status )
24051 if test "$ac_cv_type_char" = yes; then
24052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
24053 See \`config.log' for more details." >&5
24054 echo "$as_me: error: cannot compute sizeof (char)
24055 See \`config.log' for more details." >&2;}
24056 { (exit 77); exit 77; }; }
24058 ac_cv_sizeof_char=0
24061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24066 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
24070 cat >>confdefs.h <<_ACEOF
24071 #define SIZEOF_CHAR $ac_cv_sizeof_char
24075 { echo "$as_me:$LINENO: checking for short int" >&5
24076 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24077 if test "${ac_cv_type_short_int+set}" = set; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24087 typedef short int ac__type_new_;
24091 if ((ac__type_new_ *) 0)
24093 if (sizeof (ac__type_new_))
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24108 grep -v '^ *+' conftest.er1 >conftest.err
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 ac_cv_type_short_int=yes
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_cv_type_short_int=no
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24127 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24129 # The cast to long int works around a bug in the HP C Compiler
24130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24132 # This bug is HP SR number 8606223364.
24133 { echo "$as_me:$LINENO: checking size of short int" >&5
24134 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24135 if test "${ac_cv_sizeof_short_int+set}" = set; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24138 if test "$cross_compiling" = yes; then
24139 # Depending upon the size, compute the lo and hi bounds.
24140 cat >conftest.$ac_ext <<_ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24146 $ac_includes_default
24147 typedef short int ac__type_sizeof_;
24151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24158 rm -f conftest.$ac_objext
24159 if { (ac_try="$ac_compile"
24160 case "(($ac_try" in
24161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162 *) ac_try_echo=$ac_try;;
24164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165 (eval "$ac_compile") 2>conftest.er1
24167 grep -v '^ *+' conftest.er1 >conftest.err
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } && {
24172 test -z "$ac_c_werror_flag" ||
24173 test ! -s conftest.err
24174 } && test -s conftest.$ac_objext; then
24177 cat >conftest.$ac_ext <<_ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24183 $ac_includes_default
24184 typedef short int ac__type_sizeof_;
24188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24204 grep -v '^ *+' conftest.er1 >conftest.err
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.$ac_objext; then
24212 ac_hi=$ac_mid; break
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_lo=`expr $ac_mid + 1`
24218 if test $ac_lo -le $ac_mid; then
24222 ac_mid=`expr 2 '*' $ac_mid + 1`
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24231 cat >conftest.$ac_ext <<_ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h. */
24237 $ac_includes_default
24238 typedef short int ac__type_sizeof_;
24242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24249 rm -f conftest.$ac_objext
24250 if { (ac_try="$ac_compile"
24251 case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_compile") 2>conftest.er1
24258 grep -v '^ *+' conftest.er1 >conftest.err
24260 cat conftest.err >&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && {
24263 test -z "$ac_c_werror_flag" ||
24264 test ! -s conftest.err
24265 } && test -s conftest.$ac_objext; then
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24275 typedef short int ac__type_sizeof_;
24279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24286 rm -f conftest.$ac_objext
24287 if { (ac_try="$ac_compile"
24288 case "(($ac_try" in
24289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290 *) ac_try_echo=$ac_try;;
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293 (eval "$ac_compile") 2>conftest.er1
24295 grep -v '^ *+' conftest.er1 >conftest.err
24297 cat conftest.err >&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && {
24300 test -z "$ac_c_werror_flag" ||
24301 test ! -s conftest.err
24302 } && test -s conftest.$ac_objext; then
24303 ac_lo=$ac_mid; break
24305 echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24308 ac_hi=`expr '(' $ac_mid ')' - 1`
24309 if test $ac_mid -le $ac_hi; then
24313 ac_mid=`expr 2 '*' $ac_mid`
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24329 # Binary search between lo and hi bounds.
24330 while test "x$ac_lo" != "x$ac_hi"; do
24331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 $ac_includes_default
24339 typedef short int ac__type_sizeof_;
24343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24350 rm -f conftest.$ac_objext
24351 if { (ac_try="$ac_compile"
24352 case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357 (eval "$ac_compile") 2>conftest.er1
24359 grep -v '^ *+' conftest.er1 >conftest.err
24361 cat conftest.err >&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } && {
24364 test -z "$ac_c_werror_flag" ||
24365 test ! -s conftest.err
24366 } && test -s conftest.$ac_objext; then
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24372 ac_lo=`expr '(' $ac_mid ')' + 1`
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24379 '') if test "$ac_cv_type_short_int" = yes; then
24380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24381 See \`config.log' for more details." >&5
24382 echo "$as_me: error: cannot compute sizeof (short int)
24383 See \`config.log' for more details." >&2;}
24384 { (exit 77); exit 77; }; }
24386 ac_cv_sizeof_short_int=0
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 $ac_includes_default
24397 typedef short int ac__type_sizeof_;
24398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24401 #include <stdlib.h>
24406 FILE *f = fopen ("conftest.val", "w");
24409 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24411 long int i = longval ();
24412 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24414 fprintf (f, "%ld\n", i);
24418 unsigned long int i = ulongval ();
24419 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24421 fprintf (f, "%lu\n", i);
24423 return ferror (f) || fclose (f) != 0;
24429 rm -f conftest$ac_exeext
24430 if { (ac_try="$ac_link"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436 (eval "$ac_link") 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24440 { (case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_try") 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_cv_sizeof_short_int=`cat conftest.val`
24451 echo "$as_me: program exited with status $ac_status" >&5
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24455 ( exit $ac_status )
24456 if test "$ac_cv_type_short_int" = yes; then
24457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24458 See \`config.log' for more details." >&5
24459 echo "$as_me: error: cannot compute sizeof (short int)
24460 See \`config.log' for more details." >&2;}
24461 { (exit 77); exit 77; }; }
24463 ac_cv_sizeof_short_int=0
24466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24471 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24475 cat >>confdefs.h <<_ACEOF
24476 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24480 { echo "$as_me:$LINENO: checking for int" >&5
24481 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24482 if test "${ac_cv_type_int+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24492 typedef int ac__type_new_;
24496 if ((ac__type_new_ *) 0)
24498 if (sizeof (ac__type_new_))
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24532 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24534 # The cast to long int works around a bug in the HP C Compiler
24535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24537 # This bug is HP SR number 8606223364.
24538 { echo "$as_me:$LINENO: checking size of int" >&5
24539 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24540 if test "${ac_cv_sizeof_int+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24543 if test "$cross_compiling" = yes; then
24544 # Depending upon the size, compute the lo and hi bounds.
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 $ac_includes_default
24552 typedef int ac__type_sizeof_;
24556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_compile") 2>conftest.er1
24572 grep -v '^ *+' conftest.er1 >conftest.err
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } && {
24577 test -z "$ac_c_werror_flag" ||
24578 test ! -s conftest.err
24579 } && test -s conftest.$ac_objext; then
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 int ac__type_sizeof_;
24593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24600 rm -f conftest.$ac_objext
24601 if { (ac_try="$ac_compile"
24602 case "(($ac_try" in
24603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604 *) ac_try_echo=$ac_try;;
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607 (eval "$ac_compile") 2>conftest.er1
24609 grep -v '^ *+' conftest.er1 >conftest.err
24611 cat conftest.err >&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } && {
24614 test -z "$ac_c_werror_flag" ||
24615 test ! -s conftest.err
24616 } && test -s conftest.$ac_objext; then
24617 ac_hi=$ac_mid; break
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ac_lo=`expr $ac_mid + 1`
24623 if test $ac_lo -le $ac_mid; then
24627 ac_mid=`expr 2 '*' $ac_mid + 1`
24630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 cat >conftest.$ac_ext <<_ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24642 $ac_includes_default
24643 typedef int ac__type_sizeof_;
24647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24654 rm -f conftest.$ac_objext
24655 if { (ac_try="$ac_compile"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_compile") 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } && {
24668 test -z "$ac_c_werror_flag" ||
24669 test ! -s conftest.err
24670 } && test -s conftest.$ac_objext; then
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 $ac_includes_default
24680 typedef int ac__type_sizeof_;
24684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24691 rm -f conftest.$ac_objext
24692 if { (ac_try="$ac_compile"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_compile") 2>conftest.er1
24700 grep -v '^ *+' conftest.er1 >conftest.err
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest.$ac_objext; then
24708 ac_lo=$ac_mid; break
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_hi=`expr '(' $ac_mid ')' - 1`
24714 if test $ac_mid -le $ac_hi; then
24718 ac_mid=`expr 2 '*' $ac_mid`
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734 # Binary search between lo and hi bounds.
24735 while test "x$ac_lo" != "x$ac_hi"; do
24736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24737 cat >conftest.$ac_ext <<_ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 $ac_includes_default
24744 typedef int ac__type_sizeof_;
24748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_compile") 2>conftest.er1
24764 grep -v '^ *+' conftest.er1 >conftest.err
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } && {
24769 test -z "$ac_c_werror_flag" ||
24770 test ! -s conftest.err
24771 } && test -s conftest.$ac_objext; then
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24777 ac_lo=`expr '(' $ac_mid ')' + 1`
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 ?*) ac_cv_sizeof_int=$ac_lo;;
24784 '') if test "$ac_cv_type_int" = yes; then
24785 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24786 See \`config.log' for more details." >&5
24787 echo "$as_me: error: cannot compute sizeof (int)
24788 See \`config.log' for more details." >&2;}
24789 { (exit 77); exit 77; }; }
24795 cat >conftest.$ac_ext <<_ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h. */
24801 $ac_includes_default
24802 typedef int ac__type_sizeof_;
24803 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24804 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24806 #include <stdlib.h>
24811 FILE *f = fopen ("conftest.val", "w");
24814 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24816 long int i = longval ();
24817 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24819 fprintf (f, "%ld\n", i);
24823 unsigned long int i = ulongval ();
24824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24826 fprintf (f, "%lu\n", i);
24828 return ferror (f) || fclose (f) != 0;
24834 rm -f conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_link") 2>&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24845 { (case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_try") 2>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; }; then
24854 ac_cv_sizeof_int=`cat conftest.val`
24856 echo "$as_me: program exited with status $ac_status" >&5
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ( exit $ac_status )
24861 if test "$ac_cv_type_int" = yes; then
24862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24863 See \`config.log' for more details." >&5
24864 echo "$as_me: error: cannot compute sizeof (int)
24865 See \`config.log' for more details." >&2;}
24866 { (exit 77); exit 77; }; }
24871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24875 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24876 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24880 cat >>confdefs.h <<_ACEOF
24881 #define SIZEOF_INT $ac_cv_sizeof_int
24885 { echo "$as_me:$LINENO: checking for long int" >&5
24886 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24887 if test "${ac_cv_type_long_int+set}" = set; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24897 typedef long int ac__type_new_;
24901 if ((ac__type_new_ *) 0)
24903 if (sizeof (ac__type_new_))
24909 rm -f conftest.$ac_objext
24910 if { (ac_try="$ac_compile"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
24918 grep -v '^ *+' conftest.er1 >conftest.err
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
24926 ac_cv_type_long_int=yes
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_cv_type_long_int=no
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24936 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24937 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24939 # The cast to long int works around a bug in the HP C Compiler
24940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24942 # This bug is HP SR number 8606223364.
24943 { echo "$as_me:$LINENO: checking size of long int" >&5
24944 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24945 if test "${ac_cv_sizeof_long_int+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 if test "$cross_compiling" = yes; then
24949 # Depending upon the size, compute the lo and hi bounds.
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 $ac_includes_default
24957 typedef long int ac__type_sizeof_;
24961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_compile") 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } && {
24982 test -z "$ac_c_werror_flag" ||
24983 test ! -s conftest.err
24984 } && test -s conftest.$ac_objext; then
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 $ac_includes_default
24994 typedef long int ac__type_sizeof_;
24998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25005 rm -f conftest.$ac_objext
25006 if { (ac_try="$ac_compile"
25007 case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } && {
25019 test -z "$ac_c_werror_flag" ||
25020 test ! -s conftest.err
25021 } && test -s conftest.$ac_objext; then
25022 ac_hi=$ac_mid; break
25024 echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25027 ac_lo=`expr $ac_mid + 1`
25028 if test $ac_lo -le $ac_mid; then
25032 ac_mid=`expr 2 '*' $ac_mid + 1`
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25041 cat >conftest.$ac_ext <<_ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25047 $ac_includes_default
25048 typedef long int ac__type_sizeof_;
25052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25059 rm -f conftest.$ac_objext
25060 if { (ac_try="$ac_compile"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066 (eval "$ac_compile") 2>conftest.er1
25068 grep -v '^ *+' conftest.er1 >conftest.err
25070 cat conftest.err >&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } && {
25073 test -z "$ac_c_werror_flag" ||
25074 test ! -s conftest.err
25075 } && test -s conftest.$ac_objext; then
25078 cat >conftest.$ac_ext <<_ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25084 $ac_includes_default
25085 typedef long int ac__type_sizeof_;
25089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_compile") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && {
25110 test -z "$ac_c_werror_flag" ||
25111 test ! -s conftest.err
25112 } && test -s conftest.$ac_objext; then
25113 ac_lo=$ac_mid; break
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_hi=`expr '(' $ac_mid ')' - 1`
25119 if test $ac_mid -le $ac_hi; then
25123 ac_mid=`expr 2 '*' $ac_mid`
25126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 # Binary search between lo and hi bounds.
25140 while test "x$ac_lo" != "x$ac_hi"; do
25141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 long int ac__type_sizeof_;
25153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167 (eval "$ac_compile") 2>conftest.er1
25169 grep -v '^ *+' conftest.er1 >conftest.err
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); } && {
25174 test -z "$ac_c_werror_flag" ||
25175 test ! -s conftest.err
25176 } && test -s conftest.$ac_objext; then
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_lo=`expr '(' $ac_mid ')' + 1`
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25189 '') if test "$ac_cv_type_long_int" = yes; then
25190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25191 See \`config.log' for more details." >&5
25192 echo "$as_me: error: cannot compute sizeof (long int)
25193 See \`config.log' for more details." >&2;}
25194 { (exit 77); exit 77; }; }
25196 ac_cv_sizeof_long_int=0
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 $ac_includes_default
25207 typedef long int ac__type_sizeof_;
25208 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25209 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25211 #include <stdlib.h>
25216 FILE *f = fopen ("conftest.val", "w");
25219 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25221 long int i = longval ();
25222 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25224 fprintf (f, "%ld\n", i);
25228 unsigned long int i = ulongval ();
25229 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25231 fprintf (f, "%lu\n", i);
25233 return ferror (f) || fclose (f) != 0;
25239 rm -f conftest$ac_exeext
25240 if { (ac_try="$ac_link"
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_link") 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25250 { (case "(($ac_try" in
25251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252 *) ac_try_echo=$ac_try;;
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255 (eval "$ac_try") 2>&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_sizeof_long_int=`cat conftest.val`
25261 echo "$as_me: program exited with status $ac_status" >&5
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ( exit $ac_status )
25266 if test "$ac_cv_type_long_int" = yes; then
25267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25268 See \`config.log' for more details." >&5
25269 echo "$as_me: error: cannot compute sizeof (long int)
25270 See \`config.log' for more details." >&2;}
25271 { (exit 77); exit 77; }; }
25273 ac_cv_sizeof_long_int=0
25276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25281 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25285 cat >>confdefs.h <<_ACEOF
25286 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25290 { echo "$as_me:$LINENO: checking for long long int" >&5
25291 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25292 if test "${ac_cv_type_long_long_int+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 cat >conftest.$ac_ext <<_ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h. */
25301 $ac_includes_default
25302 typedef long long int ac__type_new_;
25306 if ((ac__type_new_ *) 0)
25308 if (sizeof (ac__type_new_))
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 ac_cv_type_long_long_int=yes
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_cv_type_long_long_int=no
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25342 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25344 # The cast to long int works around a bug in the HP C Compiler
25345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25347 # This bug is HP SR number 8606223364.
25348 { echo "$as_me:$LINENO: checking size of long long int" >&5
25349 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25350 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25351 echo $ECHO_N "(cached) $ECHO_C" >&6
25353 if test "$cross_compiling" = yes; then
25354 # Depending upon the size, compute the lo and hi bounds.
25355 cat >conftest.$ac_ext <<_ACEOF
25358 cat confdefs.h >>conftest.$ac_ext
25359 cat >>conftest.$ac_ext <<_ACEOF
25360 /* end confdefs.h. */
25361 $ac_includes_default
25362 typedef long long int ac__type_sizeof_;
25366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25373 rm -f conftest.$ac_objext
25374 if { (ac_try="$ac_compile"
25375 case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_compile") 2>conftest.er1
25382 grep -v '^ *+' conftest.er1 >conftest.err
25384 cat conftest.err >&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && {
25387 test -z "$ac_c_werror_flag" ||
25388 test ! -s conftest.err
25389 } && test -s conftest.$ac_objext; then
25392 cat >conftest.$ac_ext <<_ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398 $ac_includes_default
25399 typedef long long int ac__type_sizeof_;
25403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25419 grep -v '^ *+' conftest.er1 >conftest.err
25421 cat conftest.err >&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); } && {
25424 test -z "$ac_c_werror_flag" ||
25425 test ! -s conftest.err
25426 } && test -s conftest.$ac_objext; then
25427 ac_hi=$ac_mid; break
25429 echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25432 ac_lo=`expr $ac_mid + 1`
25433 if test $ac_lo -le $ac_mid; then
25437 ac_mid=`expr 2 '*' $ac_mid + 1`
25440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 cat >conftest.$ac_ext <<_ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h. */
25452 $ac_includes_default
25453 typedef long long int ac__type_sizeof_;
25457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471 (eval "$ac_compile") 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } && {
25478 test -z "$ac_c_werror_flag" ||
25479 test ! -s conftest.err
25480 } && test -s conftest.$ac_objext; then
25483 cat >conftest.$ac_ext <<_ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h. */
25489 $ac_includes_default
25490 typedef long long int ac__type_sizeof_;
25494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_compile") 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_c_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest.$ac_objext; then
25518 ac_lo=$ac_mid; break
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_hi=`expr '(' $ac_mid ')' - 1`
25524 if test $ac_mid -le $ac_hi; then
25528 ac_mid=`expr 2 '*' $ac_mid`
25531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 # Binary search between lo and hi bounds.
25545 while test "x$ac_lo" != "x$ac_hi"; do
25546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25547 cat >conftest.$ac_ext <<_ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h. */
25553 $ac_includes_default
25554 typedef long long int ac__type_sizeof_;
25558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25565 rm -f conftest.$ac_objext
25566 if { (ac_try="$ac_compile"
25567 case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25574 grep -v '^ *+' conftest.er1 >conftest.err
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } && {
25579 test -z "$ac_c_werror_flag" ||
25580 test ! -s conftest.err
25581 } && test -s conftest.$ac_objext; then
25584 echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25587 ac_lo=`expr '(' $ac_mid ')' + 1`
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25594 '') if test "$ac_cv_type_long_long_int" = yes; then
25595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25596 See \`config.log' for more details." >&5
25597 echo "$as_me: error: cannot compute sizeof (long long int)
25598 See \`config.log' for more details." >&2;}
25599 { (exit 77); exit 77; }; }
25601 ac_cv_sizeof_long_long_int=0
25605 cat >conftest.$ac_ext <<_ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25612 typedef long long int ac__type_sizeof_;
25613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25616 #include <stdlib.h>
25621 FILE *f = fopen ("conftest.val", "w");
25624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25626 long int i = longval ();
25627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25629 fprintf (f, "%ld\n", i);
25633 unsigned long int i = ulongval ();
25634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25636 fprintf (f, "%lu\n", i);
25638 return ferror (f) || fclose (f) != 0;
25644 rm -f conftest$ac_exeext
25645 if { (ac_try="$ac_link"
25646 case "(($ac_try" in
25647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25648 *) ac_try_echo=$ac_try;;
25650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651 (eval "$ac_link") 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25655 { (case "(($ac_try" in
25656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_try") 2>&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; }; then
25664 ac_cv_sizeof_long_long_int=`cat conftest.val`
25666 echo "$as_me: program exited with status $ac_status" >&5
25667 echo "$as_me: failed program was:" >&5
25668 sed 's/^/| /' conftest.$ac_ext >&5
25670 ( exit $ac_status )
25671 if test "$ac_cv_type_long_long_int" = yes; then
25672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25673 See \`config.log' for more details." >&5
25674 echo "$as_me: error: cannot compute sizeof (long long int)
25675 See \`config.log' for more details." >&2;}
25676 { (exit 77); exit 77; }; }
25678 ac_cv_sizeof_long_long_int=0
25681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25685 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25686 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25690 cat >>confdefs.h <<_ACEOF
25691 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25695 { echo "$as_me:$LINENO: checking for int *" >&5
25696 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25697 if test "${ac_cv_type_int_p+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 typedef int * ac__type_new_;
25711 if ((ac__type_new_ *) 0)
25713 if (sizeof (ac__type_new_))
25719 rm -f conftest.$ac_objext
25720 if { (ac_try="$ac_compile"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_compile") 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest.$ac_objext; then
25736 ac_cv_type_int_p=yes
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_cv_type_int_p=no
25744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25746 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25747 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25749 # The cast to long int works around a bug in the HP C Compiler
25750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25752 # This bug is HP SR number 8606223364.
25753 { echo "$as_me:$LINENO: checking size of int *" >&5
25754 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25755 if test "${ac_cv_sizeof_int_p+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 if test "$cross_compiling" = yes; then
25759 # Depending upon the size, compute the lo and hi bounds.
25760 cat >conftest.$ac_ext <<_ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 $ac_includes_default
25767 typedef int * ac__type_sizeof_;
25771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25778 rm -f conftest.$ac_objext
25779 if { (ac_try="$ac_compile"
25780 case "(($ac_try" in
25781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25782 *) ac_try_echo=$ac_try;;
25784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25785 (eval "$ac_compile") 2>conftest.er1
25787 grep -v '^ *+' conftest.er1 >conftest.err
25789 cat conftest.err >&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } && {
25792 test -z "$ac_c_werror_flag" ||
25793 test ! -s conftest.err
25794 } && test -s conftest.$ac_objext; then
25797 cat >conftest.$ac_ext <<_ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h. */
25803 $ac_includes_default
25804 typedef int * ac__type_sizeof_;
25808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25815 rm -f conftest.$ac_objext
25816 if { (ac_try="$ac_compile"
25817 case "(($ac_try" in
25818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 *) ac_try_echo=$ac_try;;
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 (eval "$ac_compile") 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } && {
25829 test -z "$ac_c_werror_flag" ||
25830 test ! -s conftest.err
25831 } && test -s conftest.$ac_objext; then
25832 ac_hi=$ac_mid; break
25834 echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25837 ac_lo=`expr $ac_mid + 1`
25838 if test $ac_lo -le $ac_mid; then
25842 ac_mid=`expr 2 '*' $ac_mid + 1`
25845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 cat >conftest.$ac_ext <<_ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h. */
25857 $ac_includes_default
25858 typedef int * ac__type_sizeof_;
25862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25869 rm -f conftest.$ac_objext
25870 if { (ac_try="$ac_compile"
25871 case "(($ac_try" in
25872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873 *) ac_try_echo=$ac_try;;
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876 (eval "$ac_compile") 2>conftest.er1
25878 grep -v '^ *+' conftest.er1 >conftest.err
25880 cat conftest.err >&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } && {
25883 test -z "$ac_c_werror_flag" ||
25884 test ! -s conftest.err
25885 } && test -s conftest.$ac_objext; then
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25895 typedef int * ac__type_sizeof_;
25899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25906 rm -f conftest.$ac_objext
25907 if { (ac_try="$ac_compile"
25908 case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913 (eval "$ac_compile") 2>conftest.er1
25915 grep -v '^ *+' conftest.er1 >conftest.err
25917 cat conftest.err >&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } && {
25920 test -z "$ac_c_werror_flag" ||
25921 test ! -s conftest.err
25922 } && test -s conftest.$ac_objext; then
25923 ac_lo=$ac_mid; break
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25928 ac_hi=`expr '(' $ac_mid ')' - 1`
25929 if test $ac_mid -le $ac_hi; then
25933 ac_mid=`expr 2 '*' $ac_mid`
25936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25939 echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 # Binary search between lo and hi bounds.
25950 while test "x$ac_lo" != "x$ac_hi"; do
25951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25952 cat >conftest.$ac_ext <<_ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25958 $ac_includes_default
25959 typedef int * ac__type_sizeof_;
25963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25970 rm -f conftest.$ac_objext
25971 if { (ac_try="$ac_compile"
25972 case "(($ac_try" in
25973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974 *) ac_try_echo=$ac_try;;
25976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25977 (eval "$ac_compile") 2>conftest.er1
25979 grep -v '^ *+' conftest.er1 >conftest.err
25981 cat conftest.err >&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); } && {
25984 test -z "$ac_c_werror_flag" ||
25985 test ! -s conftest.err
25986 } && test -s conftest.$ac_objext; then
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 ac_lo=`expr '(' $ac_mid ')' + 1`
25995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25999 '') if test "$ac_cv_type_int_p" = yes; then
26000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26001 See \`config.log' for more details." >&5
26002 echo "$as_me: error: cannot compute sizeof (int *)
26003 See \`config.log' for more details." >&2;}
26004 { (exit 77); exit 77; }; }
26006 ac_cv_sizeof_int_p=0
26010 cat >conftest.$ac_ext <<_ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 $ac_includes_default
26017 typedef int * ac__type_sizeof_;
26018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26021 #include <stdlib.h>
26026 FILE *f = fopen ("conftest.val", "w");
26029 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26031 long int i = longval ();
26032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26034 fprintf (f, "%ld\n", i);
26038 unsigned long int i = ulongval ();
26039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26041 fprintf (f, "%lu\n", i);
26043 return ferror (f) || fclose (f) != 0;
26049 rm -f conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056 (eval "$ac_link") 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26060 { (case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065 (eval "$ac_try") 2>&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; }; then
26069 ac_cv_sizeof_int_p=`cat conftest.val`
26071 echo "$as_me: program exited with status $ac_status" >&5
26072 echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 ( exit $ac_status )
26076 if test "$ac_cv_type_int_p" = yes; then
26077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26078 See \`config.log' for more details." >&5
26079 echo "$as_me: error: cannot compute sizeof (int *)
26080 See \`config.log' for more details." >&2;}
26081 { (exit 77); exit 77; }; }
26083 ac_cv_sizeof_int_p=0
26086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
26091 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
26095 cat >>confdefs.h <<_ACEOF
26096 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26101 # Check for sys/types.h types
26102 { echo "$as_me:$LINENO: checking for u_int type" >&5
26103 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26104 if test "${ac_cv_have_u_int+set}" = set; then
26105 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 cat >conftest.$ac_ext <<_ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26114 #include <sys/types.h>
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } && {
26137 test -z "$ac_c_werror_flag" ||
26138 test ! -s conftest.err
26139 } && test -s conftest.$ac_objext; then
26140 ac_cv_have_u_int="yes"
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 ac_cv_have_u_int="no"
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26152 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26153 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26154 if test "x$ac_cv_have_u_int" = "xyes" ; then
26155 cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_U_INT 1
26162 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26163 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26164 if test "${ac_cv_have_intmax_t+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 cat >conftest.$ac_ext <<_ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 #include <sys/types.h>
26183 rm -f conftest.$ac_objext
26184 if { (ac_try="$ac_compile"
26185 case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26200 ac_cv_have_intmax_t="yes"
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <stdint.h>
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_compile") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest.$ac_objext; then
26238 ac_cv_have_intmax_t="yes"
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243 ac_cv_have_intmax_t="no"
26247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26257 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26258 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26259 cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_INTMAX_T 1
26267 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26268 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26269 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 cat >conftest.$ac_ext <<_ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h. */
26279 #include <sys/types.h>
26283 u_intmax_t a; a = 1;
26288 rm -f conftest.$ac_objext
26289 if { (ac_try="$ac_compile"
26290 case "(($ac_try" in
26291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292 *) ac_try_echo=$ac_try;;
26294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26295 (eval "$ac_compile") 2>conftest.er1
26297 grep -v '^ *+' conftest.er1 >conftest.err
26299 cat conftest.err >&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); } && {
26302 test -z "$ac_c_werror_flag" ||
26303 test ! -s conftest.err
26304 } && test -s conftest.$ac_objext; then
26305 ac_cv_have_u_intmax_t="yes"
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26317 #include <stdint.h>
26321 u_intmax_t a; a = 1;
26326 rm -f conftest.$ac_objext
26327 if { (ac_try="$ac_compile"
26328 case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_compile") 2>conftest.er1
26335 grep -v '^ *+' conftest.er1 >conftest.err
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } && {
26340 test -z "$ac_c_werror_flag" ||
26341 test ! -s conftest.err
26342 } && test -s conftest.$ac_objext; then
26343 ac_cv_have_u_intmax_t="yes"
26345 echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26348 ac_cv_have_u_intmax_t="no"
26352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26360 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26361 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26362 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26363 cat >>confdefs.h <<\_ACEOF
26364 #define HAVE_U_INTMAX_T 1
26371 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26372 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26373 if test "${ac_cv_have_intxx_t+set}" = set; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26377 cat >conftest.$ac_ext <<_ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 #include <sys/types.h>
26387 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26392 rm -f conftest.$ac_objext
26393 if { (ac_try="$ac_compile"
26394 case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26401 grep -v '^ *+' conftest.er1 >conftest.err
26403 cat conftest.err >&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } && {
26406 test -z "$ac_c_werror_flag" ||
26407 test ! -s conftest.err
26408 } && test -s conftest.$ac_objext; then
26409 ac_cv_have_intxx_t="yes"
26411 echo "$as_me: failed program was:" >&5
26412 sed 's/^/| /' conftest.$ac_ext >&5
26414 ac_cv_have_intxx_t="no"
26418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26422 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26423 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_INTXX_T 1
26431 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26432 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26433 if test "${ac_cv_have_int64_t+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 #include <sys/types.h>
26452 rm -f conftest.$ac_objext
26453 if { (ac_try="$ac_compile"
26454 case "(($ac_try" in
26455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26456 *) ac_try_echo=$ac_try;;
26458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26459 (eval "$ac_compile") 2>conftest.er1
26461 grep -v '^ *+' conftest.er1 >conftest.err
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && {
26466 test -z "$ac_c_werror_flag" ||
26467 test ! -s conftest.err
26468 } && test -s conftest.$ac_objext; then
26469 ac_cv_have_int64_t="yes"
26471 echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26474 ac_cv_have_int64_t="no"
26478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26482 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26483 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26484 cat >>confdefs.h <<\_ACEOF
26485 #define HAVE_INT64_T 1
26491 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26492 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26493 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26494 echo $ECHO_N "(cached) $ECHO_C" >&6
26497 cat >conftest.$ac_ext <<_ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 #include <sys/types.h>
26507 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26512 rm -f conftest.$ac_objext
26513 if { (ac_try="$ac_compile"
26514 case "(($ac_try" in
26515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516 *) ac_try_echo=$ac_try;;
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_compile") 2>conftest.er1
26521 grep -v '^ *+' conftest.er1 >conftest.err
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest.$ac_objext; then
26529 ac_cv_have_u_intxx_t="yes"
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26534 ac_cv_have_u_intxx_t="no"
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26542 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26543 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_U_INTXX_T 1
26551 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26552 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26553 if test "${ac_cv_have_u_int64_t+set}" = set; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 cat >conftest.$ac_ext <<_ACEOF
26560 cat confdefs.h >>conftest.$ac_ext
26561 cat >>conftest.$ac_ext <<_ACEOF
26562 /* end confdefs.h. */
26563 #include <sys/types.h>
26567 u_int64_t a; a = 1;
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26581 grep -v '^ *+' conftest.er1 >conftest.err
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.$ac_objext; then
26589 ac_cv_have_u_int64_t="yes"
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 ac_cv_have_u_int64_t="no"
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26602 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26603 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26604 cat >>confdefs.h <<\_ACEOF
26605 #define HAVE_U_INT64_T 1
26611 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26612 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26614 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26615 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26616 cat >conftest.$ac_ext <<_ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 #include <sys/bitypes.h>
26626 int8_t a; int16_t b; int32_t c;
26627 u_int8_t e; u_int16_t f; u_int32_t g;
26628 a = b = c = e = f = g = 1;
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637 *) ac_try_echo=$ac_try;;
26639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26640 (eval "$ac_compile") 2>conftest.er1
26642 grep -v '^ *+' conftest.er1 >conftest.err
26644 cat conftest.err >&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } && {
26647 test -z "$ac_c_werror_flag" ||
26648 test ! -s conftest.err
26649 } && test -s conftest.$ac_objext; then
26650 cat >>confdefs.h <<\_ACEOF
26651 #define HAVE_U_INTXX_T 1
26654 cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_INTXX_T 1
26658 cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_SYS_BITYPES_H 1
26662 { echo "$as_me:$LINENO: result: yes" >&5
26663 echo "${ECHO_T}yes" >&6; }
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 { echo "$as_me:$LINENO: result: no" >&5
26669 echo "${ECHO_T}no" >&6; }
26673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676 if test -z "$have_u_intxx_t" ; then
26677 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26678 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26679 if test "${ac_cv_have_uintxx_t+set}" = set; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 cat >conftest.$ac_ext <<_ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h. */
26689 #include <sys/types.h>
26693 uint8_t a; uint16_t b;
26694 uint32_t c; a = b = c = 1;
26699 rm -f conftest.$ac_objext
26700 if { (ac_try="$ac_compile"
26701 case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_compile") 2>conftest.er1
26708 grep -v '^ *+' conftest.er1 >conftest.err
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } && {
26713 test -z "$ac_c_werror_flag" ||
26714 test ! -s conftest.err
26715 } && test -s conftest.$ac_objext; then
26716 ac_cv_have_uintxx_t="yes"
26718 echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26721 ac_cv_have_uintxx_t="no"
26725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26729 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26730 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26731 cat >>confdefs.h <<\_ACEOF
26732 #define HAVE_UINTXX_T 1
26738 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26739 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26741 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26742 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <sys/bitypes.h>
26753 int64_t a; u_int64_t b;
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 *) ac_try_echo=$ac_try;;
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 (eval "$ac_compile") 2>conftest.er1
26768 grep -v '^ *+' conftest.er1 >conftest.err
26770 cat conftest.err >&5
26771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); } && {
26773 test -z "$ac_c_werror_flag" ||
26774 test ! -s conftest.err
26775 } && test -s conftest.$ac_objext; then
26776 cat >>confdefs.h <<\_ACEOF
26777 #define HAVE_U_INT64_T 1
26780 cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_INT64_T 1
26784 { echo "$as_me:$LINENO: result: yes" >&5
26785 echo "${ECHO_T}yes" >&6; }
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 { echo "$as_me:$LINENO: result: no" >&5
26791 echo "${ECHO_T}no" >&6; }
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798 if (test -z "$have_uintxx_t" && \
26799 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26801 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26802 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26803 cat >conftest.$ac_ext <<_ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h. */
26809 #include <sys/bitypes.h>
26813 uint8_t a; uint16_t b;
26814 uint32_t c; a = b = c = 1;
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823 *) ac_try_echo=$ac_try;;
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826 (eval "$ac_compile") 2>conftest.er1
26828 grep -v '^ *+' conftest.er1 >conftest.err
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } && {
26833 test -z "$ac_c_werror_flag" ||
26834 test ! -s conftest.err
26835 } && test -s conftest.$ac_objext; then
26836 cat >>confdefs.h <<\_ACEOF
26837 #define HAVE_UINTXX_T 1
26840 { echo "$as_me:$LINENO: result: yes" >&5
26841 echo "${ECHO_T}yes" >&6; }
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26846 { echo "$as_me:$LINENO: result: no" >&5
26847 echo "${ECHO_T}no" >&6; }
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26901 #define $ac_func innocuous_$ac_func
26903 /* System header to define __stub macros and hopefully few prototypes,
26904 which can conflict with char $ac_func (); below.
26905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26906 <limits.h> exists even on freestanding compilers. */
26909 # include <limits.h>
26911 # include <assert.h>
26916 /* Override any GCC internal prototype to avoid an error.
26917 Use char because int might match the return type of a GCC
26918 builtin and then its argument prototype would still apply. */
26923 /* The GNU C library defines this for functions which it implements
26924 to always fail with ENOSYS. Some functions are actually named
26925 something starting with __ and the normal name is an alias. */
26926 #if defined __stub_$ac_func || defined __stub___$ac_func
26933 return $ac_func ();
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (ac_try="$ac_link"
26940 case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_link") 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && {
26952 test -z "$ac_c_werror_flag" ||
26953 test ! -s conftest.err
26954 } && test -s conftest$ac_exeext &&
26955 $as_test_x conftest$ac_exeext; then
26956 eval "$as_ac_var=yes"
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 eval "$as_ac_var=no"
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965 conftest$ac_exeext conftest.$ac_ext
26967 ac_res=`eval echo '${'$as_ac_var'}'`
26968 { echo "$as_me:$LINENO: result: $ac_res" >&5
26969 echo "${ECHO_T}$ac_res" >&6; }
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971 cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26976 echo 'configure: cannot find needed function.'; exit 1
26983 for ac_func in fchdir
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26989 echo $ECHO_N "(cached) $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26999 #define $ac_func innocuous_$ac_func
27001 /* System header to define __stub macros and hopefully few prototypes,
27002 which can conflict with char $ac_func (); below.
27003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004 <limits.h> exists even on freestanding compilers. */
27007 # include <limits.h>
27009 # include <assert.h>
27014 /* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27021 /* The GNU C library defines this for functions which it implements
27022 to always fail with ENOSYS. Some functions are actually named
27023 something starting with __ and the normal name is an alias. */
27024 #if defined __stub_$ac_func || defined __stub___$ac_func
27031 return $ac_func ();
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (ac_try="$ac_link"
27038 case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_link") 2>conftest.er1
27045 grep -v '^ *+' conftest.er1 >conftest.err
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } && {
27050 test -z "$ac_c_werror_flag" ||
27051 test ! -s conftest.err
27052 } && test -s conftest$ac_exeext &&
27053 $as_test_x conftest$ac_exeext; then
27054 eval "$as_ac_var=yes"
27056 echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27059 eval "$as_ac_var=no"
27062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27063 conftest$ac_exeext conftest.$ac_ext
27065 ac_res=`eval echo '${'$as_ac_var'}'`
27066 { echo "$as_me:$LINENO: result: $ac_res" >&5
27067 echo "${ECHO_T}$ac_res" >&6; }
27068 if test `eval echo '${'$as_ac_var'}'` = yes; then
27069 cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27072 cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_FCHDIR 1
27080 for ac_func in strtoll
27082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27096 #define $ac_func innocuous_$ac_func
27098 /* System header to define __stub macros and hopefully few prototypes,
27099 which can conflict with char $ac_func (); below.
27100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27101 <limits.h> exists even on freestanding compilers. */
27104 # include <limits.h>
27106 # include <assert.h>
27111 /* Override any GCC internal prototype to avoid an error.
27112 Use char because int might match the return type of a GCC
27113 builtin and then its argument prototype would still apply. */
27118 /* The GNU C library defines this for functions which it implements
27119 to always fail with ENOSYS. Some functions are actually named
27120 something starting with __ and the normal name is an alias. */
27121 #if defined __stub_$ac_func || defined __stub___$ac_func
27128 return $ac_func ();
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (ac_try="$ac_link"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_link") 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest$ac_exeext &&
27150 $as_test_x conftest$ac_exeext; then
27151 eval "$as_ac_var=yes"
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 eval "$as_ac_var=no"
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160 conftest$ac_exeext conftest.$ac_ext
27162 ac_res=`eval echo '${'$as_ac_var'}'`
27163 { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27165 if test `eval echo '${'$as_ac_var'}'` = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27169 cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_STRTOLL 1
27177 for ac_func in posix_fadvise
27179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27183 echo $ECHO_N "(cached) $ECHO_C" >&6
27185 cat >conftest.$ac_ext <<_ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h. */
27191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27193 #define $ac_func innocuous_$ac_func
27195 /* System header to define __stub macros and hopefully few prototypes,
27196 which can conflict with char $ac_func (); below.
27197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27198 <limits.h> exists even on freestanding compilers. */
27201 # include <limits.h>
27203 # include <assert.h>
27208 /* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27215 /* The GNU C library defines this for functions which it implements
27216 to always fail with ENOSYS. Some functions are actually named
27217 something starting with __ and the normal name is an alias. */
27218 #if defined __stub_$ac_func || defined __stub___$ac_func
27225 return $ac_func ();
27230 rm -f conftest.$ac_objext conftest$ac_exeext
27231 if { (ac_try="$ac_link"
27232 case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_link") 2>conftest.er1
27239 grep -v '^ *+' conftest.er1 >conftest.err
27241 cat conftest.err >&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } && {
27244 test -z "$ac_c_werror_flag" ||
27245 test ! -s conftest.err
27246 } && test -s conftest$ac_exeext &&
27247 $as_test_x conftest$ac_exeext; then
27248 eval "$as_ac_var=yes"
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 eval "$as_ac_var=no"
27256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27257 conftest$ac_exeext conftest.$ac_ext
27259 ac_res=`eval echo '${'$as_ac_var'}'`
27260 { echo "$as_me:$LINENO: result: $ac_res" >&5
27261 echo "${ECHO_T}$ac_res" >&6; }
27262 if test `eval echo '${'$as_ac_var'}'` = yes; then
27263 cat >>confdefs.h <<_ACEOF
27264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27271 for ac_func in fdatasync
27273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27279 cat >conftest.$ac_ext <<_ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h. */
27285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27287 #define $ac_func innocuous_$ac_func
27289 /* System header to define __stub macros and hopefully few prototypes,
27290 which can conflict with char $ac_func (); below.
27291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27292 <limits.h> exists even on freestanding compilers. */
27295 # include <limits.h>
27297 # include <assert.h>
27302 /* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27309 /* The GNU C library defines this for functions which it implements
27310 to always fail with ENOSYS. Some functions are actually named
27311 something starting with __ and the normal name is an alias. */
27312 #if defined __stub_$ac_func || defined __stub___$ac_func
27319 return $ac_func ();
27324 rm -f conftest.$ac_objext conftest$ac_exeext
27325 if { (ac_try="$ac_link"
27326 case "(($ac_try" in
27327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_link") 2>conftest.er1
27333 grep -v '^ *+' conftest.er1 >conftest.err
27335 cat conftest.err >&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } && {
27338 test -z "$ac_c_werror_flag" ||
27339 test ! -s conftest.err
27340 } && test -s conftest$ac_exeext &&
27341 $as_test_x conftest$ac_exeext; then
27342 eval "$as_ac_var=yes"
27344 echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27347 eval "$as_ac_var=no"
27350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27351 conftest$ac_exeext conftest.$ac_ext
27353 ac_res=`eval echo '${'$as_ac_var'}'`
27354 { echo "$as_me:$LINENO: result: $ac_res" >&5
27355 echo "${ECHO_T}$ac_res" >&6; }
27356 if test `eval echo '${'$as_ac_var'}'` = yes; then
27357 cat >>confdefs.h <<_ACEOF
27358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27366 for ac_func in chflags
27368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27382 #define $ac_func innocuous_$ac_func
27384 /* System header to define __stub macros and hopefully few prototypes,
27385 which can conflict with char $ac_func (); below.
27386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27387 <limits.h> exists even on freestanding compilers. */
27390 # include <limits.h>
27392 # include <assert.h>
27397 /* Override any GCC internal prototype to avoid an error.
27398 Use char because int might match the return type of a GCC
27399 builtin and then its argument prototype would still apply. */
27404 /* The GNU C library defines this for functions which it implements
27405 to always fail with ENOSYS. Some functions are actually named
27406 something starting with __ and the normal name is an alias. */
27407 #if defined __stub_$ac_func || defined __stub___$ac_func
27414 return $ac_func ();
27419 rm -f conftest.$ac_objext conftest$ac_exeext
27420 if { (ac_try="$ac_link"
27421 case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_link") 2>conftest.er1
27428 grep -v '^ *+' conftest.er1 >conftest.err
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } && {
27433 test -z "$ac_c_werror_flag" ||
27434 test ! -s conftest.err
27435 } && test -s conftest$ac_exeext &&
27436 $as_test_x conftest$ac_exeext; then
27437 eval "$as_ac_var=yes"
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 eval "$as_ac_var=no"
27445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27446 conftest$ac_exeext conftest.$ac_ext
27448 ac_res=`eval echo '${'$as_ac_var'}'`
27449 { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27451 if test `eval echo '${'$as_ac_var'}'` = yes; then
27452 cat >>confdefs.h <<_ACEOF
27453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27464 for ac_func in snprintf vsnprintf gethostid fseeko
27466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27480 #define $ac_func innocuous_$ac_func
27482 /* System header to define __stub macros and hopefully few prototypes,
27483 which can conflict with char $ac_func (); below.
27484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27485 <limits.h> exists even on freestanding compilers. */
27488 # include <limits.h>
27490 # include <assert.h>
27495 /* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
27502 /* The GNU C library defines this for functions which it implements
27503 to always fail with ENOSYS. Some functions are actually named
27504 something starting with __ and the normal name is an alias. */
27505 #if defined __stub_$ac_func || defined __stub___$ac_func
27512 return $ac_func ();
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518 if { (ac_try="$ac_link"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_link") 2>conftest.er1
27526 grep -v '^ *+' conftest.er1 >conftest.err
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } && {
27531 test -z "$ac_c_werror_flag" ||
27532 test ! -s conftest.err
27533 } && test -s conftest$ac_exeext &&
27534 $as_test_x conftest$ac_exeext; then
27535 eval "$as_ac_var=yes"
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540 eval "$as_ac_var=no"
27543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27544 conftest$ac_exeext conftest.$ac_ext
27546 ac_res=`eval echo '${'$as_ac_var'}'`
27547 { echo "$as_me:$LINENO: result: $ac_res" >&5
27548 echo "${ECHO_T}$ac_res" >&6; }
27549 if test `eval echo '${'$as_ac_var'}'` = yes; then
27550 cat >>confdefs.h <<_ACEOF
27551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27558 { echo "$as_me:$LINENO: checking for va_copy" >&5
27559 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27560 if test "${ba_cv_va_copy+set}" = set; then
27561 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 cat >conftest.$ac_ext <<_ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h. */
27570 #include <stdarg.h>
27571 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27572 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27577 call_use_va_copy(1,2,3)
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_link") 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } && {
27596 test -z "$ac_c_werror_flag" ||
27597 test ! -s conftest.err
27598 } && test -s conftest$ac_exeext &&
27599 $as_test_x conftest$ac_exeext; then
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27609 conftest$ac_exeext conftest.$ac_ext
27611 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27612 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27613 test $ba_cv_va_copy = yes &&
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_VA_COPY 1
27624 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27632 cat >conftest.$ac_ext <<_ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h. */
27638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27640 #define $ac_func innocuous_$ac_func
27642 /* System header to define __stub macros and hopefully few prototypes,
27643 which can conflict with char $ac_func (); below.
27644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27645 <limits.h> exists even on freestanding compilers. */
27648 # include <limits.h>
27650 # include <assert.h>
27655 /* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
27662 /* The GNU C library defines this for functions which it implements
27663 to always fail with ENOSYS. Some functions are actually named
27664 something starting with __ and the normal name is an alias. */
27665 #if defined __stub_$ac_func || defined __stub___$ac_func
27672 return $ac_func ();
27677 rm -f conftest.$ac_objext conftest$ac_exeext
27678 if { (ac_try="$ac_link"
27679 case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_link") 2>conftest.er1
27686 grep -v '^ *+' conftest.er1 >conftest.err
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && {
27691 test -z "$ac_c_werror_flag" ||
27692 test ! -s conftest.err
27693 } && test -s conftest$ac_exeext &&
27694 $as_test_x conftest$ac_exeext; then
27695 eval "$as_ac_var=yes"
27697 echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27700 eval "$as_ac_var=no"
27703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27704 conftest$ac_exeext conftest.$ac_ext
27706 ac_res=`eval echo '${'$as_ac_var'}'`
27707 { echo "$as_me:$LINENO: result: $ac_res" >&5
27708 echo "${ECHO_T}$ac_res" >&6; }
27709 if test `eval echo '${'$as_ac_var'}'` = yes; then
27710 cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27718 # If resolver functions are not in libc check for -lnsl or -lresolv.
27719 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27722 echo $ECHO_N "(cached) $ECHO_C" >&6
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27730 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27732 #define gethostbyname_r innocuous_gethostbyname_r
27734 /* System header to define __stub macros and hopefully few prototypes,
27735 which can conflict with char gethostbyname_r (); below.
27736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27737 <limits.h> exists even on freestanding compilers. */
27740 # include <limits.h>
27742 # include <assert.h>
27745 #undef gethostbyname_r
27747 /* Override any GCC internal prototype to avoid an error.
27748 Use char because int might match the return type of a GCC
27749 builtin and then its argument prototype would still apply. */
27753 char gethostbyname_r ();
27754 /* The GNU C library defines this for functions which it implements
27755 to always fail with ENOSYS. Some functions are actually named
27756 something starting with __ and the normal name is an alias. */
27757 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27764 return gethostbyname_r ();
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (ac_try="$ac_link"
27771 case "(($ac_try" in
27772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773 *) ac_try_echo=$ac_try;;
27775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776 (eval "$ac_link") 2>conftest.er1
27778 grep -v '^ *+' conftest.er1 >conftest.err
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } && {
27783 test -z "$ac_c_werror_flag" ||
27784 test ! -s conftest.err
27785 } && test -s conftest$ac_exeext &&
27786 $as_test_x conftest$ac_exeext; then
27787 ac_cv_func_gethostbyname_r=yes
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27792 ac_cv_func_gethostbyname_r=no
27795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27796 conftest$ac_exeext conftest.$ac_ext
27798 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27800 if test $ac_cv_func_gethostbyname_r = yes; then
27801 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27802 echo "${ECHO_T}using libc's resolver" >&6; }
27805 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27808 echo $ECHO_N "(cached) $ECHO_C" >&6
27810 ac_check_lib_save_LIBS=$LIBS
27812 cat >conftest.$ac_ext <<_ACEOF
27815 cat confdefs.h >>conftest.$ac_ext
27816 cat >>conftest.$ac_ext <<_ACEOF
27817 /* end confdefs.h. */
27819 /* Override any GCC internal prototype to avoid an error.
27820 Use char because int might match the return type of a GCC
27821 builtin and then its argument prototype would still apply. */
27825 char gethostbyname_r ();
27829 return gethostbyname_r ();
27834 rm -f conftest.$ac_objext conftest$ac_exeext
27835 if { (ac_try="$ac_link"
27836 case "(($ac_try" in
27837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838 *) ac_try_echo=$ac_try;;
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841 (eval "$ac_link") 2>conftest.er1
27843 grep -v '^ *+' conftest.er1 >conftest.err
27845 cat conftest.err >&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } && {
27848 test -z "$ac_c_werror_flag" ||
27849 test ! -s conftest.err
27850 } && test -s conftest$ac_exeext &&
27851 $as_test_x conftest$ac_exeext; then
27852 ac_cv_lib_nsl_gethostbyname_r=yes
27854 echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27857 ac_cv_lib_nsl_gethostbyname_r=no
27860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27861 conftest$ac_exeext conftest.$ac_ext
27862 LIBS=$ac_check_lib_save_LIBS
27864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27866 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27867 cat >>confdefs.h <<_ACEOF
27868 #define HAVE_LIBNSL 1
27876 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27877 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27878 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27881 ac_check_lib_save_LIBS=$LIBS
27882 LIBS="-lresolv $LIBS"
27883 cat >conftest.$ac_ext <<_ACEOF
27886 cat confdefs.h >>conftest.$ac_ext
27887 cat >>conftest.$ac_ext <<_ACEOF
27888 /* end confdefs.h. */
27890 /* Override any GCC internal prototype to avoid an error.
27891 Use char because int might match the return type of a GCC
27892 builtin and then its argument prototype would still apply. */
27896 char gethostbyname_r ();
27900 return gethostbyname_r ();
27905 rm -f conftest.$ac_objext conftest$ac_exeext
27906 if { (ac_try="$ac_link"
27907 case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912 (eval "$ac_link") 2>conftest.er1
27914 grep -v '^ *+' conftest.er1 >conftest.err
27916 cat conftest.err >&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); } && {
27919 test -z "$ac_c_werror_flag" ||
27920 test ! -s conftest.err
27921 } && test -s conftest$ac_exeext &&
27922 $as_test_x conftest$ac_exeext; then
27923 ac_cv_lib_resolv_gethostbyname_r=yes
27925 echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27928 ac_cv_lib_resolv_gethostbyname_r=no
27931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27932 conftest$ac_exeext conftest.$ac_ext
27933 LIBS=$ac_check_lib_save_LIBS
27935 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27936 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27937 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27938 cat >>confdefs.h <<_ACEOF
27939 #define HAVE_LIBRESOLV 1
27942 LIBS="-lresolv $LIBS"
27952 for ac_func in inet_pton
27954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27968 #define $ac_func innocuous_$ac_func
27970 /* System header to define __stub macros and hopefully few prototypes,
27971 which can conflict with char $ac_func (); below.
27972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27973 <limits.h> exists even on freestanding compilers. */
27976 # include <limits.h>
27978 # include <assert.h>
27983 /* Override any GCC internal prototype to avoid an error.
27984 Use char because int might match the return type of a GCC
27985 builtin and then its argument prototype would still apply. */
27990 /* The GNU C library defines this for functions which it implements
27991 to always fail with ENOSYS. Some functions are actually named
27992 something starting with __ and the normal name is an alias. */
27993 #if defined __stub_$ac_func || defined __stub___$ac_func
28000 return $ac_func ();
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest$ac_exeext &&
28022 $as_test_x conftest$ac_exeext; then
28023 eval "$as_ac_var=yes"
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28028 eval "$as_ac_var=no"
28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28032 conftest$ac_exeext conftest.$ac_ext
28034 ac_res=`eval echo '${'$as_ac_var'}'`
28035 { echo "$as_me:$LINENO: result: $ac_res" >&5
28036 echo "${ECHO_T}$ac_res" >&6; }
28037 if test `eval echo '${'$as_ac_var'}'` = yes; then
28038 cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28041 cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_INET_PTON 1
28049 for ac_func in inet_ntop
28051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28065 #define $ac_func innocuous_$ac_func
28067 /* System header to define __stub macros and hopefully few prototypes,
28068 which can conflict with char $ac_func (); below.
28069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28070 <limits.h> exists even on freestanding compilers. */
28073 # include <limits.h>
28075 # include <assert.h>
28080 /* Override any GCC internal prototype to avoid an error.
28081 Use char because int might match the return type of a GCC
28082 builtin and then its argument prototype would still apply. */
28087 /* The GNU C library defines this for functions which it implements
28088 to always fail with ENOSYS. Some functions are actually named
28089 something starting with __ and the normal name is an alias. */
28090 #if defined __stub_$ac_func || defined __stub___$ac_func
28097 return $ac_func ();
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_link") 2>conftest.er1
28111 grep -v '^ *+' conftest.er1 >conftest.err
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } && {
28116 test -z "$ac_c_werror_flag" ||
28117 test ! -s conftest.err
28118 } && test -s conftest$ac_exeext &&
28119 $as_test_x conftest$ac_exeext; then
28120 eval "$as_ac_var=yes"
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 eval "$as_ac_var=no"
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129 conftest$ac_exeext conftest.$ac_ext
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132 { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135 cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28138 cat >>confdefs.h <<\_ACEOF
28139 #define HAVE_INET_NTOP 1
28146 for ac_func in gethostbyname2
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28162 #define $ac_func innocuous_$ac_func
28164 /* System header to define __stub macros and hopefully few prototypes,
28165 which can conflict with char $ac_func (); below.
28166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167 <limits.h> exists even on freestanding compilers. */
28170 # include <limits.h>
28172 # include <assert.h>
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28184 /* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28194 return $ac_func ();
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
28208 grep -v '^ *+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } && {
28213 test -z "$ac_c_werror_flag" ||
28214 test ! -s conftest.err
28215 } && test -s conftest$ac_exeext &&
28216 $as_test_x conftest$ac_exeext; then
28217 eval "$as_ac_var=yes"
28219 echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28222 eval "$as_ac_var=no"
28225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28226 conftest$ac_exeext conftest.$ac_ext
28228 ac_res=`eval echo '${'$as_ac_var'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_var'}'` = yes; then
28232 cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28235 cat >>confdefs.h <<\_ACEOF
28236 #define HAVE_GETHOSTBYNAME2 1
28243 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28244 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28245 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28254 #include <sys/socket.h>
28258 struct sockaddr s; s.sa_len;
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_compile") 2>conftest.er1
28272 grep -v '^ *+' conftest.er1 >conftest.err
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } && {
28277 test -z "$ac_c_werror_flag" ||
28278 test ! -s conftest.err
28279 } && test -s conftest.$ac_objext; then
28280 ac_cv_struct_sockaddr_sa_len=yes
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 ac_cv_struct_sockaddr_sa_len=no
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28291 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28293 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_SA_LEN 1
28305 for ac_func in strftime
28307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 cat >conftest.$ac_ext <<_ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28321 #define $ac_func innocuous_$ac_func
28323 /* System header to define __stub macros and hopefully few prototypes,
28324 which can conflict with char $ac_func (); below.
28325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28326 <limits.h> exists even on freestanding compilers. */
28329 # include <limits.h>
28331 # include <assert.h>
28336 /* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
28343 /* The GNU C library defines this for functions which it implements
28344 to always fail with ENOSYS. Some functions are actually named
28345 something starting with __ and the normal name is an alias. */
28346 #if defined __stub_$ac_func || defined __stub___$ac_func
28353 return $ac_func ();
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (ac_try="$ac_link"
28360 case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_link") 2>conftest.er1
28367 grep -v '^ *+' conftest.er1 >conftest.err
28369 cat conftest.err >&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } && {
28372 test -z "$ac_c_werror_flag" ||
28373 test ! -s conftest.err
28374 } && test -s conftest$ac_exeext &&
28375 $as_test_x conftest$ac_exeext; then
28376 eval "$as_ac_var=yes"
28378 echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28381 eval "$as_ac_var=no"
28384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28385 conftest$ac_exeext conftest.$ac_ext
28387 ac_res=`eval echo '${'$as_ac_var'}'`
28388 { echo "$as_me:$LINENO: result: $ac_res" >&5
28389 echo "${ECHO_T}$ac_res" >&6; }
28390 if test `eval echo '${'$as_ac_var'}'` = yes; then
28391 cat >>confdefs.h <<_ACEOF
28392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28396 # strftime is in -lintl on SCO UNIX.
28397 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28398 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28399 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28400 echo $ECHO_N "(cached) $ECHO_C" >&6
28402 ac_check_lib_save_LIBS=$LIBS
28403 LIBS="-lintl $LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h. */
28411 /* Override any GCC internal prototype to avoid an error.
28412 Use char because int might match the return type of a GCC
28413 builtin and then its argument prototype would still apply. */
28421 return strftime ();
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (ac_try="$ac_link"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_link") 2>conftest.er1
28435 grep -v '^ *+' conftest.er1 >conftest.err
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } && {
28440 test -z "$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 } && test -s conftest$ac_exeext &&
28443 $as_test_x conftest$ac_exeext; then
28444 ac_cv_lib_intl_strftime=yes
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 ac_cv_lib_intl_strftime=no
28452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28453 conftest$ac_exeext conftest.$ac_ext
28454 LIBS=$ac_check_lib_save_LIBS
28456 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28457 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28458 if test $ac_cv_lib_intl_strftime = yes; then
28459 cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_STRFTIME 1
28463 LIBS="-lintl $LIBS"
28470 for ac_func in vprintf
28472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28478 cat >conftest.$ac_ext <<_ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h. */
28484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28486 #define $ac_func innocuous_$ac_func
28488 /* System header to define __stub macros and hopefully few prototypes,
28489 which can conflict with char $ac_func (); below.
28490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28491 <limits.h> exists even on freestanding compilers. */
28494 # include <limits.h>
28496 # include <assert.h>
28501 /* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
28508 /* The GNU C library defines this for functions which it implements
28509 to always fail with ENOSYS. Some functions are actually named
28510 something starting with __ and the normal name is an alias. */
28511 #if defined __stub_$ac_func || defined __stub___$ac_func
28518 return $ac_func ();
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_link") 2>conftest.er1
28532 grep -v '^ *+' conftest.er1 >conftest.err
28534 cat conftest.err >&5
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); } && {
28537 test -z "$ac_c_werror_flag" ||
28538 test ! -s conftest.err
28539 } && test -s conftest$ac_exeext &&
28540 $as_test_x conftest$ac_exeext; then
28541 eval "$as_ac_var=yes"
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28546 eval "$as_ac_var=no"
28549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28550 conftest$ac_exeext conftest.$ac_ext
28552 ac_res=`eval echo '${'$as_ac_var'}'`
28553 { echo "$as_me:$LINENO: result: $ac_res" >&5
28554 echo "${ECHO_T}$ac_res" >&6; }
28555 if test `eval echo '${'$as_ac_var'}'` = yes; then
28556 cat >>confdefs.h <<_ACEOF
28557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28560 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28561 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28562 if test "${ac_cv_func__doprnt+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 cat >conftest.$ac_ext <<_ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h. */
28571 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28573 #define _doprnt innocuous__doprnt
28575 /* System header to define __stub macros and hopefully few prototypes,
28576 which can conflict with char _doprnt (); below.
28577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28578 <limits.h> exists even on freestanding compilers. */
28581 # include <limits.h>
28583 # include <assert.h>
28588 /* Override any GCC internal prototype to avoid an error.
28589 Use char because int might match the return type of a GCC
28590 builtin and then its argument prototype would still apply. */
28595 /* The GNU C library defines this for functions which it implements
28596 to always fail with ENOSYS. Some functions are actually named
28597 something starting with __ and the normal name is an alias. */
28598 #if defined __stub__doprnt || defined __stub____doprnt
28610 rm -f conftest.$ac_objext conftest$ac_exeext
28611 if { (ac_try="$ac_link"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_link") 2>conftest.er1
28619 grep -v '^ *+' conftest.er1 >conftest.err
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } && {
28624 test -z "$ac_c_werror_flag" ||
28625 test ! -s conftest.err
28626 } && test -s conftest$ac_exeext &&
28627 $as_test_x conftest$ac_exeext; then
28628 ac_cv_func__doprnt=yes
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28633 ac_cv_func__doprnt=no
28636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28637 conftest$ac_exeext conftest.$ac_ext
28639 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28640 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28641 if test $ac_cv_func__doprnt = yes; then
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_DOPRNT 1
28653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28654 # for constant arguments. Useless!
28655 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28656 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28657 if test "${ac_cv_working_alloca_h+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28660 cat >conftest.$ac_ext <<_ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28666 #include <alloca.h>
28670 char *p = (char *) alloca (2 * sizeof (int));
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_link") 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } && {
28690 test -z "$ac_c_werror_flag" ||
28691 test ! -s conftest.err
28692 } && test -s conftest$ac_exeext &&
28693 $as_test_x conftest$ac_exeext; then
28694 ac_cv_working_alloca_h=yes
28696 echo "$as_me: failed program was:" >&5
28697 sed 's/^/| /' conftest.$ac_ext >&5
28699 ac_cv_working_alloca_h=no
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703 conftest$ac_exeext conftest.$ac_ext
28705 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28706 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28707 if test $ac_cv_working_alloca_h = yes; then
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_ALLOCA_H 1
28715 { echo "$as_me:$LINENO: checking for alloca" >&5
28716 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28717 if test "${ac_cv_func_alloca_works+set}" = set; then
28718 echo $ECHO_N "(cached) $ECHO_C" >&6
28720 cat >conftest.$ac_ext <<_ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h. */
28727 # define alloca __builtin_alloca
28730 # include <malloc.h>
28731 # define alloca _alloca
28733 # ifdef HAVE_ALLOCA_H
28734 # include <alloca.h>
28739 # ifndef alloca /* predefined by HP cc +Olibcalls */
28750 char *p = (char *) alloca (1);
28756 rm -f conftest.$ac_objext conftest$ac_exeext
28757 if { (ac_try="$ac_link"
28758 case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_link") 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } && {
28770 test -z "$ac_c_werror_flag" ||
28771 test ! -s conftest.err
28772 } && test -s conftest$ac_exeext &&
28773 $as_test_x conftest$ac_exeext; then
28774 ac_cv_func_alloca_works=yes
28776 echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28779 ac_cv_func_alloca_works=no
28782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28783 conftest$ac_exeext conftest.$ac_ext
28785 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28786 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28788 if test $ac_cv_func_alloca_works = yes; then
28790 cat >>confdefs.h <<\_ACEOF
28791 #define HAVE_ALLOCA 1
28795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28796 # that cause trouble. Some versions do not even contain alloca or
28797 # contain a buggy version. If you still want to use their alloca,
28798 # use ar to extract alloca.o from them instead of compiling alloca.c.
28800 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28802 cat >>confdefs.h <<\_ACEOF
28807 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28808 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28809 if test "${ac_cv_os_cray+set}" = set; then
28810 echo $ECHO_N "(cached) $ECHO_C" >&6
28812 cat >conftest.$ac_ext <<_ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h. */
28818 #if defined CRAY && ! defined CRAY2
28825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28826 $EGREP "webecray" >/dev/null 2>&1; then
28834 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28835 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28836 if test $ac_cv_os_cray = yes; then
28837 for ac_func in _getb67 GETB67 getb67; do
28838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28844 cat >conftest.$ac_ext <<_ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28852 #define $ac_func innocuous_$ac_func
28854 /* System header to define __stub macros and hopefully few prototypes,
28855 which can conflict with char $ac_func (); below.
28856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28857 <limits.h> exists even on freestanding compilers. */
28860 # include <limits.h>
28862 # include <assert.h>
28867 /* Override any GCC internal prototype to avoid an error.
28868 Use char because int might match the return type of a GCC
28869 builtin and then its argument prototype would still apply. */
28874 /* The GNU C library defines this for functions which it implements
28875 to always fail with ENOSYS. Some functions are actually named
28876 something starting with __ and the normal name is an alias. */
28877 #if defined __stub_$ac_func || defined __stub___$ac_func
28884 return $ac_func ();
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (ac_try="$ac_link"
28891 case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_link") 2>conftest.er1
28898 grep -v '^ *+' conftest.er1 >conftest.err
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } && {
28903 test -z "$ac_c_werror_flag" ||
28904 test ! -s conftest.err
28905 } && test -s conftest$ac_exeext &&
28906 $as_test_x conftest$ac_exeext; then
28907 eval "$as_ac_var=yes"
28909 echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28912 eval "$as_ac_var=no"
28915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28916 conftest$ac_exeext conftest.$ac_ext
28918 ac_res=`eval echo '${'$as_ac_var'}'`
28919 { echo "$as_me:$LINENO: result: $ac_res" >&5
28920 echo "${ECHO_T}$ac_res" >&6; }
28921 if test `eval echo '${'$as_ac_var'}'` = yes; then
28923 cat >>confdefs.h <<_ACEOF
28924 #define CRAY_STACKSEG_END $ac_func
28933 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28934 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28935 if test "${ac_cv_c_stack_direction+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28938 if test "$cross_compiling" = yes; then
28939 ac_cv_c_stack_direction=0
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 $ac_includes_default
28949 find_stack_direction ()
28951 static char *addr = 0;
28956 return find_stack_direction ();
28959 return (&dummy > addr) ? 1 : -1;
28965 return find_stack_direction () < 0;
28968 rm -f conftest$ac_exeext
28969 if { (ac_try="$ac_link"
28970 case "(($ac_try" in
28971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972 *) ac_try_echo=$ac_try;;
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975 (eval "$ac_link") 2>&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28979 { (case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_try") 2>&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); }; }; then
28988 ac_cv_c_stack_direction=1
28990 echo "$as_me: program exited with status $ac_status" >&5
28991 echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28994 ( exit $ac_status )
28995 ac_cv_c_stack_direction=-1
28997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29002 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29003 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29005 cat >>confdefs.h <<_ACEOF
29006 #define STACK_DIRECTION $ac_cv_c_stack_direction
29012 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29013 # -lseq on Dynix/PTX, -lgen on Unixware.
29014 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29015 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29016 if test "${ac_cv_search_getmntent+set}" = set; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29019 ac_func_search_save_LIBS=$LIBS
29020 cat >conftest.$ac_ext <<_ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h. */
29027 /* Override any GCC internal prototype to avoid an error.
29028 Use char because int might match the return type of a GCC
29029 builtin and then its argument prototype would still apply. */
29037 return getmntent ();
29042 for ac_lib in '' sun seq gen; do
29043 if test -z "$ac_lib"; then
29044 ac_res="none required"
29047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29049 rm -f conftest.$ac_objext conftest$ac_exeext
29050 if { (ac_try="$ac_link"
29051 case "(($ac_try" in
29052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29053 *) ac_try_echo=$ac_try;;
29055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29056 (eval "$ac_link") 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } && {
29063 test -z "$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 } && test -s conftest$ac_exeext &&
29066 $as_test_x conftest$ac_exeext; then
29067 ac_cv_search_getmntent=$ac_res
29069 echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29077 if test "${ac_cv_search_getmntent+set}" = set; then
29081 if test "${ac_cv_search_getmntent+set}" = set; then
29084 ac_cv_search_getmntent=no
29086 rm conftest.$ac_ext
29087 LIBS=$ac_func_search_save_LIBS
29089 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29090 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29091 ac_res=$ac_cv_search_getmntent
29092 if test "$ac_res" != no; then
29093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29094 ac_cv_func_getmntent=yes
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_GETMNTENT 1
29101 ac_cv_func_getmntent=no
29105 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29106 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29107 if test "${ac_cv_func_closedir_void+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 if test "$cross_compiling" = yes; then
29111 ac_cv_func_closedir_void=yes
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 $ac_includes_default
29120 #include <$ac_header_dirent>
29121 #ifndef __cplusplus
29128 return closedir (opendir (".")) != 0;
29133 rm -f conftest$ac_exeext
29134 if { (ac_try="$ac_link"
29135 case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_link") 2>&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29144 { (case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149 (eval "$ac_try") 2>&5
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; }; then
29153 ac_cv_func_closedir_void=no
29155 echo "$as_me: program exited with status $ac_status" >&5
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 ( exit $ac_status )
29160 ac_cv_func_closedir_void=yes
29162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29167 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29168 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29169 if test $ac_cv_func_closedir_void = yes; then
29171 cat >>confdefs.h <<\_ACEOF
29172 #define CLOSEDIR_VOID 1
29177 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29178 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29179 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29182 if test "$cross_compiling" = yes; then
29183 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29184 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29185 { (exit 1); exit 1; }; }
29187 cat >conftest.$ac_ext <<_ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29193 $ac_includes_default
29197 /* If this system has a BSD-style setpgrp which takes arguments,
29198 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29199 exit successfully. */
29200 return setpgrp (1,1) != -1;
29205 rm -f conftest$ac_exeext
29206 if { (ac_try="$ac_link"
29207 case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_link") 2>&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; }; then
29225 ac_cv_func_setpgrp_void=no
29227 echo "$as_me: program exited with status $ac_status" >&5
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29231 ( exit $ac_status )
29232 ac_cv_func_setpgrp_void=yes
29234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29239 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29240 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29241 if test $ac_cv_func_setpgrp_void = yes; then
29243 cat >>confdefs.h <<\_ACEOF
29244 #define SETPGRP_VOID 1
29248 # AC_FUNC_FNMATCH dnl use local version
29251 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29252 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29253 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29256 ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lintl $LIBS"
29258 cat >conftest.$ac_ext <<_ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h. */
29265 /* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_link") 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } && {
29294 test -z "$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29296 } && test -s conftest$ac_exeext &&
29297 $as_test_x conftest$ac_exeext; then
29298 ac_cv_lib_intl_gettext=yes
29300 echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29303 ac_cv_lib_intl_gettext=no
29306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29307 conftest$ac_exeext conftest.$ac_ext
29308 LIBS=$ac_check_lib_save_LIBS
29310 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29311 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29312 if test $ac_cv_lib_intl_gettext = yes; then
29313 LIBS="$LIBS -lintl"
29319 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29320 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29321 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 ac_check_lib_save_LIBS=$LIBS
29326 cat >conftest.$ac_ext <<_ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29333 /* Override any GCC internal prototype to avoid an error.
29334 Use char because int might match the return type of a GCC
29335 builtin and then its argument prototype would still apply. */
29343 return getpwnam ();
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (ac_try="$ac_link"
29350 case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_link") 2>conftest.er1
29357 grep -v '^ *+' conftest.er1 >conftest.err
29359 cat conftest.err >&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } && {
29362 test -z "$ac_c_werror_flag" ||
29363 test ! -s conftest.err
29364 } && test -s conftest$ac_exeext &&
29365 $as_test_x conftest$ac_exeext; then
29366 ac_cv_lib_sun_getpwnam=yes
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29371 ac_cv_lib_sun_getpwnam=no
29374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29375 conftest$ac_exeext conftest.$ac_ext
29376 LIBS=$ac_check_lib_save_LIBS
29378 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29379 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29380 if test $ac_cv_lib_sun_getpwnam = yes; then
29381 cat >>confdefs.h <<_ACEOF
29382 #define HAVE_LIBSUN 1
29391 for ac_header in zlib.h
29393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401 { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29404 # Is the header compilable?
29405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29407 cat >conftest.$ac_ext <<_ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h. */
29413 $ac_includes_default
29414 #include <$ac_header>
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } && {
29430 test -z "$ac_c_werror_flag" ||
29431 test ! -s conftest.err
29432 } && test -s conftest.$ac_objext; then
29433 ac_header_compiler=yes
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29438 ac_header_compiler=no
29441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29443 echo "${ECHO_T}$ac_header_compiler" >&6; }
29445 # Is the header present?
29446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29448 cat >conftest.$ac_ext <<_ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h. */
29454 #include <$ac_header>
29456 if { (ac_try="$ac_cpp conftest.$ac_ext"
29457 case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29464 grep -v '^ *+' conftest.er1 >conftest.err
29466 cat conftest.err >&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } >/dev/null && {
29469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29470 test ! -s conftest.err
29472 ac_header_preproc=yes
29474 echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29477 ac_header_preproc=no
29480 rm -f conftest.err conftest.$ac_ext
29481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29482 echo "${ECHO_T}$ac_header_preproc" >&6; }
29484 # So? What about this header?
29485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29491 ac_header_preproc=yes
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 eval "$as_ac_Header=\$ac_header_preproc"
29516 ac_res=`eval echo '${'$as_ac_Header'}'`
29517 { echo "$as_me:$LINENO: result: $ac_res" >&5
29518 echo "${ECHO_T}$ac_res" >&6; }
29521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29522 cat >>confdefs.h <<_ACEOF
29523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29530 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29531 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29532 if test "${ac_cv_lib_z_deflate+set}" = set; then
29533 echo $ECHO_N "(cached) $ECHO_C" >&6
29535 ac_check_lib_save_LIBS=$LIBS
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29544 /* Override any GCC internal prototype to avoid an error.
29545 Use char because int might match the return type of a GCC
29546 builtin and then its argument prototype would still apply. */
29559 rm -f conftest.$ac_objext conftest$ac_exeext
29560 if { (ac_try="$ac_link"
29561 case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_link") 2>conftest.er1
29568 grep -v '^ *+' conftest.er1 >conftest.err
29570 cat conftest.err >&5
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } && {
29573 test -z "$ac_c_werror_flag" ||
29574 test ! -s conftest.err
29575 } && test -s conftest$ac_exeext &&
29576 $as_test_x conftest$ac_exeext; then
29577 ac_cv_lib_z_deflate=yes
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 ac_cv_lib_z_deflate=no
29585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29586 conftest$ac_exeext conftest.$ac_ext
29587 LIBS=$ac_check_lib_save_LIBS
29589 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29590 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29591 if test $ac_cv_lib_z_deflate = yes; then
29596 if test x$FDLIBS = x-lz; then
29597 cat >>confdefs.h <<\_ACEOF
29598 #define HAVE_LIBZ 1
29605 # Check for ACL libraries
29608 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29609 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29617 # Is the header compilable?
29618 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 $ac_includes_default
29627 #include <sys/acl.h>
29629 rm -f conftest.$ac_objext
29630 if { (ac_try="$ac_compile"
29631 case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_compile") 2>conftest.er1
29638 grep -v '^ *+' conftest.er1 >conftest.err
29640 cat conftest.err >&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); } && {
29643 test -z "$ac_c_werror_flag" ||
29644 test ! -s conftest.err
29645 } && test -s conftest.$ac_objext; then
29646 ac_header_compiler=yes
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651 ac_header_compiler=no
29654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656 echo "${ECHO_T}$ac_header_compiler" >&6; }
29658 # Is the header present?
29659 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29660 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h. */
29667 #include <sys/acl.h>
29669 if { (ac_try="$ac_cpp conftest.$ac_ext"
29670 case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29677 grep -v '^ *+' conftest.er1 >conftest.err
29679 cat conftest.err >&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); } >/dev/null && {
29682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29683 test ! -s conftest.err
29685 ac_header_preproc=yes
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ac_header_preproc=no
29693 rm -f conftest.err conftest.$ac_ext
29694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695 echo "${ECHO_T}$ac_header_preproc" >&6; }
29697 # So? What about this header?
29698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29700 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29701 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29703 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29704 ac_header_preproc=yes
29707 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29708 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29710 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29712 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29714 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29716 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29718 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29722 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29723 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29724 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29727 ac_cv_header_sys_acl_h=$ac_header_preproc
29729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29730 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29735 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29736 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29737 if test "${ac_cv_func_acl_get_file+set}" = set; then
29738 echo $ECHO_N "(cached) $ECHO_C" >&6
29740 cat >conftest.$ac_ext <<_ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h. */
29746 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29748 #define acl_get_file innocuous_acl_get_file
29750 /* System header to define __stub macros and hopefully few prototypes,
29751 which can conflict with char acl_get_file (); below.
29752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29753 <limits.h> exists even on freestanding compilers. */
29756 # include <limits.h>
29758 # include <assert.h>
29761 #undef acl_get_file
29763 /* Override any GCC internal prototype to avoid an error.
29764 Use char because int might match the return type of a GCC
29765 builtin and then its argument prototype would still apply. */
29769 char acl_get_file ();
29770 /* The GNU C library defines this for functions which it implements
29771 to always fail with ENOSYS. Some functions are actually named
29772 something starting with __ and the normal name is an alias. */
29773 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29780 return acl_get_file ();
29785 rm -f conftest.$ac_objext conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_link") 2>conftest.er1
29794 grep -v '^ *+' conftest.er1 >conftest.err
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); } && {
29799 test -z "$ac_c_werror_flag" ||
29800 test ! -s conftest.err
29801 } && test -s conftest$ac_exeext &&
29802 $as_test_x conftest$ac_exeext; then
29803 ac_cv_func_acl_get_file=yes
29805 echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29808 ac_cv_func_acl_get_file=no
29811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29812 conftest$ac_exeext conftest.$ac_ext
29814 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29815 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29816 if test $ac_cv_func_acl_get_file = yes; then
29819 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29820 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29821 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29822 echo $ECHO_N "(cached) $ECHO_C" >&6
29824 ac_check_lib_save_LIBS=$LIBS
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29833 /* Override any GCC internal prototype to avoid an error.
29834 Use char because int might match the return type of a GCC
29835 builtin and then its argument prototype would still apply. */
29839 char acl_get_file ();
29843 return acl_get_file ();
29848 rm -f conftest.$ac_objext conftest$ac_exeext
29849 if { (ac_try="$ac_link"
29850 case "(($ac_try" in
29851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852 *) ac_try_echo=$ac_try;;
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855 (eval "$ac_link") 2>conftest.er1
29857 grep -v '^ *+' conftest.er1 >conftest.err
29859 cat conftest.err >&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } && {
29862 test -z "$ac_c_werror_flag" ||
29863 test ! -s conftest.err
29864 } && test -s conftest$ac_exeext &&
29865 $as_test_x conftest$ac_exeext; then
29866 ac_cv_lib_acl_acl_get_file=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_cv_lib_acl_acl_get_file=no
29874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29875 conftest$ac_exeext conftest.$ac_ext
29876 LIBS=$ac_check_lib_save_LIBS
29878 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29879 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29880 if test $ac_cv_lib_acl_acl_get_file = yes; then
29881 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29883 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29884 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29885 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29886 echo $ECHO_N "(cached) $ECHO_C" >&6
29888 ac_check_lib_save_LIBS=$LIBS
29890 cat >conftest.$ac_ext <<_ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h. */
29897 /* Override any GCC internal prototype to avoid an error.
29898 Use char because int might match the return type of a GCC
29899 builtin and then its argument prototype would still apply. */
29907 return acltotext ();
29912 rm -f conftest.$ac_objext conftest$ac_exeext
29913 if { (ac_try="$ac_link"
29914 case "(($ac_try" in
29915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29916 *) ac_try_echo=$ac_try;;
29918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29919 (eval "$ac_link") 2>conftest.er1
29921 grep -v '^ *+' conftest.er1 >conftest.err
29923 cat conftest.err >&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } && {
29926 test -z "$ac_c_werror_flag" ||
29927 test ! -s conftest.err
29928 } && test -s conftest$ac_exeext &&
29929 $as_test_x conftest$ac_exeext; then
29930 ac_cv_lib_sec_acltotext=yes
29932 echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29935 ac_cv_lib_sec_acltotext=no
29938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29939 conftest$ac_exeext conftest.$ac_ext
29940 LIBS=$ac_check_lib_save_LIBS
29942 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29943 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29944 if test $ac_cv_lib_sec_acltotext = yes; then
29945 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29954 if test $have_acl = yes; then
29955 cat >>confdefs.h <<\_ACEOF
29962 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29963 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29964 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lpthread $LIBS"
29969 cat >conftest.$ac_ext <<_ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29976 /* Override any GCC internal prototype to avoid an error.
29977 Use char because int might match the return type of a GCC
29978 builtin and then its argument prototype would still apply. */
29982 char pthread_create ();
29986 return pthread_create ();
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_link") 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } && {
30005 test -z "$ac_c_werror_flag" ||
30006 test ! -s conftest.err
30007 } && test -s conftest$ac_exeext &&
30008 $as_test_x conftest$ac_exeext; then
30009 ac_cv_lib_pthread_pthread_create=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_cv_lib_pthread_pthread_create=no
30017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30018 conftest$ac_exeext conftest.$ac_ext
30019 LIBS=$ac_check_lib_save_LIBS
30021 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
30022 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
30023 if test $ac_cv_lib_pthread_pthread_create = yes; then
30024 PTHREAD_LIB="-lpthread"
30026 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
30027 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
30028 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30029 echo $ECHO_N "(cached) $ECHO_C" >&6
30031 ac_check_lib_save_LIBS=$LIBS
30032 LIBS="-lpthreads $LIBS"
30033 cat >conftest.$ac_ext <<_ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30040 /* Override any GCC internal prototype to avoid an error.
30041 Use char because int might match the return type of a GCC
30042 builtin and then its argument prototype would still apply. */
30046 char pthread_create ();
30050 return pthread_create ();
30055 rm -f conftest.$ac_objext conftest$ac_exeext
30056 if { (ac_try="$ac_link"
30057 case "(($ac_try" in
30058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059 *) ac_try_echo=$ac_try;;
30061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062 (eval "$ac_link") 2>conftest.er1
30064 grep -v '^ *+' conftest.er1 >conftest.err
30066 cat conftest.err >&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); } && {
30069 test -z "$ac_c_werror_flag" ||
30070 test ! -s conftest.err
30071 } && test -s conftest$ac_exeext &&
30072 $as_test_x conftest$ac_exeext; then
30073 ac_cv_lib_pthreads_pthread_create=yes
30075 echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30078 ac_cv_lib_pthreads_pthread_create=no
30081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30082 conftest$ac_exeext conftest.$ac_ext
30083 LIBS=$ac_check_lib_save_LIBS
30085 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30086 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
30087 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30088 PTHREAD_LIB="-lpthreads"
30090 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30091 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
30092 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30095 ac_check_lib_save_LIBS=$LIBS
30097 cat >conftest.$ac_ext <<_ACEOF
30100 cat confdefs.h >>conftest.$ac_ext
30101 cat >>conftest.$ac_ext <<_ACEOF
30102 /* end confdefs.h. */
30104 /* Override any GCC internal prototype to avoid an error.
30105 Use char because int might match the return type of a GCC
30106 builtin and then its argument prototype would still apply. */
30110 char pthread_create ();
30114 return pthread_create ();
30119 rm -f conftest.$ac_objext conftest$ac_exeext
30120 if { (ac_try="$ac_link"
30121 case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_link") 2>conftest.er1
30128 grep -v '^ *+' conftest.er1 >conftest.err
30130 cat conftest.err >&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); } && {
30133 test -z "$ac_c_werror_flag" ||
30134 test ! -s conftest.err
30135 } && test -s conftest$ac_exeext &&
30136 $as_test_x conftest$ac_exeext; then
30137 ac_cv_lib_c_r_pthread_create=yes
30139 echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30142 ac_cv_lib_c_r_pthread_create=no
30145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30146 conftest$ac_exeext conftest.$ac_ext
30147 LIBS=$ac_check_lib_save_LIBS
30149 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30150 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30151 if test $ac_cv_lib_c_r_pthread_create = yes; then
30152 PTHREAD_LIB="-lc_r"
30154 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30155 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30156 if test "${ac_cv_func_pthread_create+set}" = set; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30159 cat >conftest.$ac_ext <<_ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h. */
30165 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30167 #define pthread_create innocuous_pthread_create
30169 /* System header to define __stub macros and hopefully few prototypes,
30170 which can conflict with char pthread_create (); below.
30171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30172 <limits.h> exists even on freestanding compilers. */
30175 # include <limits.h>
30177 # include <assert.h>
30180 #undef pthread_create
30182 /* Override any GCC internal prototype to avoid an error.
30183 Use char because int might match the return type of a GCC
30184 builtin and then its argument prototype would still apply. */
30188 char pthread_create ();
30189 /* The GNU C library defines this for functions which it implements
30190 to always fail with ENOSYS. Some functions are actually named
30191 something starting with __ and the normal name is an alias. */
30192 #if defined __stub_pthread_create || defined __stub___pthread_create
30199 return pthread_create ();
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (ac_try="$ac_link"
30206 case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_link") 2>conftest.er1
30213 grep -v '^ *+' conftest.er1 >conftest.err
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } && {
30218 test -z "$ac_c_werror_flag" ||
30219 test ! -s conftest.err
30220 } && test -s conftest$ac_exeext &&
30221 $as_test_x conftest$ac_exeext; then
30222 ac_cv_func_pthread_create=yes
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_cv_func_pthread_create=no
30230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30231 conftest$ac_exeext conftest.$ac_ext
30233 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30234 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30247 cat >>confdefs.h <<\_ACEOF
30253 CFLAGS=${CFLAGS--O}
30255 if test x$have_gcc = xyes ; then
30256 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30257 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30259 LDFLAGS=${LDFLAGS--O}
30260 DB_LIBS="${SQL_LFLAGS}"
30261 CPPFLAGS="$CPPFLAGS"
30289 # Finally we set appropriate distribution specific
30290 # variables and defaults
30292 # PFILES are platform specific files
30293 PFILES="platforms/Makefile"
30297 hostname=`uname -n | cut -d '.' -f 1`
30298 if test x${hostname} = x ; then
30299 hostname="localhost"
30301 case "$DISTNAME" in
30304 PSCMD="ps -e -o pid,comm"
30305 PFILES="${PFILES} \
30306 platforms/aix/Makefile"
30307 TAPEDRIVE="/dev/rmt0.1"
30311 PTHREAD_LIB="-lpthread -lexc"
30312 if test "${CC}" = "gcc" ; then
30319 TAPEDRIVE="/dev/nrmt0"
30322 DISTVER=`uname -a |awk '{print $3}'`
30323 TAPEDRIVE="/dev/nrmt0"
30324 PTHREAD_LIB="-pthread"
30325 CFLAGS="${CFLAGS} -pthread"
30326 PSCMD="ps -ax -o pid,command"
30329 PFILES="${PFILES} \
30330 platforms/bsdi/Makefile \
30331 platforms/bsdi/bacula-fd \
30332 platforms/bsdi/bacula-sd \
30333 platforms/bsdi/bacula-dir"
30334 largefile_support="yes"
30337 DISTVER=`uname -a |awk '{print $3}'`
30338 TAPEDRIVE="/dev/nrst0"
30340 WCFLAGS="-mwindows"
30341 WLDFLAGS="-mwindows"
30345 TAPEDRIVE="/dev/nst0"
30346 PSCMD="ps -e -o pid,command"
30348 PFILES="${PFILES} \
30349 platforms/darwin/Makefile"
30352 # Make sure hostname is resolved
30353 ping -c 1 $hostname 2>&1 1>/dev/null
30354 if test ! $? = 0; then
30355 hostname="localhost"
30357 if `grep -q ubuntu /etc/apt/sources.list`; then
30360 DISTVER=`cat /etc/debian_version`
30361 if test -f /etc/lsb-release ; then
30363 if test "x$DISTRIB_ID" != "x" ; then
30364 DISTNAME=$DISTRIB_ID
30366 if test "x$DISTRIB_RELEASE" != "x" ; then
30367 DISTVER=$DISTRIB_RELEASE
30370 if test "$DISTNAME" = "Ubuntu" ; then
30373 TAPEDRIVE="/dev/nst0"
30374 PSCMD="ps -e -o pid,command"
30375 if test "$DISTNAME" = "ubuntu" ; then
30376 PFILES="${PFILES} \
30377 platforms/ubuntu/Makefile \
30378 platforms/ubuntu/bacula-fd \
30379 platforms/ubuntu/bacula-sd \
30380 platforms/ubuntu/bacula-dir"
30382 PFILES="${PFILES} \
30383 platforms/debian/Makefile \
30384 platforms/debian/bacula-fd \
30385 platforms/debian/bacula-sd \
30386 platforms/debian/bacula-dir"
30390 # Make sure hostname is resolved
30391 ping -c 1 $hostname 2>&1 1>/dev/null
30392 if test ! $? = 0; then
30393 hostname="localhost"
30395 DISTVER=`uname -a |awk '{print $3}'`
30396 VER=`echo $DISTVER | cut -c 1`
30397 if test x$VER = x4 ; then
30398 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30399 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30403 TAPEDRIVE="/dev/nrsa0"
30404 PSCMD="ps -ax -o pid,command"
30405 PFILES="${PFILES} \
30406 platforms/freebsd/Makefile \
30407 platforms/freebsd/bacula-fd \
30408 platforms/freebsd/bacula-sd \
30409 platforms/freebsd/bacula-dir"
30410 largefile_support="yes"
30413 PSCMD="UNIX95=1; ps -e -o pid,comm"
30414 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30416 TAPEDRIVE="/dev/rmt/0hnb"
30417 PTHREAD_LIB="-lpthread"
30418 cat >>confdefs.h <<\_ACEOF
30419 #define _INCLUDE_LONGLONG 1
30425 TAPEDRIVE="/dev/rmt/0cbn"
30426 PSCMD="ps -e -o pid,comm"
30427 PFILES="${PFILES} \
30428 platforms/irix/Makefile \
30429 platforms/irix/bacula-fd \
30430 platforms/irix/bacula-sd \
30431 platforms/irix/bacula-dir"
30434 DISTVER=`uname -a |awk '{print $3}'`
30437 TAPEDRIVE="/dev/nrst0"
30438 PSCMD="ps -ax -o pid,command"
30439 PTHREAD_LIB="-pthread"
30440 CFLAGS="${CFLAGS} -pthread"
30443 DISTVER=`uname -a |awk '{print $3}'`
30446 TAPEDRIVE="/dev/nrst0"
30447 PSCMD="ps -ax -o pid,command"
30448 PTHREAD_LIB="-pthread"
30449 CFLAGS="${CFLAGS} -pthread"
30450 PFILES="${PFILES} \
30451 platforms/openbsd/Makefile \
30452 platforms/openbsd/bacula-fd \
30453 platforms/openbsd/bacula-sd \
30454 platforms/openbsd/bacula-dir"
30457 # Make sure hostname is resolved
30458 ping -c 1 $hostname 2>&1 1>/dev/null
30459 if test ! $? = 0; then
30460 hostname="localhost"
30462 if test -f /etc/whitebox-release ; then
30463 f=/etc/whitebox-release
30465 f=/etc/redhat-release
30467 if test `cat $f | grep release |\
30468 cut -f 3 -d ' '`x = "Enterprise"x ; then
30469 DISTVER="Enterprise "`cat $f | grep release |\
30472 DISTVER=`cat /etc/redhat-release | grep release |\
30475 TAPEDRIVE="/dev/nst0"
30476 PSCMD="ps -e -o pid,command"
30477 PFILES="${PFILES} \
30478 platforms/redhat/Makefile \
30479 platforms/redhat/bacula-fd \
30480 platforms/redhat/bacula-sd \
30481 platforms/redhat/bacula-dir \
30482 platforms/redhat/bacula.spec \
30486 # Make sure hostname is resolved
30487 ping -c 1 $hostname 2>&1 1>/dev/null
30488 if test ! $? = 0; then
30489 hostname="localhost"
30491 DISTVER=`cat /etc/mandrake-release | grep release |\
30493 TAPEDRIVE="/dev/nst0"
30494 PSCMD="ps -e -o pid,command"
30495 PFILES="${PFILES} \
30496 platforms/mandrake/Makefile \
30497 platforms/mandrake/bacula-fd \
30498 platforms/mandrake/bacula-sd \
30499 platforms/mandrake/bacula-dir \
30500 platforms/mandrake/bacula.spec \
30504 # Make sure hostname is resolved
30505 ping -c 1 $hostname 2>&1 1>/dev/null
30506 if test ! $? = 0; then
30507 hostname="localhost"
30509 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30510 TAPEDRIVE="/dev/nst0"
30511 PSCMD="ps -e -o pid,command"
30512 PFILES="${PFILES} \
30513 platforms/gentoo/Makefile \
30514 platforms/gentoo/bacula-init \
30515 platforms/gentoo/bacula-fd \
30516 platforms/gentoo/bacula-sd \
30517 platforms/gentoo/bacula-dir"
30520 # Make sure hostname is resolved
30521 ping -c 1 $hostname 2>&1 1>/dev/null
30522 if test ! $? = 0; then
30523 hostname="localhost"
30525 DISTVER=`cat /etc/slackware-version`
30526 TAPEDRIVE="/dev/nst0"
30527 PSCMD="ps -e -o pid,command"
30528 PFILES="${PFILES} \
30529 platforms/slackware/Makefile \
30530 platforms/slackware/rc.bacula-fd \
30531 platforms/slackware/rc.bacula-sd \
30532 platforms/slackware/rc.bacula-dir\
30533 platforms/slackware/functions.bacula"
30537 TAPEDRIVE="/dev/rmt/0cbn"
30538 PSCMD="ps -e -o pid,comm"
30539 PFILES="${PFILES} \
30540 platforms/solaris/Makefile \
30541 platforms/solaris/bacula-fd \
30542 platforms/solaris/bacula-sd \
30543 platforms/solaris/bacula-dir"
30544 if test x$DISTVER = x5.6 ; then
30545 cat >>confdefs.h <<\_ACEOF
30546 #define HAVE_OLD_SOCKOPT 1
30550 LIBS="$LIBS -lresolv"
30553 # Make sure hostname is resolved
30554 ping -c 1 $hostname 2>&1 1>/dev/null
30555 if test ! $? = 0; then
30556 hostname="localhost"
30558 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30560 TAPEDRIVE="/dev/nst0"
30561 PSCMD="ps -e -o pid,command"
30562 PFILES="${PFILES} \
30563 platforms/suse/Makefile \
30564 platforms/suse/bacula-fd \
30565 platforms/suse/bacula-sd \
30566 platforms/suse/bacula-dir \
30567 platforms/suse/bacula \
30568 platforms/suse/bacula.spec"
30571 # Make sure hostname is resolved
30572 ping -c 1 $hostname 2>&1 1>/dev/null
30573 if test ! $? = 0; then
30574 hostname="localhost"
30578 TAPEDRIVE="/dev/nst0"
30579 PSCMD="ps -e -o pid,command"
30580 PFILES="${PFILES} \
30581 platforms/suse/Makefile \
30582 platforms/suse/bacula-fd \
30583 platforms/suse/bacula-sd \
30584 platforms/suse/bacula-dir"
30588 TAPEDRIVE="/dev/nst0"
30591 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30597 LIBS="$PTHREAD_LIB $LIBS"
30599 cat >>confdefs.h <<_ACEOF
30603 cat >>confdefs.h <<_ACEOF
30614 MCOMMON=./autoconf/Make.common
30617 if test "x${subsysdir}" = "x${sbindir}" ; then
30620 echo "You have set both --sbindir and --with-subsys-dir"
30621 echo " equal to: ${subsysdir} "
30622 echo "This is not permitted. Please reconfigure."
30624 echo "Aborting configuration ..."
30630 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30632 ac_config_commands="$ac_config_commands default"
30634 cat >confcache <<\_ACEOF
30635 # This file is a shell script that caches the results of configure
30636 # tests run on this system so they can be shared between configure
30637 # scripts and configure runs, see configure's option --config-cache.
30638 # It is not useful on other systems. If it contains results you don't
30639 # want to keep, you may remove or edit it.
30641 # config.status only pays attention to the cache file if you give it
30642 # the --recheck option to rerun configure.
30644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30646 # following values.
30650 # The following way of writing the cache mishandles newlines in values,
30651 # but we know of no workaround that is simple, portable, and efficient.
30652 # So, we kill variables containing newlines.
30653 # Ultrix sh set writes to stderr and can't be redirected directly,
30654 # and sets the high bit in the cache file unless we assign to the vars.
30656 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30657 eval ac_val=\$$ac_var
30661 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30662 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30665 _ | IFS | as_nl) ;; #(
30666 *) $as_unset $ac_var ;;
30672 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30673 *${as_nl}ac_space=\ *)
30674 # `set' does not quote correctly, so add quotes (double-quote
30675 # substitution turns \\\\ into \\, and sed turns \\ into \).
30678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30681 # `set' quotes correctly as required by POSIX, so do not add quotes.
30682 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30693 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30695 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30696 if test -w "$cache_file"; then
30697 test "x$cache_file" != "x/dev/null" &&
30698 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30699 echo "$as_me: updating cache $cache_file" >&6;}
30700 cat confcache >$cache_file
30702 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30703 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30709 # Let make expand exec_prefix.
30710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30712 DEFS=-DHAVE_CONFIG_H
30716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30717 # 1. Remove the extension, and $U if already installed.
30718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30719 ac_i=`echo "$ac_i" | sed "$ac_script"`
30720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30721 # will be set to the directory where LIBOBJS objects are built.
30722 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30723 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30725 LIBOBJS=$ac_libobjs
30727 LTLIBOBJS=$ac_ltlibobjs
30731 : ${CONFIG_STATUS=./config.status}
30732 ac_clean_files_save=$ac_clean_files
30733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30736 cat >$CONFIG_STATUS <<_ACEOF
30738 # Generated by $as_me.
30739 # Run this file to recreate the current configuration.
30740 # Compiler output produced by configure, useful for debugging
30741 # configure, is in config.log if it exists.
30744 ac_cs_recheck=false
30746 SHELL=\${CONFIG_SHELL-$SHELL}
30749 cat >>$CONFIG_STATUS <<\_ACEOF
30750 ## --------------------- ##
30751 ## M4sh Initialization. ##
30752 ## --------------------- ##
30754 # Be more Bourne compatible
30755 DUALCASE=1; export DUALCASE # for MKS sh
30756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30760 # is contrary to our usage. Disable this feature.
30761 alias -g '${1+"$@"}'='"$@"'
30762 setopt NO_GLOB_SUBST
30764 case `(set -o) 2>/dev/null` in
30765 *posix*) set -o posix ;;
30774 # Avoid depending upon Character Ranges.
30775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30778 as_cr_digits='0123456789'
30779 as_cr_alnum=$as_cr_Letters$as_cr_digits
30781 # The user is always right.
30782 if test "${PATH_SEPARATOR+set}" != set; then
30783 echo "#! /bin/sh" >conf$$.sh
30784 echo "exit 0" >>conf$$.sh
30786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30794 # Support unset when possible.
30795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30803 # We need space, tab and new line, in precisely that order. Quoting is
30804 # there to prevent editors from complaining about space-tab.
30805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30806 # splitting by setting IFS to empty value.)
30811 # Find who we are. Look in the path if we contain no directory separator.
30813 *[\\/]* ) as_myself=$0 ;;
30814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30815 for as_dir in $PATH
30818 test -z "$as_dir" && as_dir=.
30819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30825 # We did not find ourselves, most probably we were run as `sh COMMAND'
30826 # in which case we are not to be found in the path.
30827 if test "x$as_myself" = x; then
30830 if test ! -f "$as_myself"; then
30831 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30832 { (exit 1); exit 1; }
30835 # Work around bugs in pre-3.0 UWIN ksh.
30836 for as_var in ENV MAIL MAILPATH
30837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30847 LC_TELEPHONE LC_TIME
30849 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30850 eval $as_var=C; export $as_var
30852 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30856 # Required to use basename.
30857 if expr a : '\(a\)' >/dev/null 2>&1 &&
30858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30865 as_basename=basename
30871 # Name of the executable.
30872 as_me=`$as_basename -- "$0" ||
30873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30874 X"$0" : 'X\(//\)$' \| \
30875 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30877 sed '/^.*\/\([^/][^/]*\)\/*$/{
30896 as_lineno_1=$LINENO
30897 as_lineno_2=$LINENO
30898 test "x$as_lineno_1" != "x$as_lineno_2" &&
30899 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30902 # uniformly replaced by the line number. The first 'sed' inserts a
30903 # line-number line after each line using $LINENO; the second 'sed'
30904 # does the real work. The second script uses 'N' to pair each
30905 # line-number line with the line containing $LINENO, and appends
30906 # trailing '-' during substitution so that $LINENO is not a special
30907 # case at line end.
30908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30909 # scripts with optimization help from Paolo Bonzini. Blame Lee
30910 # E. McMahon (1931-1989) for sed's syntax. :-)
30922 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30925 ' >$as_me.lineno &&
30926 chmod +x "$as_me.lineno" ||
30927 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30928 { (exit 1); exit 1; }; }
30930 # Don't try to exec as it changes $[0], causing all sort of problems
30931 # (the dirname of $[0] is not the place where we might find the
30932 # original and so on. Autoconf is especially sensitive to this).
30933 . "./$as_me.lineno"
30934 # Exit status is that of the last command.
30939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30945 ECHO_C= ECHO_N= ECHO_T=
30946 case `echo -n x` in
30948 case `echo 'x\c'` in
30949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30956 if expr a : '\(a\)' >/dev/null 2>&1 &&
30957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30963 rm -f conf$$ conf$$.exe conf$$.file
30964 if test -d conf$$.dir; then
30965 rm -f conf$$.dir/conf$$.file
30971 if ln -s conf$$.file conf$$ 2>/dev/null; then
30973 # ... but there are two gotchas:
30974 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30975 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30976 # In both cases, we have to default to `cp -p'.
30977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30979 elif ln conf$$.file conf$$ 2>/dev/null; then
30984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30985 rmdir conf$$.dir 2>/dev/null
30987 if mkdir -p . 2>/dev/null; then
30990 test -d ./-p && rmdir ./-p
30994 if test -x / >/dev/null 2>&1; then
30995 as_test_x='test -x'
30997 if ls -dL / >/dev/null 2>&1; then
31004 if test -d "$1"; then
31010 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31011 ???[sx]*):;;*)false;;esac;fi
31015 as_executable_p=$as_test_x
31017 # Sed expression to map a string onto a valid CPP name.
31018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31020 # Sed expression to map a string onto a valid variable name.
31021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31026 # Save the log message, to keep $[0] and so on meaningful, and to
31027 # report actual input values of CONFIG_FILES etc. instead of their
31028 # values after options handling.
31030 This file was extended by $as_me, which was
31031 generated by GNU Autoconf 2.61. Invocation command line was
31033 CONFIG_FILES = $CONFIG_FILES
31034 CONFIG_HEADERS = $CONFIG_HEADERS
31035 CONFIG_LINKS = $CONFIG_LINKS
31036 CONFIG_COMMANDS = $CONFIG_COMMANDS
31039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31044 cat >>$CONFIG_STATUS <<_ACEOF
31045 # Files that config.status was made for.
31046 config_files="$ac_config_files"
31047 config_headers="$ac_config_headers"
31048 config_commands="$ac_config_commands"
31052 cat >>$CONFIG_STATUS <<\_ACEOF
31054 \`$as_me' instantiates files from templates according to the
31055 current configuration.
31057 Usage: $0 [OPTIONS] [FILE]...
31059 -h, --help print this help, then exit
31060 -V, --version print version number and configuration settings, then exit
31061 -q, --quiet do not print progress messages
31062 -d, --debug don't remove temporary files
31063 --recheck update $as_me by reconfiguring in the same conditions
31064 --file=FILE[:TEMPLATE]
31065 instantiate the configuration file FILE
31066 --header=FILE[:TEMPLATE]
31067 instantiate the configuration header FILE
31069 Configuration files:
31072 Configuration headers:
31075 Configuration commands:
31078 Report bugs to <bug-autoconf@gnu.org>."
31081 cat >>$CONFIG_STATUS <<_ACEOF
31084 configured by $0, generated by GNU Autoconf 2.61,
31085 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31087 Copyright (C) 2006 Free Software Foundation, Inc.
31088 This config.status script is free software; the Free Software Foundation
31089 gives unlimited permission to copy, distribute and modify it."
31096 cat >>$CONFIG_STATUS <<\_ACEOF
31097 # If no file are specified by the user, then we need to provide default
31098 # value. By we need to know if files were specified by the user.
31104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31116 # Handling of the options.
31117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31120 echo "$ac_cs_version"; exit ;;
31121 --debug | --debu | --deb | --de | --d | -d )
31123 --file | --fil | --fi | --f )
31125 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31126 ac_need_defaults=false;;
31127 --header | --heade | --head | --hea )
31129 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31130 ac_need_defaults=false;;
31132 # Conflict between --help and --header
31133 { echo "$as_me: error: ambiguous option: $1
31134 Try \`$0 --help' for more information." >&2
31135 { (exit 1); exit 1; }; };;
31136 --help | --hel | -h )
31137 echo "$ac_cs_usage"; exit ;;
31138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31139 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31142 # This is an error.
31143 -*) { echo "$as_me: error: unrecognized option: $1
31144 Try \`$0 --help' for more information." >&2
31145 { (exit 1); exit 1; }; } ;;
31147 *) ac_config_targets="$ac_config_targets $1"
31148 ac_need_defaults=false ;;
31154 ac_configure_extra_args=
31156 if $ac_cs_silent; then
31158 ac_configure_extra_args="$ac_configure_extra_args --silent"
31162 cat >>$CONFIG_STATUS <<_ACEOF
31163 if \$ac_cs_recheck; then
31164 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31165 CONFIG_SHELL=$SHELL
31166 export CONFIG_SHELL
31167 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31171 cat >>$CONFIG_STATUS <<\_ACEOF
31175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31176 ## Running $as_me. ##
31182 cat >>$CONFIG_STATUS <<_ACEOF
31186 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31187 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31189 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31190 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31191 LINGUAS="${LINGUAS-%UNSET%}"
31196 cat >>$CONFIG_STATUS <<\_ACEOF
31198 # Handling of arguments.
31199 for ac_config_target in $ac_config_targets
31201 case $ac_config_target in
31202 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31203 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31204 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31206 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31207 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31208 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31209 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31210 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31211 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31212 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31213 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31214 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31215 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31216 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31217 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31218 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31219 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31220 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31221 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31222 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31223 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31224 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31225 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31226 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31227 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31228 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31229 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31230 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31231 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31232 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31233 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31234 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31235 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31236 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31237 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31238 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31239 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31240 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31241 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31242 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31243 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31244 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31245 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31246 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31247 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31248 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31249 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31250 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31251 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31252 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31253 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31254 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31255 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31256 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31257 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31258 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31259 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31260 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31261 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31262 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31263 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31264 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31265 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31266 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31267 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31268 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31269 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31270 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31271 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31272 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31273 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31274 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31275 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31276 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31277 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31278 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31279 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31280 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31281 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31282 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31283 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31284 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31285 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31286 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31287 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31288 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31289 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31290 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31291 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31292 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31293 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31294 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31295 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31296 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31297 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31298 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31299 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31300 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31301 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31302 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31303 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31304 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31305 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31306 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31307 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31308 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31309 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31310 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31311 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31312 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31313 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31317 { (exit 1); exit 1; }; };;
31322 # If the user did not use the arguments to specify the items to instantiate,
31323 # then the envvar interface is used. Set only those that are not.
31324 # We use the long form for the default assignment because of an extremely
31325 # bizarre bug on SunOS 4.1.3.
31326 if $ac_need_defaults; then
31327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31332 # Have a temporary directory for convenience. Make it in the build tree
31333 # simply because there is no reason against having it here, and in addition,
31334 # creating and moving files from /tmp can sometimes cause problems.
31335 # Hook for its removal unless debugging.
31336 # Note that there is a small window in which the directory will not be cleaned:
31337 # after its creation but before its name has been assigned to `$tmp'.
31341 trap 'exit_status=$?
31342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31344 trap '{ (exit 1); exit 1; }' 1 2 13 15
31346 # Create a (secure) tmp directory for tmp files.
31349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31350 test -n "$tmp" && test -d "$tmp"
31353 tmp=./conf$$-$RANDOM
31354 (umask 077 && mkdir "$tmp")
31357 echo "$me: cannot create a temporary directory in ." >&2
31358 { (exit 1); exit 1; }
31362 # Set up the sed scripts for CONFIG_FILES section.
31365 # No need to generate the scripts if there are no CONFIG_FILES.
31366 # This happens for instance when ./config.status config.h
31367 if test -n "$CONFIG_FILES"; then
31371 # Create sed commands to just substitute file output variables.
31373 # Remaining file output variables are in a fragment that also has non-file
31379 for ac_last_try in false false false false false :; do
31380 cat >conf$$subs.sed <<_ACEOF
31381 SHELL!$SHELL$ac_delim
31382 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31383 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31384 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31385 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31386 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31387 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31388 exec_prefix!$exec_prefix$ac_delim
31389 prefix!$prefix$ac_delim
31390 program_transform_name!$program_transform_name$ac_delim
31391 bindir!$bindir$ac_delim
31392 sbindir!$sbindir$ac_delim
31393 libexecdir!$libexecdir$ac_delim
31394 datarootdir!$datarootdir$ac_delim
31395 datadir!$datadir$ac_delim
31396 sysconfdir!$sysconfdir$ac_delim
31397 sharedstatedir!$sharedstatedir$ac_delim
31398 localstatedir!$localstatedir$ac_delim
31399 includedir!$includedir$ac_delim
31400 oldincludedir!$oldincludedir$ac_delim
31401 docdir!$docdir$ac_delim
31402 infodir!$infodir$ac_delim
31403 htmldir!$htmldir$ac_delim
31404 dvidir!$dvidir$ac_delim
31405 pdfdir!$pdfdir$ac_delim
31406 psdir!$psdir$ac_delim
31407 libdir!$libdir$ac_delim
31408 localedir!$localedir$ac_delim
31409 mandir!$mandir$ac_delim
31410 DEFS!$DEFS$ac_delim
31411 ECHO_C!$ECHO_C$ac_delim
31412 ECHO_N!$ECHO_N$ac_delim
31413 ECHO_T!$ECHO_T$ac_delim
31414 LIBS!$LIBS$ac_delim
31415 build_alias!$build_alias$ac_delim
31416 host_alias!$host_alias$ac_delim
31417 target_alias!$target_alias$ac_delim
31418 BUILD_DIR!$BUILD_DIR$ac_delim
31419 TOP_DIR!$TOP_DIR$ac_delim
31420 TRUEPRG!$TRUEPRG$ac_delim
31421 FALSEPRG!$FALSEPRG$ac_delim
31422 VERSION!$VERSION$ac_delim
31423 DATE!$DATE$ac_delim
31424 LSMDATE!$LSMDATE$ac_delim
31425 BACULA!$BACULA$ac_delim
31426 post_host!$post_host$ac_delim
31428 CFLAGS!$CFLAGS$ac_delim
31429 LDFLAGS!$LDFLAGS$ac_delim
31430 CPPFLAGS!$CPPFLAGS$ac_delim
31431 ac_ct_CC!$ac_ct_CC$ac_delim
31432 EXEEXT!$EXEEXT$ac_delim
31433 OBJEXT!$OBJEXT$ac_delim
31435 CXXFLAGS!$CXXFLAGS$ac_delim
31436 ac_ct_CXX!$ac_ct_CXX$ac_delim
31438 GREP!$GREP$ac_delim
31439 EGREP!$EGREP$ac_delim
31440 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31441 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31442 INSTALL_DATA!$INSTALL_DATA$ac_delim
31443 RANLIB!$RANLIB$ac_delim
31448 ECHO!$ECHO$ac_delim
31452 OPENSSL!$OPENSSL$ac_delim
31455 MKISOFS!$MKISOFS$ac_delim
31456 PYTHON!$PYTHON$ac_delim
31457 GROWISOFS!$GROWISOFS$ac_delim
31458 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31459 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31460 PKGCONFIG!$PKGCONFIG$ac_delim
31461 QMAKE!$QMAKE$ac_delim
31462 QMAKEQT4!$QMAKEQT4$ac_delim
31463 WXCONFIG!$WXCONFIG$ac_delim
31464 WXFLAGS!$WXFLAGS$ac_delim
31465 CDRECORD!$CDRECORD$ac_delim
31466 PIDOF!$PIDOF$ac_delim
31468 ARFLAGS!$ARFLAGS$ac_delim
31469 MAKE_SHELL!$MAKE_SHELL$ac_delim
31470 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31471 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31472 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31473 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31474 build!$build$ac_delim
31477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31479 elif $ac_last_try; then
31480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31482 { (exit 1); exit 1; }; }
31484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31488 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31489 if test -n "$ac_eof"; then
31490 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31491 ac_eof=`expr $ac_eof + 1`
31494 cat >>$CONFIG_STATUS <<_ACEOF
31495 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31497 /^[ ]*@MCOMMON@[ ]*$/{
31503 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31504 s/^/s,@/; s/!/@,|#_!!_#|/
31507 s/'"$ac_delim"'$/,g/; t
31509 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31510 ' >>$CONFIG_STATUS <conf$$subs.sed
31511 rm -f conf$$subs.sed
31512 cat >>$CONFIG_STATUS <<_ACEOF
31518 for ac_last_try in false false false false false :; do
31519 cat >conf$$subs.sed <<_ACEOF
31520 build_cpu!$build_cpu$ac_delim
31521 build_vendor!$build_vendor$ac_delim
31522 build_os!$build_os$ac_delim
31523 host!$host$ac_delim
31524 host_cpu!$host_cpu$ac_delim
31525 host_vendor!$host_vendor$ac_delim
31526 host_os!$host_os$ac_delim
31527 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31528 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31529 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31530 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31531 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31532 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31533 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31534 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31535 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31536 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31537 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31538 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31539 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31540 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31541 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31542 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31543 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31544 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31545 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31546 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31547 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31548 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31549 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31550 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31551 SET_MAKE!$SET_MAKE$ac_delim
31552 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31553 USE_NLS!$USE_NLS$ac_delim
31554 MSGFMT!$MSGFMT$ac_delim
31555 GMSGFMT!$GMSGFMT$ac_delim
31556 XGETTEXT!$XGETTEXT$ac_delim
31557 MSGMERGE!$MSGMERGE$ac_delim
31558 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31559 LIBICONV!$LIBICONV$ac_delim
31560 LTLIBICONV!$LTLIBICONV$ac_delim
31561 INTLLIBS!$INTLLIBS$ac_delim
31562 LIBINTL!$LIBINTL$ac_delim
31563 LTLIBINTL!$LTLIBINTL$ac_delim
31564 POSUB!$POSUB$ac_delim
31565 GLIBC2!$GLIBC2$ac_delim
31566 ALLOCA!$ALLOCA$ac_delim
31567 GLIBC21!$GLIBC21$ac_delim
31568 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31569 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31570 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31571 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31572 INTLBISON!$INTLBISON$ac_delim
31573 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31574 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31575 CATOBJEXT!$CATOBJEXT$ac_delim
31576 DATADIRNAME!$DATADIRNAME$ac_delim
31577 INSTOBJEXT!$INSTOBJEXT$ac_delim
31578 GENCAT!$GENCAT$ac_delim
31579 INTLOBJS!$INTLOBJS$ac_delim
31580 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31581 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31582 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31583 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31584 GNOME_LIBS!$GNOME_LIBS$ac_delim
31585 GNOME_DIR!$GNOME_DIR$ac_delim
31586 BAT_DIR!$BAT_DIR$ac_delim
31587 QWT_INC!$QWT_INC$ac_delim
31588 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31589 QWT_LIB!$QWT_LIB$ac_delim
31591 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31592 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31593 WX_DIR!$WX_DIR$ac_delim
31594 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31595 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31596 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31597 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31598 STATIC_FD!$STATIC_FD$ac_delim
31599 STATIC_SD!$STATIC_SD$ac_delim
31600 STATIC_DIR!$STATIC_DIR$ac_delim
31601 STATIC_CONS!$STATIC_CONS$ac_delim
31602 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31603 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31604 ALL_DIRS!$ALL_DIRS$ac_delim
31605 DIRD_DIR!$DIRD_DIR$ac_delim
31606 DIR_TOOLS!$DIR_TOOLS$ac_delim
31607 STORED_DIR!$STORED_DIR$ac_delim
31608 CONS_INC!$CONS_INC$ac_delim
31609 CONS_OBJ!$CONS_OBJ$ac_delim
31610 CONS_SRC!$CONS_SRC$ac_delim
31611 CONS_LIBS!$CONS_LIBS$ac_delim
31612 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31613 READLINE_SRC!$READLINE_SRC$ac_delim
31614 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31615 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31616 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31619 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31621 elif $ac_last_try; then
31622 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31623 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31624 { (exit 1); exit 1; }; }
31626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31630 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31631 if test -n "$ac_eof"; then
31632 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31633 ac_eof=`expr $ac_eof + 1`
31636 cat >>$CONFIG_STATUS <<_ACEOF
31637 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31641 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31642 s/^/s,@/; s/!/@,|#_!!_#|/
31645 s/'"$ac_delim"'$/,g/; t
31647 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31648 ' >>$CONFIG_STATUS <conf$$subs.sed
31649 rm -f conf$$subs.sed
31650 cat >>$CONFIG_STATUS <<_ACEOF
31656 for ac_last_try in false false false false false :; do
31657 cat >conf$$subs.sed <<_ACEOF
31658 OPENSSL_INC!$OPENSSL_INC$ac_delim
31659 working_dir!$working_dir$ac_delim
31660 archivedir!$archivedir$ac_delim
31661 scriptdir!$scriptdir$ac_delim
31662 plugindir!$plugindir$ac_delim
31663 dump_email!$dump_email$ac_delim
31664 job_email!$job_email$ac_delim
31665 smtp_host!$smtp_host$ac_delim
31666 piddir!$piddir$ac_delim
31667 subsysdir!$subsysdir$ac_delim
31668 baseport!$baseport$ac_delim
31669 dir_port!$dir_port$ac_delim
31670 fd_port!$fd_port$ac_delim
31671 sd_port!$sd_port$ac_delim
31672 dir_password!$dir_password$ac_delim
31673 fd_password!$fd_password$ac_delim
31674 sd_password!$sd_password$ac_delim
31675 mon_dir_password!$mon_dir_password$ac_delim
31676 mon_fd_password!$mon_fd_password$ac_delim
31677 mon_sd_password!$mon_sd_password$ac_delim
31678 db_name!$db_name$ac_delim
31679 db_user!$db_user$ac_delim
31680 db_password!$db_password$ac_delim
31681 db_port!$db_port$ac_delim
31682 dir_user!$dir_user$ac_delim
31683 dir_group!$dir_group$ac_delim
31684 sd_user!$sd_user$ac_delim
31685 sd_group!$sd_group$ac_delim
31686 fd_user!$fd_user$ac_delim
31687 fd_group!$fd_group$ac_delim
31688 SBINPERM!$SBINPERM$ac_delim
31689 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31690 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31691 SQL_BINDIR!$SQL_BINDIR$ac_delim
31692 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31693 uncomment_dbi!$uncomment_dbi$ac_delim
31694 DB_PROG!$DB_PROG$ac_delim
31695 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31696 cats!$cats$ac_delim
31697 DB_TYPE!$DB_TYPE$ac_delim
31698 GETCONF!$GETCONF$ac_delim
31699 XMKMF!$XMKMF$ac_delim
31700 X_CFLAGS!$X_CFLAGS$ac_delim
31701 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31702 X_LIBS!$X_LIBS$ac_delim
31703 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31704 LIBOBJS!$LIBOBJS$ac_delim
31705 FDLIBS!$FDLIBS$ac_delim
31706 DEBUG!$DEBUG$ac_delim
31707 DINCLUDE!$DINCLUDE$ac_delim
31708 DLIB!$DLIB$ac_delim
31709 DB_LIBS!$DB_LIBS$ac_delim
31710 WCFLAGS!$WCFLAGS$ac_delim
31711 WLDFLAGS!$WLDFLAGS$ac_delim
31712 WRAPLIBS!$WRAPLIBS$ac_delim
31713 OBJLIST!$OBJLIST$ac_delim
31714 hostname!$hostname$ac_delim
31715 TAPEDRIVE!$TAPEDRIVE$ac_delim
31716 PSCMD!$PSCMD$ac_delim
31717 WIN32!$WIN32$ac_delim
31718 MACOSX!$MACOSX$ac_delim
31719 DISTNAME!$DISTNAME$ac_delim
31720 DISTVER!$DISTVER$ac_delim
31721 LTLIBOBJS!$LTLIBOBJS$ac_delim
31724 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
31726 elif $ac_last_try; then
31727 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31728 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31729 { (exit 1); exit 1; }; }
31731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31735 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31736 if test -n "$ac_eof"; then
31737 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31738 ac_eof=`expr $ac_eof + 1`
31741 cat >>$CONFIG_STATUS <<_ACEOF
31742 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31746 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31747 s/^/s,@/; s/!/@,|#_!!_#|/
31750 s/'"$ac_delim"'$/,g/; t
31752 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31753 ' >>$CONFIG_STATUS <conf$$subs.sed
31754 rm -f conf$$subs.sed
31755 cat >>$CONFIG_STATUS <<_ACEOF
31762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31764 # trailing colons and then remove the whole line if VPATH becomes empty
31765 # (actually we leave an empty line to preserve line numbers).
31766 if test "x$srcdir" = x.; then
31767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31768 s/:*\$(srcdir):*/:/
31769 s/:*\${srcdir}:*/:/
31771 s/^\([^=]*=[ ]*\):*/\1/
31777 cat >>$CONFIG_STATUS <<\_ACEOF
31778 fi # test -n "$CONFIG_FILES"
31781 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31784 :[FHLC]) ac_mode=$ac_tag; continue;;
31786 case $ac_mode$ac_tag in
31788 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31789 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31790 { (exit 1); exit 1; }; };;
31791 :[FH]-) ac_tag=-:-;;
31792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31809 -) ac_f="$tmp/stdin";;
31810 *) # Look for the file first in the build tree, then in the source tree
31811 # (if the path is not absolute). The absolute path cannot be DOS-style,
31812 # because $ac_f cannot contain `:'.
31816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31818 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31819 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31820 { (exit 1); exit 1; }; };;
31822 ac_file_inputs="$ac_file_inputs $ac_f"
31825 # Let's still pretend it is `configure' which instantiates (i.e., don't
31826 # use $as_me), people would be surprised to read:
31827 # /* config.h. Generated by config.status. */
31828 configure_input="Generated from "`IFS=:
31829 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31830 if test x"$ac_file" != x-; then
31831 configure_input="$ac_file. $configure_input"
31832 { echo "$as_me:$LINENO: creating $ac_file" >&5
31833 echo "$as_me: creating $ac_file" >&6;}
31837 *:-:* | *:-) cat >"$tmp/stdin";;
31842 ac_dir=`$as_dirname -- "$ac_file" ||
31843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31844 X"$ac_file" : 'X\(//\)[^/]' \| \
31845 X"$ac_file" : 'X\(//\)$' \| \
31846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31852 /^X\(\/\/\)[^/].*/{
31867 -*) as_dir=./$as_dir;;
31869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31874 *) as_qdir=$as_dir;;
31876 as_dirs="'$as_qdir' $as_dirs"
31877 as_dir=`$as_dirname -- "$as_dir" ||
31878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31879 X"$as_dir" : 'X\(//\)[^/]' \| \
31880 X"$as_dir" : 'X\(//\)$' \| \
31881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31887 /^X\(\/\/\)[^/].*/{
31900 test -d "$as_dir" && break
31902 test -z "$as_dirs" || eval "mkdir $as_dirs"
31903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31905 { (exit 1); exit 1; }; }; }
31909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31912 # A ".." for each directory in $ac_dir_suffix.
31913 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31914 case $ac_top_builddir_sub in
31915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31919 ac_abs_top_builddir=$ac_pwd
31920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31921 # for backward compatibility:
31922 ac_top_builddir=$ac_top_build_prefix
31925 .) # We are building in place.
31927 ac_top_srcdir=$ac_top_builddir_sub
31928 ac_abs_top_srcdir=$ac_pwd ;;
31929 [\\/]* | ?:[\\/]* ) # Absolute name.
31930 ac_srcdir=$srcdir$ac_dir_suffix;
31931 ac_top_srcdir=$srcdir
31932 ac_abs_top_srcdir=$srcdir ;;
31933 *) # Relative name.
31934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31935 ac_top_srcdir=$ac_top_build_prefix$srcdir
31936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31953 cat >>$CONFIG_STATUS <<\_ACEOF
31954 # If the template does not know about datarootdir, expand it.
31955 # FIXME: This hack should be removed a few years after 2.60.
31956 ac_datarootdir_hack=; ac_datarootdir_seen=
31958 case `sed -n '/datarootdir/ {
31967 ' $ac_file_inputs` in
31968 *datarootdir*) ac_datarootdir_seen=yes;;
31969 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31970 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31971 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31973 cat >>$CONFIG_STATUS <<_ACEOF
31974 ac_datarootdir_hack='
31975 s&@datadir@&$datadir&g
31976 s&@docdir@&$docdir&g
31977 s&@infodir@&$infodir&g
31978 s&@localedir@&$localedir&g
31979 s&@mandir@&$mandir&g
31980 s&\\\${datarootdir}&$datarootdir&g' ;;
31984 # Neutralize VPATH when `$srcdir' = `.'.
31985 # Shell code in configure.ac might set extrasub.
31986 # FIXME: do we really want to maintain this feature?
31987 cat >>$CONFIG_STATUS <<_ACEOF
31991 cat >>$CONFIG_STATUS <<\_ACEOF
31993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31994 s&@configure_input@&$configure_input&;t t
31995 s&@top_builddir@&$ac_top_builddir_sub&;t t
31996 s&@srcdir@&$ac_srcdir&;t t
31997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31998 s&@top_srcdir@&$ac_top_srcdir&;t t
31999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32000 s&@builddir@&$ac_builddir&;t t
32001 s&@abs_builddir@&$ac_abs_builddir&;t t
32002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32003 s&@INSTALL@&$ac_INSTALL&;t t
32004 $ac_datarootdir_hack
32005 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32010 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32011 which seems to be undefined. Please make sure it is defined." >&5
32012 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32013 which seems to be undefined. Please make sure it is defined." >&2;}
32017 -) cat "$tmp/out"; rm -f "$tmp/out";;
32018 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32027 # Transform confdefs.h into a sed script `conftest.defines', that
32028 # substitutes the proper values into config.h.in to produce config.h.
32029 rm -f conftest.defines conftest.tail
32030 # First, append a space to every undef/define line, to ease matching.
32031 echo 's/$/ /' >conftest.defines
32032 # Then, protect against being on the right side of a sed subst, or in
32033 # an unquoted here document, in config.status. If some macros were
32034 # called several times there might be several #defines for the same
32035 # symbol, which is useless. But do not sort them, since the last
32036 # AC_DEFINE must be honored.
32037 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32038 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32039 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32040 # PARAMS is the parameter list in the macro definition--in most cases, it's
32041 # just an empty string.
32042 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32043 ac_dB='\\)[ (].*,\\1define\\2'
32051 s/^[ ]*#[ ]*define[ ][ ]*//
32056 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32057 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32058 ' >>conftest.defines
32060 # Remove the space that was appended to ease matching.
32061 # Then replace #undef with comments. This is necessary, for
32062 # example, in the case of _POSIX_SOURCE, which is predefined and required
32063 # on some systems where configure will not decide to define it.
32064 # (The regexp can be short, since the line contains either #define or #undef.)
32066 s,^[ #]*u.*,/* & */,' >>conftest.defines
32068 # Break up conftest.defines:
32069 ac_max_sed_lines=50
32071 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32072 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32073 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32075 ac_in='$ac_file_inputs'
32076 ac_out='"$tmp/out1"'
32077 ac_nxt='"$tmp/out2"'
32081 # Write a here document:
32082 cat >>$CONFIG_STATUS <<_ACEOF
32083 # First, check the format of the line:
32084 cat >"\$tmp/defines.sed" <<\\CEOF
32085 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32086 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32090 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32092 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32093 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32094 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32095 grep . conftest.tail >/dev/null || break
32096 rm -f conftest.defines
32097 mv conftest.tail conftest.defines
32099 rm -f conftest.defines conftest.tail
32101 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32102 cat >>$CONFIG_STATUS <<\_ACEOF
32103 if test x"$ac_file" != x-; then
32104 echo "/* $configure_input */" >"$tmp/config.h"
32105 cat "$ac_result" >>"$tmp/config.h"
32106 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32108 echo "$as_me: $ac_file is unchanged" >&6;}
32111 mv "$tmp/config.h" $ac_file
32114 echo "/* $configure_input */"
32120 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32121 echo "$as_me: executing $ac_file commands" >&6;}
32126 case $ac_file$ac_mode in
32128 for ac_file in $CONFIG_FILES; do
32129 # Support "outfile[:infile[:infile...]]"
32131 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32133 # PO directories have a Makefile.in generated from Makefile.in.in.
32134 case "$ac_file" in */Makefile.in)
32135 # Adjust a relative srcdir.
32136 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32137 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32138 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32139 # In autoconf-2.13 it is called $ac_given_srcdir.
32140 # In autoconf-2.50 it is called $srcdir.
32141 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32142 case "$ac_given_srcdir" in
32143 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32144 /*) top_srcdir="$ac_given_srcdir" ;;
32145 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32147 # Treat a directory as a PO directory if and only if it has a
32148 # POTFILES.in file. This allows packages to have multiple PO
32149 # directories under different names or in different locations.
32150 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32151 rm -f "$ac_dir/POTFILES"
32152 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32153 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32154 POMAKEFILEDEPS="POTFILES.in"
32155 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32156 # on $ac_dir but don't depend on user-specified configuration
32158 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32159 # The LINGUAS file contains the set of available languages.
32160 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32161 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32163 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32164 # Hide the ALL_LINGUAS assigment from automake.
32165 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32166 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32168 # The set of available languages was given in configure.in.
32169 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32172 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32173 # Compute UPDATEPOFILES
32174 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32175 # Compute DUMMYPOFILES
32176 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32178 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32179 case "$ac_given_srcdir" in
32181 *) srcdirpre='$(srcdir)/' ;;
32187 for lang in $ALL_LINGUAS; do
32188 POFILES="$POFILES $srcdirpre$lang.po"
32189 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32190 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32191 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32193 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32194 # environment variable.
32196 if test -n "$ALL_LINGUAS"; then
32197 for presentlang in $ALL_LINGUAS; do
32199 if test "%UNSET%" != "$LINGUAS"; then
32200 desiredlanguages="$LINGUAS"
32202 desiredlanguages="$ALL_LINGUAS"
32204 for desiredlang in $desiredlanguages; do
32205 # Use the presentlang catalog if desiredlang is
32206 # a. equal to presentlang, or
32207 # b. a variant of presentlang (because in this case,
32208 # presentlang can be used as a fallback for messages
32209 # which are not translated in the desiredlang catalog).
32210 case "$desiredlang" in
32211 "$presentlang"*) useit=yes;;
32214 if test $useit = yes; then
32215 INST_LINGUAS="$INST_LINGUAS $presentlang"
32220 if test -n "$INST_LINGUAS"; then
32221 for lang in $INST_LINGUAS; do
32222 CATALOGS="$CATALOGS $lang.gmo"
32225 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32226 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"
32227 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32228 if test -f "$f"; then
32230 *.orig | *.bak | *~) ;;
32231 *) cat "$f" >> "$ac_dir/Makefile" ;;
32246 { (exit 0); exit 0; }
32248 chmod +x $CONFIG_STATUS
32249 ac_clean_files=$ac_clean_files_save
32252 # configure is writing to config.log, and then calls config.status.
32253 # config.status does its own redirection, appending to config.log.
32254 # Unfortunately, on DOS this fails, as config.log is still kept open
32255 # by configure, so config.status won't be able to write to it; its
32256 # output is simply discarded. So we exec the FD to /dev/null,
32257 # effectively closing config.log, so it can be properly (re)opened and
32258 # appended to by config.status. When coming back to configure, we
32259 # need to make the FD available again.
32260 if test "$no_create" != yes; then
32262 ac_config_status_args=
32263 test "$silent" = yes &&
32264 ac_config_status_args="$ac_config_status_args --quiet"
32266 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32269 # would make configure fail if this is the last instruction.
32270 $ac_cs_success || { (exit 1); exit 1; }
32274 if test "${support_bat}" = "yes" ; then
32275 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32276 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32282 if test "x$QMAKEQT4" != "xnone"; then
32287 chmod 755 install_conf_file build-depkgs-qt-console
32288 echo "Creating bat Makefile"
32294 echo "Doing make of dependencies"
32295 ${MAKE:-make} depend
32298 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32299 chmod 755 dvd-handler dvd-simulator
32300 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32304 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32305 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32309 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32310 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32312 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32313 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32315 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32316 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32318 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32319 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32321 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32322 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32324 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32325 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32327 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32328 chmod 755 $c/sqlite
32331 chmod 755 src/win32/build-depkgs-mingw32
32335 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32336 largefile_support="yes"
32340 # A whole lot of hand springs to get the compiler version.
32341 # This is because gcc changed the output in version 3.0
32343 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32344 if test "x${CCVERSION}" = "x" ; then
32345 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32347 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32348 if test x"${CXXVERSION}" = x ; then
32349 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32352 if test "x${subsysdir}" = "x${sbindir}" ; then
32355 echo "You have set --sbindir and --with-subsys-dir"
32356 echo " both equal to: ${subsysdir} "
32357 echo " This is not permitted. Please reconfigure."
32359 echo "Aborting configuration ..."
32365 if test "x${db_type}" = "xInternal" ; then
32368 echo "You have not specified either --enable-client-only or one of the"
32369 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32370 echo " This is not permitted. Please reconfigure."
32372 echo "Aborting the configuration ..."
32379 Configuration on `date`:
32381 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32382 Bacula version: ${BACULA} ${VERSION} (${DATE})
32383 Source code location: ${srcdir}
32384 Install binaries: ${sbindir}
32385 Install config files: ${sysconfdir}
32386 Scripts directory: ${scriptdir}
32387 Archive directory: ${archivedir}
32388 Working directory: ${working_dir}
32389 PID directory: ${piddir}
32390 Subsys directory: ${subsysdir}
32391 Man directory: ${mandir}
32392 Data directory: ${datadir}
32393 C Compiler: ${CC} ${CCVERSION}
32394 C++ Compiler: ${CXX} ${CXXVERSION}
32395 Compiler flags: ${WCFLAGS} ${CFLAGS}
32396 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32398 Statically Linked Tools: ${support_static_tools}
32399 Statically Linked FD: ${support_static_fd}
32400 Statically Linked SD: ${support_static_sd}
32401 Statically Linked DIR: ${support_static_dir}
32402 Statically Linked CONS: ${support_static_cons}
32403 Database type: ${db_type}
32404 Database port: ${db_port}
32405 Database lib: ${DB_LIBS}
32406 Database name: ${db_name}
32407 Database user: ${db_user}
32409 Job Output Email: ${job_email}
32410 Traceback Email: ${dump_email}
32411 SMTP Host Address: ${smtp_host}
32413 Director Port: ${dir_port}
32414 File daemon Port: ${fd_port}
32415 Storage daemon Port: ${sd_port}
32417 Director User: ${dir_user}
32418 Director Group: ${dir_group}
32419 Storage Daemon User: ${sd_user}
32420 Storage DaemonGroup: ${sd_group}
32421 File Daemon User: ${fd_user}
32422 File Daemon Group: ${fd_group}
32424 SQL binaries Directory ${SQL_BINDIR}
32426 Large file support: $largefile_support
32427 Bacula conio support: ${got_conio} ${CONS_LIBS}
32428 readline support: ${got_readline} ${PRTREADLINE_SRC}
32429 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32430 TLS support: ${support_tls}
32431 Encryption support: ${support_crypto}
32432 ZLIB support: ${have_zlib}
32433 enable-smartalloc: ${support_smartalloc}
32434 bat support: ${support_bat} ${QWT_LDFLAGS}
32435 enable-gnome: ${support_gnome} ${gnome_version}
32436 enable-bwx-console: ${support_wx_console} ${wx_version}
32437 enable-tray-monitor: ${support_tray_monitor}
32438 client-only: ${build_client_only}
32439 build-dird: ${build_dird}
32440 build-stored: ${build_stored}
32441 ACL support: ${have_acl}
32442 Python support: ${support_python} ${PYTHON_LIBS}
32443 Batch insert enabled: ${support_batch_insert}