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
726 HAVE_FREEBSD_OS_FALSE
730 HAVE_OPENBSD_OS_FALSE
761 BUILD_INCLUDED_LIBINTL
768 INTL_LIBTOOL_SUFFIX_PREFIX
782 TRAY_MONITOR_CPPFLAGS
869 ac_subst_files='MCOMMON'
870 ac_precious_vars='build_alias
887 # Initialize some variables set by options.
889 ac_init_version=false
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name=s,x,x,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE}'
924 infodir='${datarootdir}/info'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 # Accept the important Cygnus configure options, so we can diagnose typos.
951 case $ac_dashdash$ac_option in
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
973 cache_file=config.cache ;;
975 -datadir | --datadir | --datadi | --datad)
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
987 -disable-* | --disable-*)
988 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
991 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
992 { (exit 1); exit 1; }; }
993 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
994 eval enable_$ac_feature=no ;;
996 -docdir | --docdir | --docdi | --doc | --do)
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1006 -enable-* | --enable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) { echo "$as_me: error: unrecognized option: $ac_option
1240 Try \`$0 --help' for more information." >&2
1241 { (exit 1); exit 1; }; }
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1249 { (exit 1); exit 1; }; }
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 { echo "$as_me: error: missing argument to $ac_option" >&2
1267 { (exit 1); exit 1; }; }
1270 # Be sure to have absolute directory names.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1282 { (exit 1); exit 1; }; }
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 { echo "$as_me: error: Working directory cannot be determined" >&2
1313 { (exit 1); exit 1; }; }
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 { echo "$as_me: error: pwd does not report name of working directory" >&2
1316 { (exit 1); exit 1; }; }
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$0" ||
1324 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$0" : 'X\(//\)[^/]' \| \
1326 X"$0" : 'X\(//\)$' \| \
1327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1356 { (exit 1); exit 1; }; }
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1361 { (exit 1); exit 1; }; }
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1445 --x-includes=DIR X include files are in DIR
1446 --x-libraries=DIR X library files are in DIR
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 if test -n "$ac_init_help"; then
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --disable-nls do not use Native Language Support
1462 --disable-rpath do not hardcode runtime library paths
1463 --enable-gnome enable build of bgnome-console GUI disabled
1464 --enable-bat enable build of bat Qt4 GUI disabled
1465 --enable-bwx-console enable build of wxWidgets console disabled
1466 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1467 --enable-smartalloc enable smartalloc debugging support disabled
1468 --enable-static-tools enable static tape tools disabled
1469 --enable-static-fd enable static File daemon disabled
1470 --enable-static-sd enable static Storage daemon disabled
1471 --enable-static-dir enable static Director disabled
1472 --enable-static-cons enable static Console disabled
1473 --enable-client-only build client (File daemon) only disabled
1474 --enable-build-dird enable building of dird (Director) enabled
1475 --enable-build-stored enable building of stored (Storage daemon) enabled
1476 --disable-conio disable conio support enabled
1478 --enable-ipv6 enable ipv6 support enabled
1480 --disable-readline disable readline support disable
1482 --enable-batch-insert enable the DB batch insert code disabled
1483 --enable-batch-insert enable the DB batch insert code disabled
1484 --disable-largefile omit support for large files
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-gnu-ld assume the C compiler uses GNU ld default=no
1490 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1491 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1492 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1493 --without-libintl-prefix don't search for libintl in includedir and libdir
1494 --with-included-gettext use the GNU gettext library included here
1495 --with-qwt[=DIR] specify qwt library directory
1496 --with-readline[=DIR] specify readline library directory
1498 --with-python[=DIR] Include Python support. DIR is the Python base
1499 install directory, default is to search through
1500 a number of common places for the Python files.
1501 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1502 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1503 --with-working-dir=PATH specify path of Bacula working directory
1504 --with-archivedir=PATH specify path of SD archive directory
1505 --with-scriptdir=PATH specify path of Bacula scripts directory
1506 --with-plugindir=PATH specify path of Bacula plugins directory
1507 --with-dump-email=EMAIL dump email address
1508 --with-job-email=EMAIL job output email address
1509 --with-smtp-host=HOST SMTP mail host address
1510 --with-pid-dir=PATH specify location of Bacula pid files
1511 --with-subsys-dir=PATH specify location of Bacula subsys file
1512 --with-baseport=PORT specify base port address for daemons
1513 --with-dir-password=PASSWORD specify Director's password
1514 --with-fd-password=PASSWORD specify Client's password
1515 --with-sd-password=PASSWORD specify Storage daemon's password
1516 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1517 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1518 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1519 --with-db-name=DBNAME specify database name (default bacula)
1520 --with-db-user=UNAME specify database user (default bacula)
1521 --with-db-password=UNAME specify database password (default *none*)
1522 --with-db-port=DBPORT specify a database port (default null)
1523 --with-dir-user=USER specify user for Director daemon
1524 --with-dir-group=GROUP specify group for Director daemon
1525 --with-sd-user=USER specify user for Storage daemon
1526 --with-sd-group=GROUP specify group for Storage daemon
1527 --with-fd-user=USER specify user for File daemon
1528 --with-fd-group=GROUP specify group for File daemon
1529 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1530 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1531 base install directory, defaults to /usr/local/pgsql
1533 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1534 install directory, default is to search through
1535 a number of common places for the MySQL files.
1537 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1538 install directory, default is to search through
1539 a number of common places for the MySQL files.
1541 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1542 install directory, default is to search through
1543 a number of common places for the SQLite3 files.
1545 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1546 install directory, default is to search through
1547 a number of common places for the SQLite files.
1549 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1550 install directory, default is to search through
1551 a number of common places for the DBI files.
1553 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1554 the one DBI driver like Mysql, Postgresql, others.
1555 Default is to not configure any driver.
1556 --with-x use the X Window System
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1569 WXCONFIG wx-config command. On some systems, you must set it to
1570 wx-config-2.6 to use wxWidgets 2.6.
1571 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1572 XMKMF Path to xmkmf, Makefile generator for X Window System
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1604 .) # We are building in place.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1638 generated by GNU Autoconf 2.61
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1651 It was created by $as_me, which was
1652 generated by GNU Autoconf 2.61. Invocation command line was
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 echo "PATH: $as_dir"
1704 # Keep a trace of the command line.
1705 # Strip out --no-create and --no-recursion so they do not pile up.
1706 # Strip out --silent because we don't want to record it for future runs.
1707 # Also quote any args containing shell meta-characters.
1708 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_must_keep_next=false
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1723 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741 -* ) ac_must_keep_next=true ;;
1744 ac_configure_args="$ac_configure_args '$ac_arg'"
1749 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1750 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752 # When interrupted or exit'd, cleanup temporary files, and complete
1753 # config.log. We remove comments because anyway the quotes in there
1754 # would cause problems or look ugly.
1755 # WARNING: Use '\'' to represent an apostrophe within the trap.
1756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757 trap 'exit_status=$?
1758 # Save into config.log some information that might help in debugging.
1763 ## ---------------- ##
1764 ## Cache variables. ##
1765 ## ---------------- ##
1768 # The following way of writing the cache mishandles newlines in values,
1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1771 eval ac_val=\$$ac_var
1775 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1776 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779 _ | IFS | as_nl) ;; #(
1780 *) $as_unset $ac_var ;;
1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786 *${as_nl}ac_space=\ *)
1788 "s/'\''/'\''\\\\'\'''\''/g;
1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1805 for ac_var in $ac_subst_vars
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 echo "$ac_var='\''$ac_val'\''"
1815 if test -n "$ac_subst_files"; then
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1822 for ac_var in $ac_subst_files
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 echo "$ac_var='\''$ac_val'\''"
1833 if test -s confdefs.h; then
1843 test "$ac_signal" != 0 &&
1844 echo "$as_me: caught signal $ac_signal"
1845 echo "$as_me: exit $exit_status"
1847 rm -f core *.core core.conftest.* &&
1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 for ac_signal in 1 2 13 15; do
1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer explicitly selected file to automatically selected ones.
1888 if test -n "$CONFIG_SITE"; then
1889 set x "$CONFIG_SITE"
1890 elif test "x$prefix" != xNONE; then
1891 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 set x "$ac_default_prefix/share/config.site" \
1894 "$ac_default_prefix/etc/config.site"
1899 if test -r "$ac_site_file"; then
1900 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1901 echo "$as_me: loading site script $ac_site_file" >&6;}
1902 sed 's/^/| /' "$ac_site_file" >&5
1907 if test -r "$cache_file"; then
1908 # Some versions of bash will fail to source /dev/null (special
1909 # files actually), so we avoid doing that.
1910 if test -f "$cache_file"; then
1911 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1912 echo "$as_me: loading cache $cache_file" >&6;}
1914 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1915 *) . "./$cache_file";;
1919 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1920 echo "$as_me: creating cache $cache_file" >&6;}
1924 # Check that the precious variables saved in the cache have kept the same
1926 ac_cache_corrupted=false
1927 for ac_var in $ac_precious_vars; do
1928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1929 eval ac_new_set=\$ac_env_${ac_var}_set
1930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1931 eval ac_new_val=\$ac_env_${ac_var}_value
1932 case $ac_old_set,$ac_new_set in
1934 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1938 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1943 if test "x$ac_old_val" != "x$ac_new_val"; then
1944 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1947 echo "$as_me: former value: $ac_old_val" >&2;}
1948 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1949 echo "$as_me: current value: $ac_new_val" >&2;}
1950 ac_cache_corrupted=:
1953 # Pass precious variables to config.status.
1954 if test "$ac_new_set" = set; then
1956 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 *) ac_arg=$ac_var=$ac_new_val ;;
1959 case " $ac_configure_args " in
1960 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1961 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965 if $ac_cache_corrupted; then
1966 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1967 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1968 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1969 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1970 { (exit 1); exit 1; }; }
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2004 if test -f "$ac_dir/install-sh"; then
2006 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 elif test -f "$ac_dir/install.sh"; then
2010 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 elif test -f "$ac_dir/shtool"; then
2014 ac_install_sh="$ac_aux_dir/shtool install -c"
2018 if test -z "$ac_aux_dir"; then
2019 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2020 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2021 { (exit 1); exit 1; }; }
2024 # These three variables are undocumented and unsupported,
2025 # and are intended to be withdrawn in a future Autoconf release.
2026 # They can cause serious problems if a builder's source tree is in a directory
2027 # whose full name contains unusual characters.
2028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2033 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 TRUEPRG=$ac_cv_path_TRUEPRG
2072 if test -n "$TRUEPRG"; then
2073 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2074 echo "${ECHO_T}$TRUEPRG" >&6; }
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2081 test -n "$TRUEPRG" && break
2083 test -n "$TRUEPRG" || TRUEPRG=":"
2085 for ac_prog in false
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 FALSEPRG=$ac_cv_path_FALSEPRG
2118 if test -n "$FALSEPRG"; then
2119 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2120 echo "${ECHO_T}$FALSEPRG" >&6; }
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2127 test -n "$FALSEPRG" && break
2129 test -n "$FALSEPRG" || FALSEPRG=":"
2133 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2134 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2135 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2136 echo "configuring for bacula $VERSION ($DATE)"
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 if test -n "$CC"; then
2175 { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216 echo "${ECHO_T}$ac_ct_CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2225 case $cross_compiling:$ac_tool_warned in
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet. If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2328 if test -n "$CC"; then
2329 { echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CC"; then
2371 { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$CC" && break
2382 if test -z "$CC"; then
2384 for ac_prog in cl.exe
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2423 test -n "$ac_ct_CC" && break
2426 if test "x$ac_ct_CC" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2446 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2452 # Provide some information about the compiler.
2453 echo "$as_me:$LINENO: checking for C compiler version" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (ac_try="$ac_compiler --version >&5"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler --version >&5") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_compiler -v >&5") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2475 { (ac_try="$ac_compiler -V >&5"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compiler -V >&5") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2506 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2510 # List of possible output files, starting from the most likely.
2511 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512 # only as a last resort. b.out is created by i960 compilers.
2513 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2515 # The IRIX 6 linker writes into existing files which may not be
2516 # executable, retaining their permissions. Remove them first so a
2517 # subsequent execution test works.
2519 for ac_file in $ac_files
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2528 if { (ac_try="$ac_link_default"
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link_default") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2541 # so that the user can short-circuit this test for compilers unknown to
2543 for ac_file in $ac_files ''
2545 test -f "$ac_file" || continue
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2550 # We found the default executable, but exeext='' is most
2554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 # We set ac_cv_exeext here because the later test for it is not
2559 # safe: cross compilers may not add the suffix if given an `-o'
2560 # argument, so we may need to know it at that point already.
2561 # Even if this section looks crufty: it has the advantage of
2568 test "$ac_cv_exeext" = no && ac_cv_exeext=
2574 { echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6; }
2576 if test -z "$ac_file"; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584 { (exit 77); exit 77; }; }
2587 ac_exeext=$ac_cv_exeext
2589 # Check that the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596 if { ac_try='./$ac_file'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 if test "$cross_compiling" = maybe; then
2611 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }
2621 { echo "$as_me:$LINENO: result: yes" >&5
2622 echo "${ECHO_T}yes" >&6; }
2624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 # Check that the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2629 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2630 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2631 echo "${ECHO_T}$cross_compiling" >&6; }
2633 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2634 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2635 if { (ac_try="$ac_link"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_link") 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; then
2645 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2647 # work properly (i.e., refer to `conftest.exe'), while it won't with
2649 for ac_file in conftest.exe conftest conftest.*; do
2650 test -f "$ac_file" || continue
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest$ac_cv_exeext
2667 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2673 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.o conftest.obj
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in conftest.o conftest.obj conftest.*; do
2705 test -f "$ac_file" || continue;
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2729 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.$ac_objext; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2783 GCC=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CFLAGS=${CFLAGS+set}
2785 ac_save_CFLAGS=$CFLAGS
2786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 ac_save_c_werror_flag=$ac_c_werror_flag
2792 ac_c_werror_flag=yes
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 ac_c_werror_flag=$ac_save_c_werror_flag
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924 CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926 if test "$GCC" = yes; then
2932 if test "$GCC" = yes; then
2938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 ac_cv_prog_cc_c89=no
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2953 #include <sys/types.h>
2954 #include <sys/stat.h>
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2969 s = g (p, va_arg (v,int));
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2975 function prototypes and stuff, but not '\xHH' hex character constants.
2976 These don't provoke an error unfortunately, instead are silently treated
2977 as 'x'. The following induces an error, until -std is added to get
2978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2979 array size at least. It's necessary to write '\x00'==0 to get something
2980 that's true only with -std. */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984 inside strings and character constants. */
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 CC="$ac_save_CC $ac_arg"
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_cv_prog_cc_c89=$ac_arg
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext
3032 test "x$ac_cv_prog_cc_c89" != "xno" && break
3034 rm -f conftest.$ac_ext
3039 case "x$ac_cv_prog_cc_c89" in
3041 { echo "$as_me:$LINENO: result: none needed" >&5
3042 echo "${ECHO_T}none needed" >&6; } ;;
3044 { echo "$as_me:$LINENO: result: unsupported" >&5
3045 echo "${ECHO_T}unsupported" >&6; } ;;
3047 CC="$CC $ac_cv_prog_cc_c89"
3048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_cpp='$CXXCPP $CPPFLAGS'
3061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3064 if test -z "$CXX"; then
3065 if test -n "$CCC"; then
3068 if test -n "$ac_tool_prefix"; then
3069 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CXX+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$CXX"; then
3079 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CXX"; then
3100 { echo "$as_me:$LINENO: result: $CXX" >&5
3101 echo "${ECHO_T}$CXX" >&6; }
3103 { echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6; }
3108 test -n "$CXX" && break
3111 if test -z "$CXX"; then
3113 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$ac_ct_CXX"; then
3123 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_ac_ct_CXX="$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3143 if test -n "$ac_ct_CXX"; then
3144 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3145 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3152 test -n "$ac_ct_CXX" && break
3155 if test "x$ac_ct_CXX" = x; then
3158 case $cross_compiling:$ac_tool_warned in
3160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3161 whose name does not start with the host triplet. If you think this
3162 configuration is useful to you, please write to autoconf@gnu.org." >&5
3163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3164 whose name does not start with the host triplet. If you think this
3165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3166 ac_tool_warned=yes ;;
3174 # Provide some information about the compiler.
3175 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3176 ac_compiler=`set X $ac_compile; echo $2`
3177 { (ac_try="$ac_compiler --version >&5"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compiler --version >&5") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3187 { (ac_try="$ac_compiler -v >&5"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compiler -v >&5") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { (ac_try="$ac_compiler -V >&5"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compiler -V >&5") 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3208 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3209 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3210 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_cxx_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3260 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3261 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3262 GXX=`test $ac_compiler_gnu = yes && echo yes`
3263 ac_test_CXXFLAGS=${CXXFLAGS+set}
3264 ac_save_CXXFLAGS=$CXXFLAGS
3265 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3266 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cxx_g+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3271 ac_cxx_werror_flag=yes
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_cxx_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_cv_prog_cxx_g=yes
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && {
3341 test -z "$ac_cxx_werror_flag" ||
3342 test ! -s conftest.err
3343 } && test -s conftest.$ac_objext; then
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_cxx_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest.$ac_objext; then
3383 ac_cv_prog_cxx_g=yes
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3402 if test "$ac_test_CXXFLAGS" = set; then
3403 CXXFLAGS=$ac_save_CXXFLAGS
3404 elif test $ac_cv_prog_cxx_g = yes; then
3405 if test "$GXX" = yes; then
3411 if test "$GXX" = yes; then
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 if test "x$CC" != xcc; then
3424 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3425 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3427 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3428 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3430 set dummy $CC; ac_cc=`echo $2 |
3431 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3432 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 # Make sure it works both with $CC and with simple cc.
3451 # We do the test twice because some compilers refuse to overwrite an
3452 # existing .o file with -o, though they will create one.
3453 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3455 if { (case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_try") 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_try") 2>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); };
3474 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3475 if test "x$CC" != xcc; then
3476 # Test first that cc exists at all.
3477 if { ac_try='cc -c conftest.$ac_ext >&5'
3478 { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3489 if { (case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_try") 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_try") 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); };
3511 # cc exists but doesn't like -o.
3512 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3517 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3519 rm -f core conftest*
3522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3523 { echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6; }
3526 { echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6; }
3529 cat >>confdefs.h <<\_ACEOF
3530 #define NO_MINUS_C_MINUS_O 1
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3541 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3542 # On Suns, sometimes $CPP names a directory.
3543 if test -n "$CPP" && test -d "$CPP"; then
3546 if test -z "$CPP"; then
3547 if test "${ac_cv_prog_CPP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 # Double quotes because CPP needs to be expanded
3551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3554 for ac_c_preproc_warn_flag in '' yes
3556 # Use a header file that comes with gcc, so configuring glibc
3557 # with a fresh cross-compiler works.
3558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559 # <limits.h> exists even on freestanding compilers.
3560 # On the NeXT, cc -E runs the code through the compiler's parser,
3561 # not just through cpp. "Syntax error" is here to catch this case.
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 # include <limits.h>
3571 # include <assert.h>
3575 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } >/dev/null && {
3588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 # Broken: fails on valid input.
3600 rm -f conftest.err conftest.$ac_ext
3602 # OK, works on sane cases. Now check whether nonexistent headers
3603 # can be detected and how.
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #include <ac_nonexistent.h>
3612 if { (ac_try="$ac_cpp conftest.$ac_ext"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } >/dev/null && {
3625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3628 # Broken: success on invalid input.
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 # Passes both tests.
3639 rm -f conftest.err conftest.$ac_ext
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then
3656 { echo "$as_me:$LINENO: result: $CPP" >&5
3657 echo "${ECHO_T}$CPP" >&6; }
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null && {
3693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null && {
3730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3733 # Broken: success on invalid input.
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Passes both tests.
3744 rm -f conftest.err conftest.$ac_ext
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3752 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3767 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 # Extract the first word of "grep ggrep" to use in msg output
3772 if test -z "$GREP"; then
3773 set dummy grep ggrep; ac_prog_name=$2
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 ac_path_GREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in grep ggrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3788 # Check for GNU ac_path_GREP and select it if it is found.
3789 # Check for GNU $ac_path_GREP
3790 case `"$ac_path_GREP" --version 2>&1` in
3792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3795 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 echo 'GREP' >> "conftest.nl"
3802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 ac_count=`expr $ac_count + 1`
3805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_GREP="$ac_path_GREP"
3808 ac_path_GREP_max=$ac_count
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817 $ac_path_GREP_found && break 3
3827 GREP="$ac_cv_path_GREP"
3828 if test -z "$GREP"; then
3829 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3831 { (exit 1); exit 1; }; }
3835 ac_cv_path_GREP=$GREP
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3842 GREP="$ac_cv_path_GREP"
3845 { echo "$as_me:$LINENO: checking for egrep" >&5
3846 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_EGREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3851 then ac_cv_path_EGREP="$GREP -E"
3853 # Extract the first word of "egrep" to use in msg output
3854 if test -z "$EGREP"; then
3855 set dummy egrep; ac_prog_name=$2
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 ac_path_EGREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in egrep; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3869 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3870 # Check for GNU ac_path_EGREP and select it if it is found.
3871 # Check for GNU $ac_path_EGREP
3872 case `"$ac_path_EGREP" --version 2>&1` in
3874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3880 cat "conftest.in" "conftest.in" >"conftest.tmp"
3881 mv "conftest.tmp" "conftest.in"
3882 cp "conftest.in" "conftest.nl"
3883 echo 'EGREP' >> "conftest.nl"
3884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886 ac_count=`expr $ac_count + 1`
3887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_EGREP="$ac_path_EGREP"
3890 ac_path_EGREP_max=$ac_count
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 $ac_path_EGREP_found && break 3
3909 EGREP="$ac_cv_path_EGREP"
3910 if test -z "$EGREP"; then
3911 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913 { (exit 1); exit 1; }; }
3917 ac_cv_path_EGREP=$EGREP
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3925 EGREP="$ac_cv_path_EGREP"
3928 if test $ac_cv_c_compiler_gnu = yes; then
3929 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3930 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3931 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 ac_pattern="Autoconf.*'x'"
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3946 ac_cv_prog_gcc_traditional=yes
3948 ac_cv_prog_gcc_traditional=no
3953 if test $ac_cv_prog_gcc_traditional = no; then
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3965 ac_cv_prog_gcc_traditional=yes
3971 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3972 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3973 if test $ac_cv_prog_gcc_traditional = yes; then
3974 CC="$CC -traditional"
3978 BASECC=`basename $CC`
3980 if test "x$BASECC" = xgcc; then
3981 cat >>confdefs.h <<\_ACEOF
3987 # Extract the first word of "$CXX", so it can be a program name with args.
3988 set dummy $CXX; ac_word=$2
3989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_CXX+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4019 if test -n "$CXX"; then
4020 { echo "$as_me:$LINENO: result: $CXX" >&5
4021 echo "${ECHO_T}$CXX" >&6; }
4023 { echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6; }
4028 if test ! -e $CXX; then
4029 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4030 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4031 { (exit 1); exit 1; }; }
4034 # Find a good install program. We prefer a C program (faster),
4035 # so one script is as good as another. But avoid the broken or
4036 # incompatible versions:
4037 # SysV /etc/install, /usr/sbin/install
4038 # SunOS /usr/etc/install
4039 # IRIX /sbin/install
4041 # AmigaOS /C/install, which installs bootblocks on floppy discs
4042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4045 # OS/2's system install, which has a completely different semantic
4046 # ./install, which can be erroneously created by make from ./install.sh.
4047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4049 if test -z "$INSTALL"; then
4050 if test "${ac_cv_path_install+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 # Account for people who put trailing slashes in PATH elements.
4060 ./ | .// | /cC/* | \
4061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4065 # OSF1 and SCO ODT 3.0 have their own names for install.
4066 # Don't use installbsd from OSF since it installs stuff as root
4068 for ac_prog in ginstall scoinst install; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4071 if test $ac_prog = install &&
4072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4073 # AIX install. It has an incompatible calling convention.
4075 elif test $ac_prog = install &&
4076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4077 # program-specific install script used by HP pwplus--don't use.
4080 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4093 if test "${ac_cv_path_install+set}" = set; then
4094 INSTALL=$ac_cv_path_install
4096 # As a last resort, use the slow shell script. Don't cache a
4097 # value for INSTALL within a source directory, because that will
4098 # break other packages using the cache if that directory is
4099 # removed, or if the value is a relative name.
4100 INSTALL=$ac_install_sh
4103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4104 echo "${ECHO_T}$INSTALL" >&6; }
4106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4107 # It thinks the first close brace ends the variable substitution.
4108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_prog_RANLIB+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$RANLIB"; then
4123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 RANLIB=$ac_cv_prog_RANLIB
4143 if test -n "$RANLIB"; then
4144 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4145 echo "${ECHO_T}$RANLIB" >&6; }
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4153 if test -z "$ac_cv_prog_RANLIB"; then
4154 ac_ct_RANLIB=$RANLIB
4155 # Extract the first word of "ranlib", so it can be a program name with args.
4156 set dummy ranlib; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -n "$ac_ct_RANLIB"; then
4163 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_ac_ct_RANLIB="ranlib"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4183 if test -n "$ac_ct_RANLIB"; then
4184 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4185 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4187 { echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6; }
4191 if test "x$ac_ct_RANLIB" = x; then
4194 case $cross_compiling:$ac_tool_warned in
4196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4197 whose name does not start with the host triplet. If you think this
4198 configuration is useful to you, please write to autoconf@gnu.org." >&5
4199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4200 whose name does not start with the host triplet. If you think this
4201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4202 ac_tool_warned=yes ;;
4204 RANLIB=$ac_ct_RANLIB
4207 RANLIB="$ac_cv_prog_RANLIB"
4210 # Extract the first word of "mv", so it can be a program name with args.
4211 set dummy mv; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_path_MV+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4242 if test -n "$MV"; then
4243 { echo "$as_me:$LINENO: result: $MV" >&5
4244 echo "${ECHO_T}$MV" >&6; }
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4251 # Extract the first word of "rm", so it can be a program name with args.
4252 set dummy rm; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_path_RM+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4283 if test -n "$RM"; then
4284 { echo "$as_me:$LINENO: result: $RM" >&5
4285 echo "${ECHO_T}$RM" >&6; }
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4292 # Extract the first word of "cp", so it can be a program name with args.
4293 set dummy cp; ac_word=$2
4294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296 if test "${ac_cv_path_CP+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4324 if test -n "$CP"; then
4325 { echo "$as_me:$LINENO: result: $CP" >&5
4326 echo "${ECHO_T}$CP" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 # Extract the first word of "sed", so it can be a program name with args.
4334 set dummy sed; ac_word=$2
4335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337 if test "${ac_cv_path_SED+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4365 if test -n "$SED"; then
4366 { echo "$as_me:$LINENO: result: $SED" >&5
4367 echo "${ECHO_T}$SED" >&6; }
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4374 # Extract the first word of "echo", so it can be a program name with args.
4375 set dummy echo; ac_word=$2
4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378 if test "${ac_cv_path_ECHO+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4405 ECHO=$ac_cv_path_ECHO
4406 if test -n "$ECHO"; then
4407 { echo "$as_me:$LINENO: result: $ECHO" >&5
4408 echo "${ECHO_T}$ECHO" >&6; }
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4415 # Extract the first word of "cmp", so it can be a program name with args.
4416 set dummy cmp; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_path_CMP+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4447 if test -n "$CMP"; then
4448 { echo "$as_me:$LINENO: result: $CMP" >&5
4449 echo "${ECHO_T}$CMP" >&6; }
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4456 # Extract the first word of "tbl", so it can be a program name with args.
4457 set dummy tbl; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_path_TBL+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4488 if test -n "$TBL"; then
4489 { echo "$as_me:$LINENO: result: $TBL" >&5
4490 echo "${ECHO_T}$TBL" >&6; }
4492 { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4497 # Extract the first word of "ar", so it can be a program name with args.
4498 set dummy ar; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_path_AR+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4529 if test -n "$AR"; then
4530 { echo "$as_me:$LINENO: result: $AR" >&5
4531 echo "${ECHO_T}$AR" >&6; }
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4538 # Extract the first word of "openssl", so it can be a program name with args.
4539 set dummy openssl; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_OPENSSL+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4569 OPENSSL=$ac_cv_path_OPENSSL
4570 if test -n "$OPENSSL"; then
4571 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4572 echo "${ECHO_T}$OPENSSL" >&6; }
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4579 # Extract the first word of "mtx", so it can be a program name with args.
4580 set dummy mtx; ac_word=$2
4581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583 if test "${ac_cv_path_MTX+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4611 if test -n "$MTX"; then
4612 { echo "$as_me:$LINENO: result: $MTX" >&5
4613 echo "${ECHO_T}$MTX" >&6; }
4615 { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4620 # Extract the first word of "dd", so it can be a program name with args.
4621 set dummy dd; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_DD+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4652 if test -n "$DD"; then
4653 { echo "$as_me:$LINENO: result: $DD" >&5
4654 echo "${ECHO_T}$DD" >&6; }
4656 { echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6; }
4661 # Extract the first word of "mkisofs", so it can be a program name with args.
4662 set dummy mkisofs; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_path_MKISOFS+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4692 MKISOFS=$ac_cv_path_MKISOFS
4693 if test -n "$MKISOFS"; then
4694 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4695 echo "${ECHO_T}$MKISOFS" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 # Extract the first word of "python", so it can be a program name with args.
4703 set dummy python; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_path_PYTHON+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4733 PYTHON=$ac_cv_path_PYTHON
4734 if test -n "$PYTHON"; then
4735 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4736 echo "${ECHO_T}$PYTHON" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4743 # Extract the first word of "growisofs", so it can be a program name with args.
4744 set dummy growisofs; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4774 GROWISOFS=$ac_cv_path_GROWISOFS
4775 if test -n "$GROWISOFS"; then
4776 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4777 echo "${ECHO_T}$GROWISOFS" >&6; }
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4784 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4785 set dummy dvd+rw-mediainfo; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 case $DVDRWMEDIAINFO in
4793 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4815 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4816 if test -n "$DVDRWMEDIAINFO"; then
4817 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4818 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4825 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4826 set dummy dvd+rw-format; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 case $DVDRWFORMAT in
4834 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4856 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4857 if test -n "$DVDRWFORMAT"; then
4858 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4859 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4866 # Extract the first word of "pkg-config", so it can be a program name with args.
4867 set dummy pkg-config; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4897 PKGCONFIG=$ac_cv_path_PKGCONFIG
4898 if test -n "$PKGCONFIG"; then
4899 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4900 echo "${ECHO_T}$PKGCONFIG" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4907 # Extract the first word of "qmake", so it can be a program name with args.
4908 set dummy qmake; ac_word=$2
4909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4911 if test "${ac_cv_path_QMAKE+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4938 QMAKE=$ac_cv_path_QMAKE
4939 if test -n "$QMAKE"; then
4940 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4941 echo "${ECHO_T}$QMAKE" >&6; }
4943 { echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6; }
4948 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4949 set dummy qmake-qt4; ac_word=$2
4950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4979 QMAKEQT4=$ac_cv_path_QMAKEQT4
4980 if test -n "$QMAKEQT4"; then
4981 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4982 echo "${ECHO_T}$QMAKEQT4" >&6; }
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4990 if test "x$WXCONFIG" = x; then
4993 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4994 set dummy ${WXCONFIG}; ac_word=$2
4995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5024 WXCONFIG=$ac_cv_path_WXCONFIG
5025 if test -n "$WXCONFIG"; then
5026 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5027 echo "${ECHO_T}$WXCONFIG" >&6; }
5029 { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5035 # Extract the first word of "cdrecord", so it can be a program name with args.
5036 set dummy cdrecord; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_CDRECORD+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5066 CDRECORD=$ac_cv_path_CDRECORD
5067 if test -n "$CDRECORD"; then
5068 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5069 echo "${ECHO_T}$CDRECORD" >&6; }
5071 { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5076 # Extract the first word of "pidof", so it can be a program name with args.
5077 set dummy pidof; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_path_PIDOF+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5107 PIDOF=$ac_cv_path_PIDOF
5108 if test -n "$PIDOF"; then
5109 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5110 echo "${ECHO_T}$PIDOF" >&6; }
5112 { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5117 for ac_prog in gawk mawk nawk awk
5119 # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_prog_AWK+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test -n "$AWK"; then
5127 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_AWK="$ac_prog"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 if test -n "$AWK"; then
5148 { echo "$as_me:$LINENO: result: $AWK" >&5
5149 echo "${ECHO_T}$AWK" >&6; }
5151 { echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6; }
5156 test -n "$AWK" && break
5159 # Some AWK programs fail, so test it and warn the user
5160 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5161 { if ((prog == $2) || (("(" prog ")") == $2) ||
5162 (("" prog "") == $2) ||
5163 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5165 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5166 The regex engine of $AWK is too broken to be used you
5167 might want to install GNU AWK.
5168 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5169 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5170 The regex engine of $AWK is too broken to be used you
5171 might want to install GNU AWK.
5172 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5173 { (exit 1); exit 1; }; }
5176 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5177 set dummy $THE_AWK; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_AWK+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5208 if test -n "$AWK"; then
5209 { echo "$as_me:$LINENO: result: $AWK" >&5
5210 echo "${ECHO_T}$AWK" >&6; }
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5219 test -n "$ARFLAG" || ARFLAGS="cr"
5230 # Make sure we can run config.sub.
5231 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5232 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5233 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5234 { (exit 1); exit 1; }; }
5236 { echo "$as_me:$LINENO: checking build system type" >&5
5237 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5238 if test "${ac_cv_build+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_build_alias=$build_alias
5242 test "x$ac_build_alias" = x &&
5243 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5244 test "x$ac_build_alias" = x &&
5245 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5246 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5247 { (exit 1); exit 1; }; }
5248 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5249 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5250 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5251 { (exit 1); exit 1; }; }
5254 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5255 echo "${ECHO_T}$ac_cv_build" >&6; }
5256 case $ac_cv_build in
5258 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5259 echo "$as_me: error: invalid value of canonical build" >&2;}
5260 { (exit 1); exit 1; }; };;
5263 ac_save_IFS=$IFS; IFS='-'
5269 # Remember, the first character of IFS is used to create $*,
5270 # except with old shells:
5273 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5277 { echo "$as_me:$LINENO: checking host system type" >&5
5278 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5279 if test "${ac_cv_host+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 if test "x$host_alias" = x; then
5283 ac_cv_host=$ac_cv_build
5285 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5286 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5287 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5288 { (exit 1); exit 1; }; }
5292 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5293 echo "${ECHO_T}$ac_cv_host" >&6; }
5296 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5297 echo "$as_me: error: invalid value of canonical host" >&2;}
5298 { (exit 1); exit 1; }; };;
5301 ac_save_IFS=$IFS; IFS='-'
5307 # Remember, the first character of IFS is used to create $*,
5308 # except with old shells:
5311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5315 *cygwin* ) CYGWIN=yes;;
5319 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5325 HAVE_SUN_OS_FALSE='#'
5327 HAVE_SUN_OS_TRUE='#'
5330 cat >>confdefs.h <<\_ACEOF
5331 #define HAVE_SUN_OS 1
5339 HAVE_SUN_OS_FALSE='#'
5341 HAVE_SUN_OS_TRUE='#'
5346 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5352 HAVE_OSF1_OS_FALSE='#'
5354 HAVE_OSF1_OS_TRUE='#'
5357 cat >>confdefs.h <<\_ACEOF
5358 #define HAVE_OSF1_OS 1
5366 HAVE_OSF1_OS_FALSE='#'
5368 HAVE_OSF1_OS_TRUE='#'
5373 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5379 HAVE_AIX_OS_FALSE='#'
5381 HAVE_AIX_OS_TRUE='#'
5384 cat >>confdefs.h <<\_ACEOF
5385 #define HAVE_AIX_OS 1
5393 HAVE_AIX_OS_FALSE='#'
5395 HAVE_AIX_OS_TRUE='#'
5400 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5406 HAVE_HPUX_OS_FALSE='#'
5408 HAVE_HPUX_OS_TRUE='#'
5411 cat >>confdefs.h <<\_ACEOF
5412 #define HAVE_HPUX_OS 1
5420 HAVE_HPUX_OS_FALSE='#'
5422 HAVE_HPUX_OS_TRUE='#'
5427 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5433 HAVE_LINUX_OS_FALSE='#'
5435 HAVE_LINUX_OS_TRUE='#'
5436 HAVE_LINUX_OS_FALSE=
5438 cat >>confdefs.h <<\_ACEOF
5439 #define HAVE_LINUX_OS 1
5447 HAVE_LINUX_OS_FALSE='#'
5449 HAVE_LINUX_OS_TRUE='#'
5450 HAVE_LINUX_OS_FALSE=
5454 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5459 HAVE_FREEBSD_OS_TRUE=
5460 HAVE_FREEBSD_OS_FALSE='#'
5462 HAVE_FREEBSD_OS_TRUE='#'
5463 HAVE_FREEBSD_OS_FALSE=
5465 cat >>confdefs.h <<\_ACEOF
5466 #define HAVE_FREEBSD_OS 1
5473 HAVE_FREEBSD_OS_TRUE=
5474 HAVE_FREEBSD_OS_FALSE='#'
5476 HAVE_FREEBSD_OS_TRUE='#'
5477 HAVE_FREEBSD_OS_FALSE=
5481 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5486 HAVE_NETBSD_OS_TRUE=
5487 HAVE_NETBSD_OS_FALSE='#'
5489 HAVE_NETBSD_OS_TRUE='#'
5490 HAVE_NETBSD_OS_FALSE=
5492 cat >>confdefs.h <<\_ACEOF
5493 #define HAVE_NETBSD_OS 1
5500 HAVE_NETBSD_OS_TRUE=
5501 HAVE_NETBSD_OS_FALSE='#'
5503 HAVE_NETBSD_OS_TRUE='#'
5504 HAVE_NETBSD_OS_FALSE=
5508 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5513 HAVE_OPENBSD_OS_TRUE=
5514 HAVE_OPENBSD_OS_FALSE='#'
5516 HAVE_OPENBSD_OS_TRUE='#'
5517 HAVE_OPENBSD_OS_FALSE=
5519 cat >>confdefs.h <<\_ACEOF
5520 #define HAVE_OPENBSD_OS 1
5527 HAVE_OPENBSD_OS_TRUE=
5528 HAVE_OPENBSD_OS_FALSE='#'
5530 HAVE_OPENBSD_OS_TRUE='#'
5531 HAVE_OPENBSD_OS_FALSE=
5535 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5541 HAVE_BSDI_OS_FALSE='#'
5543 HAVE_BSDI_OS_TRUE='#'
5546 cat >>confdefs.h <<\_ACEOF
5547 #define HAVE_BSDI_OS 1
5555 HAVE_BSDI_OS_FALSE='#'
5557 HAVE_BSDI_OS_TRUE='#'
5562 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5568 HAVE_SGI_OS_FALSE='#'
5570 HAVE_SGI_OS_TRUE='#'
5573 cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_SGI_OS 1
5582 HAVE_SGI_OS_FALSE='#'
5584 HAVE_SGI_OS_TRUE='#'
5589 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5595 HAVE_IRIX_OS_FALSE='#'
5597 HAVE_IRIX_OS_TRUE='#'
5600 cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_IRIX_OS 1
5609 HAVE_IRIX_OS_FALSE='#'
5611 HAVE_IRIX_OS_TRUE='#'
5616 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5621 HAVE_DARWIN_OS_TRUE=
5622 HAVE_DARWIN_OS_FALSE='#'
5624 HAVE_DARWIN_OS_TRUE='#'
5625 HAVE_DARWIN_OS_FALSE=
5627 cat >>confdefs.h <<\_ACEOF
5628 #define HAVE_DARWIN_OS 1
5635 HAVE_DARWIN_OS_TRUE=
5636 HAVE_DARWIN_OS_FALSE='#'
5638 HAVE_DARWIN_OS_TRUE='#'
5639 HAVE_DARWIN_OS_FALSE=
5644 # -----------------------------------------------------------
5645 # ----------------------------------------------------------
5646 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5647 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5648 if test "x$DISTNAME" != "x"
5650 echo "distname set to $DISTNAME"
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5672 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5675 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5678 elif test -f /etc/SuSE-release
5681 elif test -d /etc/SuSEconfig
5684 elif test -f /etc/mandrake-release
5687 elif test -f /etc/whitebox-release
5690 elif test -f /etc/redhat-release
5693 elif test -f /etc/gentoo-release
5696 elif test -f /etc/debian_version
5699 elif test -f /etc/slackware-version
5702 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5705 elif test -f /etc/engarde-version
5708 elif test "$CYGWIN" = yes
5711 cat >>confdefs.h <<\_ACEOF
5712 #define HAVE_CYGWIN 1
5718 { echo "$as_me:$LINENO: result: done" >&5
5719 echo "${ECHO_T}done" >&6; }
5722 # --------------------------------------------------
5723 # Suppport for gettext (translations)
5724 # By default, $datadir is ${prefix}/share
5725 # --------------------------------------------------
5726 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5727 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5728 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5729 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 cat >conftest.make <<\_ACEOF
5735 @echo '@@@%%%=$(MAKE)=@@@%%%'
5737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5738 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5740 eval ac_cv_prog_make_${ac_make}_set=yes;;
5742 eval ac_cv_prog_make_${ac_make}_set=no;;
5746 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5747 { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5751 { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5753 SET_MAKE="MAKE=${MAKE-make}"
5759 if test -n "$ac_aux_dir"; then
5760 case "$ac_aux_dir" in
5761 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5762 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5765 if test -z "$MKINSTALLDIRS"; then
5766 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5771 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5772 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5773 # Check whether --enable-nls was given.
5774 if test "${enable_nls+set}" = set; then
5775 enableval=$enable_nls; USE_NLS=$enableval
5780 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5781 echo "${ECHO_T}$USE_NLS" >&6; }
5788 # Prepare PATH_SEPARATOR.
5789 # The user is always right.
5790 if test "${PATH_SEPARATOR+set}" != set; then
5791 echo "#! /bin/sh" >conf$$.sh
5792 echo "exit 0" >>conf$$.sh
5794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5802 # Find out how to test for executable files. Don't use a zero-byte file,
5803 # as systems may use methods other than mode bits to determine executability.
5804 cat >conf$$.file <<_ASEOF
5808 chmod +x conf$$.file
5809 if test -x conf$$.file >/dev/null 2>&1; then
5810 ac_executable_p="test -x"
5812 ac_executable_p="test -f"
5816 # Extract the first word of "msgfmt", so it can be a program name with args.
5817 set dummy msgfmt; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_MSGFMT+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5828 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5829 for ac_dir in $PATH; do
5831 test -z "$ac_dir" && ac_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5834 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5835 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5836 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5837 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5844 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5848 MSGFMT="$ac_cv_path_MSGFMT"
5849 if test "$MSGFMT" != ":"; then
5850 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5851 echo "${ECHO_T}$MSGFMT" >&6; }
5853 { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5857 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5858 set dummy gmsgfmt; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5888 GMSGFMT=$ac_cv_path_GMSGFMT
5889 if test -n "$GMSGFMT"; then
5890 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5891 echo "${ECHO_T}$GMSGFMT" >&6; }
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5900 # Prepare PATH_SEPARATOR.
5901 # The user is always right.
5902 if test "${PATH_SEPARATOR+set}" != set; then
5903 echo "#! /bin/sh" >conf$$.sh
5904 echo "exit 0" >>conf$$.sh
5906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5914 # Find out how to test for executable files. Don't use a zero-byte file,
5915 # as systems may use methods other than mode bits to determine executability.
5916 cat >conf$$.file <<_ASEOF
5920 chmod +x conf$$.file
5921 if test -x conf$$.file >/dev/null 2>&1; then
5922 ac_executable_p="test -x"
5924 ac_executable_p="test -f"
5928 # Extract the first word of "xgettext", so it can be a program name with args.
5929 set dummy xgettext; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5941 for ac_dir in $PATH; do
5943 test -z "$ac_dir" && ac_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5946 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5947 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5948 (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
5949 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5956 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5960 XGETTEXT="$ac_cv_path_XGETTEXT"
5961 if test "$XGETTEXT" != ":"; then
5962 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5963 echo "${ECHO_T}$XGETTEXT" >&6; }
5965 { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5972 # Prepare PATH_SEPARATOR.
5973 # The user is always right.
5974 if test "${PATH_SEPARATOR+set}" != set; then
5975 echo "#! /bin/sh" >conf$$.sh
5976 echo "exit 0" >>conf$$.sh
5978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5986 # Find out how to test for executable files. Don't use a zero-byte file,
5987 # as systems may use methods other than mode bits to determine executability.
5988 cat >conf$$.file <<_ASEOF
5992 chmod +x conf$$.file
5993 if test -x conf$$.file >/dev/null 2>&1; then
5994 ac_executable_p="test -x"
5996 ac_executable_p="test -f"
6000 # Extract the first word of "msgmerge", so it can be a program name with args.
6001 set dummy msgmerge; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6013 for ac_dir in $PATH; do
6015 test -z "$ac_dir" && ac_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6018 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6019 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6020 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6027 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6031 MSGMERGE="$ac_cv_path_MSGMERGE"
6032 if test "$MSGMERGE" != ":"; then
6033 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6034 echo "${ECHO_T}$MSGMERGE" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 if test "$GMSGFMT" != ":"; then
6042 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6043 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6046 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6047 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6048 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6053 if test "$XGETTEXT" != ":"; then
6054 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6055 (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
6058 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6059 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6065 ac_config_commands="$ac_config_commands default-1"
6069 if test "X$prefix" = "XNONE"; then
6070 acl_final_prefix="$ac_default_prefix"
6072 acl_final_prefix="$prefix"
6074 if test "X$exec_prefix" = "XNONE"; then
6075 acl_final_exec_prefix='${prefix}'
6077 acl_final_exec_prefix="$exec_prefix"
6079 acl_save_prefix="$prefix"
6080 prefix="$acl_final_prefix"
6081 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6082 prefix="$acl_save_prefix"
6085 # Check whether --with-gnu-ld was given.
6086 if test "${with_gnu_ld+set}" = set; then
6087 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6092 # Prepare PATH_SEPARATOR.
6093 # The user is always right.
6094 if test "${PATH_SEPARATOR+set}" != set; then
6095 echo "#! /bin/sh" >conf$$.sh
6096 echo "exit 0" >>conf$$.sh
6098 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6106 if test "$GCC" = yes; then
6107 # Check if gcc -print-prog-name=ld gives a path.
6108 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6109 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6112 # gcc leaves a trailing carriage return which upsets mingw
6113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6118 # Accept absolute paths.
6119 [\\/]* | [A-Za-z]:[\\/]*)
6120 re_direlt='/[^/][^/]*/\.\./'
6121 # Canonicalize the path of ld
6122 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6124 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6126 test -z "$LD" && LD="$ac_prog"
6129 # If it fails, then pretend we aren't using GCC.
6133 # If it is relative, then search for the first ld in PATH.
6137 elif test "$with_gnu_ld" = yes; then
6138 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6141 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6144 if test "${acl_cv_path_LD+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 if test -z "$LD"; then
6148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6149 for ac_dir in $PATH; do
6150 test -z "$ac_dir" && ac_dir=.
6151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6152 acl_cv_path_LD="$ac_dir/$ac_prog"
6153 # Check to see if the program is GNU ld. I'd rather use --version,
6154 # but apparently some GNU ld's only accept -v.
6155 # Break only if it was the GNU/non-GNU ld that we prefer.
6156 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6157 *GNU* | *'with BFD'*)
6158 test "$with_gnu_ld" != no && break ;;
6160 test "$with_gnu_ld" != yes && break ;;
6166 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6170 LD="$acl_cv_path_LD"
6171 if test -n "$LD"; then
6172 { echo "$as_me:$LINENO: result: $LD" >&5
6173 echo "${ECHO_T}$LD" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6178 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6179 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6180 { (exit 1); exit 1; }; }
6181 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6182 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6183 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6187 case `$LD -v 2>&1 </dev/null` in
6188 *GNU* | *'with BFD'*)
6189 acl_cv_prog_gnu_ld=yes ;;
6191 acl_cv_prog_gnu_ld=no ;;
6194 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6195 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6196 with_gnu_ld=$acl_cv_prog_gnu_ld
6201 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6202 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6203 if test "${acl_cv_rpath+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6208 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6214 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6215 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6217 libext="$acl_cv_libext"
6218 shlibext="$acl_cv_shlibext"
6219 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6220 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6221 hardcode_direct="$acl_cv_hardcode_direct"
6222 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6223 # Check whether --enable-rpath was given.
6224 if test "${enable_rpath+set}" = set; then
6225 enableval=$enable_rpath; :
6239 acl_save_prefix="$prefix"
6240 prefix="$acl_final_prefix"
6241 acl_save_exec_prefix="$exec_prefix"
6242 exec_prefix="$acl_final_exec_prefix"
6244 eval additional_includedir=\"$includedir\"
6245 eval additional_libdir=\"$libdir\"
6247 exec_prefix="$acl_save_exec_prefix"
6248 prefix="$acl_save_prefix"
6251 # Check whether --with-libiconv-prefix was given.
6252 if test "${with_libiconv_prefix+set}" = set; then
6253 withval=$with_libiconv_prefix;
6254 if test "X$withval" = "Xno"; then
6257 if test "X$withval" = "X"; then
6259 acl_save_prefix="$prefix"
6260 prefix="$acl_final_prefix"
6261 acl_save_exec_prefix="$exec_prefix"
6262 exec_prefix="$acl_final_exec_prefix"
6264 eval additional_includedir=\"$includedir\"
6265 eval additional_libdir=\"$libdir\"
6267 exec_prefix="$acl_save_exec_prefix"
6268 prefix="$acl_save_prefix"
6271 additional_includedir="$withval/include"
6272 additional_libdir="$withval/lib"
6283 names_already_handled=
6284 names_next_round='iconv '
6285 while test -n "$names_next_round"; do
6286 names_this_round="$names_next_round"
6288 for name in $names_this_round; do
6290 for n in $names_already_handled; do
6291 if test "$n" = "$name"; then
6296 if test -z "$already_handled"; then
6297 names_already_handled="$names_already_handled $name"
6298 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6299 eval value=\"\$HAVE_LIB$uppername\"
6300 if test -n "$value"; then
6301 if test "$value" = yes; then
6302 eval value=\"\$LIB$uppername\"
6303 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6304 eval value=\"\$LTLIB$uppername\"
6305 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6314 if test $use_additional = yes; then
6315 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6316 found_dir="$additional_libdir"
6317 found_so="$additional_libdir/lib$name.$shlibext"
6318 if test -f "$additional_libdir/lib$name.la"; then
6319 found_la="$additional_libdir/lib$name.la"
6322 if test -f "$additional_libdir/lib$name.$libext"; then
6323 found_dir="$additional_libdir"
6324 found_a="$additional_libdir/lib$name.$libext"
6325 if test -f "$additional_libdir/lib$name.la"; then
6326 found_la="$additional_libdir/lib$name.la"
6331 if test "X$found_dir" = "X"; then
6332 for x in $LDFLAGS $LTLIBICONV; do
6334 acl_save_prefix="$prefix"
6335 prefix="$acl_final_prefix"
6336 acl_save_exec_prefix="$exec_prefix"
6337 exec_prefix="$acl_final_exec_prefix"
6339 exec_prefix="$acl_save_exec_prefix"
6340 prefix="$acl_save_prefix"
6344 dir=`echo "X$x" | sed -e 's/^X-L//'`
6345 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6347 found_so="$dir/lib$name.$shlibext"
6348 if test -f "$dir/lib$name.la"; then
6349 found_la="$dir/lib$name.la"
6352 if test -f "$dir/lib$name.$libext"; then
6354 found_a="$dir/lib$name.$libext"
6355 if test -f "$dir/lib$name.la"; then
6356 found_la="$dir/lib$name.la"
6362 if test "X$found_dir" != "X"; then
6367 if test "X$found_dir" != "X"; then
6368 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6369 if test "X$found_so" != "X"; then
6370 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6371 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6374 for x in $ltrpathdirs; do
6375 if test "X$x" = "X$found_dir"; then
6380 if test -z "$haveit"; then
6381 ltrpathdirs="$ltrpathdirs $found_dir"
6383 if test "$hardcode_direct" = yes; then
6384 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6386 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6389 for x in $rpathdirs; do
6390 if test "X$x" = "X$found_dir"; then
6395 if test -z "$haveit"; then
6396 rpathdirs="$rpathdirs $found_dir"
6400 for x in $LDFLAGS $LIBICONV; do
6402 acl_save_prefix="$prefix"
6403 prefix="$acl_final_prefix"
6404 acl_save_exec_prefix="$exec_prefix"
6405 exec_prefix="$acl_final_exec_prefix"
6407 exec_prefix="$acl_save_exec_prefix"
6408 prefix="$acl_save_prefix"
6410 if test "X$x" = "X-L$found_dir"; then
6415 if test -z "$haveit"; then
6416 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6418 if test "$hardcode_minus_L" != no; then
6419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6421 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6427 if test "X$found_a" != "X"; then
6428 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6430 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6433 additional_includedir=
6434 case "$found_dir" in
6436 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6437 additional_includedir="$basedir/include"
6440 if test "X$additional_includedir" != "X"; then
6441 if test "X$additional_includedir" != "X/usr/include"; then
6443 if test "X$additional_includedir" = "X/usr/local/include"; then
6444 if test -n "$GCC"; then
6446 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6450 if test -z "$haveit"; then
6451 for x in $CPPFLAGS $INCICONV; do
6453 acl_save_prefix="$prefix"
6454 prefix="$acl_final_prefix"
6455 acl_save_exec_prefix="$exec_prefix"
6456 exec_prefix="$acl_final_exec_prefix"
6458 exec_prefix="$acl_save_exec_prefix"
6459 prefix="$acl_save_prefix"
6461 if test "X$x" = "X-I$additional_includedir"; then
6466 if test -z "$haveit"; then
6467 if test -d "$additional_includedir"; then
6468 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6474 if test -n "$found_la"; then
6475 save_libdir="$libdir"
6477 */* | *\\*) . "$found_la" ;;
6478 *) . "./$found_la" ;;
6480 libdir="$save_libdir"
6481 for dep in $dependency_libs; do
6484 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6485 if test "X$additional_libdir" != "X/usr/lib"; then
6487 if test "X$additional_libdir" = "X/usr/local/lib"; then
6488 if test -n "$GCC"; then
6490 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6494 if test -z "$haveit"; then
6496 for x in $LDFLAGS $LIBICONV; do
6498 acl_save_prefix="$prefix"
6499 prefix="$acl_final_prefix"
6500 acl_save_exec_prefix="$exec_prefix"
6501 exec_prefix="$acl_final_exec_prefix"
6503 exec_prefix="$acl_save_exec_prefix"
6504 prefix="$acl_save_prefix"
6506 if test "X$x" = "X-L$additional_libdir"; then
6511 if test -z "$haveit"; then
6512 if test -d "$additional_libdir"; then
6513 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6517 for x in $LDFLAGS $LTLIBICONV; do
6519 acl_save_prefix="$prefix"
6520 prefix="$acl_final_prefix"
6521 acl_save_exec_prefix="$exec_prefix"
6522 exec_prefix="$acl_final_exec_prefix"
6524 exec_prefix="$acl_save_exec_prefix"
6525 prefix="$acl_save_prefix"
6527 if test "X$x" = "X-L$additional_libdir"; then
6532 if test -z "$haveit"; then
6533 if test -d "$additional_libdir"; then
6534 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6541 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6542 if test "$enable_rpath" != no; then
6544 for x in $rpathdirs; do
6545 if test "X$x" = "X$dir"; then
6550 if test -z "$haveit"; then
6551 rpathdirs="$rpathdirs $dir"
6554 for x in $ltrpathdirs; do
6555 if test "X$x" = "X$dir"; then
6560 if test -z "$haveit"; then
6561 ltrpathdirs="$ltrpathdirs $dir"
6566 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6569 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6572 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6579 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6586 if test "X$rpathdirs" != "X"; then
6587 if test -n "$hardcode_libdir_separator"; then
6589 for found_dir in $rpathdirs; do
6590 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6592 acl_save_libdir="$libdir"
6594 eval flag=\"$hardcode_libdir_flag_spec\"
6595 libdir="$acl_save_libdir"
6596 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6598 for found_dir in $rpathdirs; do
6599 acl_save_libdir="$libdir"
6601 eval flag=\"$hardcode_libdir_flag_spec\"
6602 libdir="$acl_save_libdir"
6603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6607 if test "X$ltrpathdirs" != "X"; then
6608 for found_dir in $ltrpathdirs; do
6609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6630 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6631 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6632 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 gt_save_CPPFLAGS="$CPPFLAGS"
6636 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6637 gt_save_LIBS="$LIBS"
6638 LIBS="$LIBS -framework CoreFoundation"
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <CFPreferences.h>
6649 CFPreferencesCopyAppValue(NULL, NULL)
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (ac_try="$ac_link"
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_link") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest$ac_exeext &&
6671 $as_test_x conftest$ac_exeext; then
6672 gt_cv_func_CFPreferencesCopyAppValue=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 gt_cv_func_CFPreferencesCopyAppValue=no
6680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6681 conftest$ac_exeext conftest.$ac_ext
6682 CPPFLAGS="$gt_save_CPPFLAGS"
6683 LIBS="$gt_save_LIBS"
6685 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6686 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6687 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6694 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6695 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6696 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 gt_save_CPPFLAGS="$CPPFLAGS"
6700 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6701 gt_save_LIBS="$LIBS"
6702 LIBS="$LIBS -framework CoreFoundation"
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #include <CFLocale.h>
6713 CFLocaleCopyCurrent();
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (ac_try="$ac_link"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_link") 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest$ac_exeext &&
6735 $as_test_x conftest$ac_exeext; then
6736 gt_cv_func_CFLocaleCopyCurrent=yes
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6741 gt_cv_func_CFLocaleCopyCurrent=no
6744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6745 conftest$ac_exeext conftest.$ac_ext
6746 CPPFLAGS="$gt_save_CPPFLAGS"
6747 LIBS="$gt_save_LIBS"
6749 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6750 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6751 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_CFLOCALECOPYCURRENT 1
6759 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6760 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6766 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6767 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6768 # Check whether --enable-nls was given.
6769 if test "${enable_nls+set}" = set; then
6770 enableval=$enable_nls; USE_NLS=$enableval
6775 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6776 echo "${ECHO_T}$USE_NLS" >&6; }
6785 if test "$USE_NLS" = "yes"; then
6786 gt_use_preinstalled_gnugettext=no
6793 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6794 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6795 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 #include <libintl.h>
6805 extern int _nl_msg_cat_cntr;
6806 extern int *_nl_domain_bindings;
6810 bindtextdomain ("", "");
6811 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (ac_try="$ac_link"
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_link") 2>conftest.er1
6825 grep -v '^ *+' conftest.er1 >conftest.err
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } && {
6830 test -z "$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 } && test -s conftest$ac_exeext &&
6833 $as_test_x conftest$ac_exeext; then
6834 gt_cv_func_gnugettext1_libc=yes
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 gt_cv_func_gnugettext1_libc=no
6842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6843 conftest$ac_exeext conftest.$ac_ext
6845 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6846 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6848 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6854 am_save_CPPFLAGS="$CPPFLAGS"
6856 for element in $INCICONV; do
6858 for x in $CPPFLAGS; do
6860 acl_save_prefix="$prefix"
6861 prefix="$acl_final_prefix"
6862 acl_save_exec_prefix="$exec_prefix"
6863 exec_prefix="$acl_final_exec_prefix"
6865 exec_prefix="$acl_save_exec_prefix"
6866 prefix="$acl_save_prefix"
6868 if test "X$x" = "X$element"; then
6873 if test -z "$haveit"; then
6874 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6879 { echo "$as_me:$LINENO: checking for iconv" >&5
6880 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6881 if test "${am_cv_func_iconv+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 am_cv_func_iconv="no, consider installing GNU libiconv"
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6898 iconv_t cd = iconv_open("","");
6899 iconv(cd,NULL,NULL,NULL,NULL);
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 am_cv_func_iconv=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 if test "$am_cv_func_iconv" != yes; then
6934 am_save_LIBS="$LIBS"
6935 LIBS="$LIBS $LIBICONV"
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6947 iconv_t cd = iconv_open("","");
6948 iconv(cd,NULL,NULL,NULL,NULL);
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (ac_try="$ac_link"
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_link") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest$ac_exeext &&
6971 $as_test_x conftest$ac_exeext; then
6973 am_cv_func_iconv=yes
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LIBS="$am_save_LIBS"
6987 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6988 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6989 if test "$am_cv_func_iconv" = yes; then
6991 cat >>confdefs.h <<\_ACEOF
6992 #define HAVE_ICONV 1
6996 if test "$am_cv_lib_iconv" = yes; then
6997 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6998 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6999 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7000 echo "${ECHO_T}$LIBICONV" >&6; }
7002 CPPFLAGS="$am_save_CPPFLAGS"
7014 acl_save_prefix="$prefix"
7015 prefix="$acl_final_prefix"
7016 acl_save_exec_prefix="$exec_prefix"
7017 exec_prefix="$acl_final_exec_prefix"
7019 eval additional_includedir=\"$includedir\"
7020 eval additional_libdir=\"$libdir\"
7022 exec_prefix="$acl_save_exec_prefix"
7023 prefix="$acl_save_prefix"
7026 # Check whether --with-libintl-prefix was given.
7027 if test "${with_libintl_prefix+set}" = set; then
7028 withval=$with_libintl_prefix;
7029 if test "X$withval" = "Xno"; then
7032 if test "X$withval" = "X"; then
7034 acl_save_prefix="$prefix"
7035 prefix="$acl_final_prefix"
7036 acl_save_exec_prefix="$exec_prefix"
7037 exec_prefix="$acl_final_exec_prefix"
7039 eval additional_includedir=\"$includedir\"
7040 eval additional_libdir=\"$libdir\"
7042 exec_prefix="$acl_save_exec_prefix"
7043 prefix="$acl_save_prefix"
7046 additional_includedir="$withval/include"
7047 additional_libdir="$withval/lib"
7058 names_already_handled=
7059 names_next_round='intl '
7060 while test -n "$names_next_round"; do
7061 names_this_round="$names_next_round"
7063 for name in $names_this_round; do
7065 for n in $names_already_handled; do
7066 if test "$n" = "$name"; then
7071 if test -z "$already_handled"; then
7072 names_already_handled="$names_already_handled $name"
7073 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7074 eval value=\"\$HAVE_LIB$uppername\"
7075 if test -n "$value"; then
7076 if test "$value" = yes; then
7077 eval value=\"\$LIB$uppername\"
7078 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7079 eval value=\"\$LTLIB$uppername\"
7080 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7089 if test $use_additional = yes; then
7090 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7091 found_dir="$additional_libdir"
7092 found_so="$additional_libdir/lib$name.$shlibext"
7093 if test -f "$additional_libdir/lib$name.la"; then
7094 found_la="$additional_libdir/lib$name.la"
7097 if test -f "$additional_libdir/lib$name.$libext"; then
7098 found_dir="$additional_libdir"
7099 found_a="$additional_libdir/lib$name.$libext"
7100 if test -f "$additional_libdir/lib$name.la"; then
7101 found_la="$additional_libdir/lib$name.la"
7106 if test "X$found_dir" = "X"; then
7107 for x in $LDFLAGS $LTLIBINTL; do
7109 acl_save_prefix="$prefix"
7110 prefix="$acl_final_prefix"
7111 acl_save_exec_prefix="$exec_prefix"
7112 exec_prefix="$acl_final_exec_prefix"
7114 exec_prefix="$acl_save_exec_prefix"
7115 prefix="$acl_save_prefix"
7119 dir=`echo "X$x" | sed -e 's/^X-L//'`
7120 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7122 found_so="$dir/lib$name.$shlibext"
7123 if test -f "$dir/lib$name.la"; then
7124 found_la="$dir/lib$name.la"
7127 if test -f "$dir/lib$name.$libext"; then
7129 found_a="$dir/lib$name.$libext"
7130 if test -f "$dir/lib$name.la"; then
7131 found_la="$dir/lib$name.la"
7137 if test "X$found_dir" != "X"; then
7142 if test "X$found_dir" != "X"; then
7143 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7144 if test "X$found_so" != "X"; then
7145 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7146 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7149 for x in $ltrpathdirs; do
7150 if test "X$x" = "X$found_dir"; then
7155 if test -z "$haveit"; then
7156 ltrpathdirs="$ltrpathdirs $found_dir"
7158 if test "$hardcode_direct" = yes; then
7159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7161 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7162 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7164 for x in $rpathdirs; do
7165 if test "X$x" = "X$found_dir"; then
7170 if test -z "$haveit"; then
7171 rpathdirs="$rpathdirs $found_dir"
7175 for x in $LDFLAGS $LIBINTL; do
7177 acl_save_prefix="$prefix"
7178 prefix="$acl_final_prefix"
7179 acl_save_exec_prefix="$exec_prefix"
7180 exec_prefix="$acl_final_exec_prefix"
7182 exec_prefix="$acl_save_exec_prefix"
7183 prefix="$acl_save_prefix"
7185 if test "X$x" = "X-L$found_dir"; then
7190 if test -z "$haveit"; then
7191 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7193 if test "$hardcode_minus_L" != no; then
7194 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7196 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7202 if test "X$found_a" != "X"; then
7203 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7205 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7208 additional_includedir=
7209 case "$found_dir" in
7211 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7212 additional_includedir="$basedir/include"
7215 if test "X$additional_includedir" != "X"; then
7216 if test "X$additional_includedir" != "X/usr/include"; then
7218 if test "X$additional_includedir" = "X/usr/local/include"; then
7219 if test -n "$GCC"; then
7221 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7225 if test -z "$haveit"; then
7226 for x in $CPPFLAGS $INCINTL; do
7228 acl_save_prefix="$prefix"
7229 prefix="$acl_final_prefix"
7230 acl_save_exec_prefix="$exec_prefix"
7231 exec_prefix="$acl_final_exec_prefix"
7233 exec_prefix="$acl_save_exec_prefix"
7234 prefix="$acl_save_prefix"
7236 if test "X$x" = "X-I$additional_includedir"; then
7241 if test -z "$haveit"; then
7242 if test -d "$additional_includedir"; then
7243 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7249 if test -n "$found_la"; then
7250 save_libdir="$libdir"
7252 */* | *\\*) . "$found_la" ;;
7253 *) . "./$found_la" ;;
7255 libdir="$save_libdir"
7256 for dep in $dependency_libs; do
7259 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7260 if test "X$additional_libdir" != "X/usr/lib"; then
7262 if test "X$additional_libdir" = "X/usr/local/lib"; then
7263 if test -n "$GCC"; then
7265 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7269 if test -z "$haveit"; then
7271 for x in $LDFLAGS $LIBINTL; do
7273 acl_save_prefix="$prefix"
7274 prefix="$acl_final_prefix"
7275 acl_save_exec_prefix="$exec_prefix"
7276 exec_prefix="$acl_final_exec_prefix"
7278 exec_prefix="$acl_save_exec_prefix"
7279 prefix="$acl_save_prefix"
7281 if test "X$x" = "X-L$additional_libdir"; then
7286 if test -z "$haveit"; then
7287 if test -d "$additional_libdir"; then
7288 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7292 for x in $LDFLAGS $LTLIBINTL; do
7294 acl_save_prefix="$prefix"
7295 prefix="$acl_final_prefix"
7296 acl_save_exec_prefix="$exec_prefix"
7297 exec_prefix="$acl_final_exec_prefix"
7299 exec_prefix="$acl_save_exec_prefix"
7300 prefix="$acl_save_prefix"
7302 if test "X$x" = "X-L$additional_libdir"; then
7307 if test -z "$haveit"; then
7308 if test -d "$additional_libdir"; then
7309 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7316 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7317 if test "$enable_rpath" != no; then
7319 for x in $rpathdirs; do
7320 if test "X$x" = "X$dir"; then
7325 if test -z "$haveit"; then
7326 rpathdirs="$rpathdirs $dir"
7329 for x in $ltrpathdirs; do
7330 if test "X$x" = "X$dir"; then
7335 if test -z "$haveit"; then
7336 ltrpathdirs="$ltrpathdirs $dir"
7341 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7344 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7347 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7348 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7354 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7355 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7361 if test "X$rpathdirs" != "X"; then
7362 if test -n "$hardcode_libdir_separator"; then
7364 for found_dir in $rpathdirs; do
7365 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7367 acl_save_libdir="$libdir"
7369 eval flag=\"$hardcode_libdir_flag_spec\"
7370 libdir="$acl_save_libdir"
7371 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7373 for found_dir in $rpathdirs; do
7374 acl_save_libdir="$libdir"
7376 eval flag=\"$hardcode_libdir_flag_spec\"
7377 libdir="$acl_save_libdir"
7378 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7382 if test "X$ltrpathdirs" != "X"; then
7383 for found_dir in $ltrpathdirs; do
7384 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7388 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7389 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7390 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 gt_save_CPPFLAGS="$CPPFLAGS"
7394 CPPFLAGS="$CPPFLAGS $INCINTL"
7395 gt_save_LIBS="$LIBS"
7396 LIBS="$LIBS $LIBINTL"
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <libintl.h>
7404 extern int _nl_msg_cat_cntr;
7409 const char *_nl_expand_alias (const char *);
7413 bindtextdomain ("", "");
7414 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (ac_try="$ac_link"
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_link") 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest$ac_exeext &&
7436 $as_test_x conftest$ac_exeext; then
7437 gt_cv_func_gnugettext1_libintl=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 gt_cv_func_gnugettext1_libintl=no
7445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7446 conftest$ac_exeext conftest.$ac_ext
7447 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7448 LIBS="$LIBS $LIBICONV"
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <libintl.h>
7456 extern int _nl_msg_cat_cntr;
7461 const char *_nl_expand_alias (const char *);
7465 bindtextdomain ("", "");
7466 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 LIBINTL="$LIBINTL $LIBICONV"
7490 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7491 gt_cv_func_gnugettext1_libintl=yes
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7501 conftest$ac_exeext conftest.$ac_ext
7503 CPPFLAGS="$gt_save_CPPFLAGS"
7504 LIBS="$gt_save_LIBS"
7506 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7507 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7510 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7511 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7512 && test "$PACKAGE" != gettext-runtime \
7513 && test "$PACKAGE" != gettext-tools; }; then
7514 gt_use_preinstalled_gnugettext=yes
7523 if test -n "$INTL_MACOSX_LIBS"; then
7524 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7525 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7526 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7527 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7531 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7532 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7534 cat >>confdefs.h <<\_ACEOF
7535 #define ENABLE_NLS 1
7543 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7544 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7545 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7546 echo "${ECHO_T}$USE_NLS" >&6; }
7547 if test "$USE_NLS" = "yes"; then
7548 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7549 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7550 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7551 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7552 gt_source="external libintl"
7557 gt_source="included intl directory"
7559 { echo "$as_me:$LINENO: result: $gt_source" >&5
7560 echo "${ECHO_T}$gt_source" >&6; }
7563 if test "$USE_NLS" = "yes"; then
7565 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7566 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7567 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7568 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7569 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7570 echo "${ECHO_T}$LIBINTL" >&6; }
7572 for element in $INCINTL; do
7574 for x in $CPPFLAGS; do
7576 acl_save_prefix="$prefix"
7577 prefix="$acl_final_prefix"
7578 acl_save_exec_prefix="$exec_prefix"
7579 exec_prefix="$acl_final_exec_prefix"
7581 exec_prefix="$acl_save_exec_prefix"
7582 prefix="$acl_save_prefix"
7584 if test "X$x" = "X$element"; then
7589 if test -z "$haveit"; then
7590 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_GETTEXT 1
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_DCGETTEXT 1
7620 if test x${prefix} = xNONE ; then
7621 if test `eval echo ${datadir}` = NONE/share ; then
7626 # ------------------------------------------------------------------
7627 # If the user has not set --prefix, we set our default to nothing.
7628 # In this case, if the user has not set --sysconfdir, we set it
7629 # to the package default of /etc/bacula. If either --prefix or
7630 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7631 # ------------------------------------------------------------------
7632 if test x${prefix} = xNONE ; then
7633 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7634 sysconfdir=/etc/bacula
7638 sysconfdir=`eval echo ${sysconfdir}`
7639 datadir=`eval echo ${datadir}`
7640 localedir=`eval echo ${datadir}/locale`
7641 cat >>confdefs.h <<_ACEOF
7642 #define LOCALEDIR "$localedir"
7645 cat >>confdefs.h <<_ACEOF
7646 #define SYSCONFDIR "$sysconfdir"
7650 # -------------------------------------------------------------------------
7651 # If the user has not set --exec-prefix, we default to ${prefix}
7652 # -------------------------------------------------------------------------
7653 if test x${exec_prefix} = xNONE ; then
7654 exec_prefix=${prefix}
7657 # ------------------------------------------------------------------
7658 # If the user has not set --sbindir, we set our default as /sbin
7659 # ------------------------------------------------------------------
7660 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7661 sbindir=${exec_prefix}/sbin
7663 sbindir=`eval echo ${sbindir}`
7666 # -------------------------------------------------------------------------
7667 # If the user has not set --mandir, we default to /usr/share/man
7668 # -------------------------------------------------------------------------
7669 if test x$mandir = x'${prefix}/man' ; then
7670 mandir=/usr/share/man
7674 for ac_prog in msgfmt
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_MSGFMT+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 MSGFMT=$ac_cv_path_MSGFMT
7707 if test -n "$MSGFMT"; then
7708 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7709 echo "${ECHO_T}$MSGFMT" >&6; }
7711 { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7716 test -n "$MSGFMT" && break
7718 test -n "$MSGFMT" || MSGFMT="no"
7720 if test "$MSGFMT" = "no"
7722 echo 'msgfmt program not found, disabling NLS !'
7724 USE_INCLUDED_LIBINTL=no
7727 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7728 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7729 if test "${ac_cv_gnu_library_2+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 #include <features.h>
7740 #ifdef __GNU_LIBRARY__
7741 #if (__GLIBC__ >= 2)
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7749 ac_cv_gnu_library_2=yes
7751 ac_cv_gnu_library_2=no
7758 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7759 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7761 GLIBC2="$ac_cv_gnu_library_2"
7765 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7766 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7767 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_check_lib_save_LIBS=$LIBS
7771 LIBS="-lcposix $LIBS"
7772 cat >conftest.$ac_ext <<_ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7779 /* Override any GCC internal prototype to avoid an error.
7780 Use char because int might match the return type of a GCC
7781 builtin and then its argument prototype would still apply. */
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_link") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest$ac_exeext &&
7811 $as_test_x conftest$ac_exeext; then
7812 ac_cv_lib_cposix_strerror=yes
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 ac_cv_lib_cposix_strerror=no
7820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7821 conftest$ac_exeext conftest.$ac_ext
7822 LIBS=$ac_check_lib_save_LIBS
7824 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7825 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7826 if test $ac_cv_lib_cposix_strerror = yes; then
7827 LIBS="$LIBS -lcposix"
7832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7834 if test "${ac_cv_header_stdc+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_header_stdc=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_cv_header_stdc=no
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 if test $ac_cv_header_stdc = yes; then
7884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "memchr" >/dev/null 2>&1; then
7898 ac_cv_header_stdc=no
7904 if test $ac_cv_header_stdc = yes; then
7905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916 $EGREP "free" >/dev/null 2>&1; then
7919 ac_cv_header_stdc=no
7925 if test $ac_cv_header_stdc = yes; then
7926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7927 if test "$cross_compiling" = yes; then
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7942 # define ISLOWER(c) \
7943 (('a' <= (c) && (c) <= 'i') \
7944 || ('j' <= (c) && (c) <= 'r') \
7945 || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954 for (i = 0; i < 256; i++)
7955 if (XOR (islower (i), ISLOWER (i))
7956 || toupper (i) != TOUPPER (i))
7961 rm -f conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7983 echo "$as_me: program exited with status $ac_status" >&5
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7988 ac_cv_header_stdc=no
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7998 if test $ac_cv_header_stdc = yes; then
8000 cat >>confdefs.h <<\_ACEOF
8001 #define STDC_HEADERS 1
8006 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8007 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8008 if test "${ac_cv_c_const+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8021 /* FIXME: Include the comments suggested by Paul. */
8023 /* Ultrix mips cc rejects this. */
8024 typedef int charset[2];
8026 /* SunOS 4.1.1 cc rejects this. */
8027 char const *const *pcpcc;
8029 /* NEC SVR4.0.2 mips cc rejects this. */
8030 struct point {int x, y;};
8031 static struct point const zero = {0,0};
8032 /* AIX XL C 1.02.0.0 rejects this.
8033 It does not let you subtract one const X* pointer from another in
8034 an arm of an if-expression whose if-part is not a constant
8036 const char *g = "string";
8037 pcpcc = &g + (g ? g-g : 0);
8038 /* HPUX 7.0 cc rejects these. */
8040 ppc = (char**) pcpcc;
8041 pcpcc = (char const *const *) ppc;
8042 { /* SCO 3.2v4 cc rejects this. */
8044 char const *s = 0 ? (char *) 0 : (char const *) 0;
8049 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8051 const int *foo = &x[0];
8054 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8055 typedef const int *iptr;
8059 { /* AIX XL C 1.02.0.0 rejects this saying
8060 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8061 struct s { int j; const int *ap[3]; };
8062 struct s *b; b->j = 5;
8064 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8068 return !cs[0] && !zero.x;
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8103 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8104 if test $ac_cv_c_const = no; then
8106 cat >>confdefs.h <<\_ACEOF
8113 { echo "$as_me:$LINENO: checking for signed" >&5
8114 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8115 if test "${bh_cv_c_signed+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8161 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8162 if test $bh_cv_c_signed = no; then
8164 cat >>confdefs.h <<\_ACEOF
8170 { echo "$as_me:$LINENO: checking for inline" >&5
8171 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8172 if test "${ac_cv_c_inline+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 for ac_kw in inline __inline__ __inline; do
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8185 static $ac_kw foo_t static_foo () {return 0; }
8186 $ac_kw foo_t foo () {return 0; }
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.$ac_objext; then
8207 ac_cv_c_inline=$ac_kw
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 test "$ac_cv_c_inline" != no && break
8220 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8221 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8224 case $ac_cv_c_inline in
8227 case $ac_cv_c_inline in
8229 *) ac_val=$ac_cv_c_inline;;
8231 cat >>confdefs.h <<_ACEOF
8233 #define inline $ac_val
8239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8250 inttypes.h stdint.h unistd.h
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 cat >conftest.$ac_ext <<_ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 $ac_includes_default
8266 #include <$ac_header>
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest.$ac_objext; then
8285 eval "$as_ac_Header=yes"
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 eval "$as_ac_Header=no"
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 ac_res=`eval echo '${'$as_ac_Header'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8308 { echo "$as_me:$LINENO: checking for off_t" >&5
8309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8310 if test "${ac_cv_type_off_t+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8320 typedef off_t ac__type_new_;
8324 if ((ac__type_new_ *) 0)
8326 if (sizeof (ac__type_new_))
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 ac_cv_type_off_t=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8360 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8361 if test $ac_cv_type_off_t = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define off_t long int
8371 { echo "$as_me:$LINENO: checking for size_t" >&5
8372 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8373 if test "${ac_cv_type_size_t+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 typedef size_t ac__type_new_;
8387 if ((ac__type_new_ *) 0)
8389 if (sizeof (ac__type_new_))
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_type_size_t=yes
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_type_size_t=no
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8423 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8424 if test $ac_cv_type_size_t = yes; then
8428 cat >>confdefs.h <<_ACEOF
8429 #define size_t unsigned int
8435 { echo "$as_me:$LINENO: checking for long long" >&5
8436 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8437 if test "${ac_cv_type_long_long+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 long long ll = 1LL; int i = 63;
8450 long long llmax = (long long) -1;
8451 return ll << i | ll >> i | llmax / ll | llmax % ll;
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (ac_try="$ac_link"
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_link") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest$ac_exeext &&
8473 $as_test_x conftest$ac_exeext; then
8474 ac_cv_type_long_long=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_cv_type_long_long=no
8482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8483 conftest$ac_exeext conftest.$ac_ext
8485 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8486 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8487 if test $ac_cv_type_long_long = yes; then
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_LONG_LONG 1
8496 { echo "$as_me:$LINENO: checking for long double" >&5
8497 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8498 if test "${gt_cv_c_long_double+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 if test "$GCC" = yes; then
8502 gt_cv_c_long_double=yes
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8511 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8512 long double foo = 0.0;
8513 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8514 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 gt_cv_c_long_double=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 gt_cv_c_long_double=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8553 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8554 if test $gt_cv_c_long_double = yes; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_LONG_DOUBLE 1
8563 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8564 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8565 if test "${gt_cv_c_wchar_t+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 wchar_t foo = (wchar_t)'\0';
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_compile") 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest.$ac_objext; then
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8612 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8613 if test $gt_cv_c_wchar_t = yes; then
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_WCHAR_T 1
8622 { echo "$as_me:$LINENO: checking for wint_t" >&5
8623 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8624 if test "${gt_cv_c_wint_t+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8634 wint_t foo = (wchar_t)'\0';
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_compile") 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } && {
8657 test -z "$ac_c_werror_flag" ||
8658 test ! -s conftest.err
8659 } && test -s conftest.$ac_objext; then
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8671 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8672 if test $gt_cv_c_wint_t = yes; then
8674 cat >>confdefs.h <<\_ACEOF
8675 #define HAVE_WINT_T 1
8681 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8682 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8683 if test "${gl_cv_header_inttypes_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 #include <sys/types.h>
8693 #include <inttypes.h>
8697 uintmax_t i = (uintmax_t) -1;
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 gl_cv_header_inttypes_h=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 gl_cv_header_inttypes_h=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8730 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8731 if test $gl_cv_header_inttypes_h = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8740 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8741 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8742 if test "${gl_cv_header_stdint_h+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 #include <sys/types.h>
8756 uintmax_t i = (uintmax_t) -1;
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 gl_cv_header_stdint_h=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 gl_cv_header_stdint_h=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8789 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8790 if test $gl_cv_header_stdint_h = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_STDINT_H_WITH_UINTMAX 1
8801 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8802 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8803 if test "${gt_cv_c_intmax_t+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8815 #if HAVE_STDINT_H_WITH_UINTMAX
8818 #if HAVE_INTTYPES_H_WITH_UINTMAX
8819 #include <inttypes.h>
8830 rm -f conftest.$ac_objext
8831 if { (ac_try="$ac_compile"
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_compile") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest.$ac_objext; then
8847 gt_cv_c_intmax_t=yes
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8858 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8859 if test $gt_cv_c_intmax_t = yes; then
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_INTMAX_T 1
8869 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8870 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8871 if test "${gt_cv_func_printf_posix+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 if test "$cross_compiling" = yes; then
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8890 $EGREP "notposix" >/dev/null 2>&1; then
8891 gt_cv_func_printf_posix="guessing no"
8893 gt_cv_func_printf_posix="guessing yes"
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8908 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8909 dollar expansion (possibly an autoconf bug). */
8910 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8911 static char buf[100];
8914 sprintf (buf, format, 33, 55);
8915 return (strcmp (buf, "55 33") != 0);
8918 rm -f conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_link") 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 gt_cv_func_printf_posix=yes
8940 echo "$as_me: program exited with status $ac_status" >&5
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8945 gt_cv_func_printf_posix=no
8947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8953 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8954 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8955 case $gt_cv_func_printf_posix in
8958 cat >>confdefs.h <<\_ACEOF
8959 #define HAVE_POSIX_PRINTF 1
8965 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8966 # for constant arguments. Useless!
8967 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8968 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8969 if test "${ac_cv_working_alloca_h+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8982 char *p = (char *) alloca (2 * sizeof (int));
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest$ac_exeext &&
9005 $as_test_x conftest$ac_exeext; then
9006 ac_cv_working_alloca_h=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_working_alloca_h=no
9014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015 conftest$ac_exeext conftest.$ac_ext
9017 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9018 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9019 if test $ac_cv_working_alloca_h = yes; then
9021 cat >>confdefs.h <<\_ACEOF
9022 #define HAVE_ALLOCA_H 1
9027 { echo "$as_me:$LINENO: checking for alloca" >&5
9028 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9029 if test "${ac_cv_func_alloca_works+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 cat >conftest.$ac_ext <<_ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 # define alloca __builtin_alloca
9042 # include <malloc.h>
9043 # define alloca _alloca
9045 # ifdef HAVE_ALLOCA_H
9046 # include <alloca.h>
9051 # ifndef alloca /* predefined by HP cc +Olibcalls */
9062 char *p = (char *) alloca (1);
9068 rm -f conftest.$ac_objext conftest$ac_exeext
9069 if { (ac_try="$ac_link"
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_link") 2>conftest.er1
9077 grep -v '^ *+' conftest.er1 >conftest.err
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest$ac_exeext &&
9085 $as_test_x conftest$ac_exeext; then
9086 ac_cv_func_alloca_works=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 ac_cv_func_alloca_works=no
9094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095 conftest$ac_exeext conftest.$ac_ext
9097 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9098 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9100 if test $ac_cv_func_alloca_works = yes; then
9102 cat >>confdefs.h <<\_ACEOF
9103 #define HAVE_ALLOCA 1
9107 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9108 # that cause trouble. Some versions do not even contain alloca or
9109 # contain a buggy version. If you still want to use their alloca,
9110 # use ar to extract alloca.o from them instead of compiling alloca.c.
9112 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9114 cat >>confdefs.h <<\_ACEOF
9119 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9120 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9121 if test "${ac_cv_os_cray+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #if defined CRAY && ! defined CRAY2
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138 $EGREP "webecray" >/dev/null 2>&1; then
9146 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9147 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9148 if test $ac_cv_os_cray = yes; then
9149 for ac_func in _getb67 GETB67 getb67; do
9150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9164 #define $ac_func innocuous_$ac_func
9166 /* System header to define __stub macros and hopefully few prototypes,
9167 which can conflict with char $ac_func (); below.
9168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169 <limits.h> exists even on freestanding compilers. */
9172 # include <limits.h>
9174 # include <assert.h>
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9186 /* The GNU C library defines this for functions which it implements
9187 to always fail with ENOSYS. Some functions are actually named
9188 something starting with __ and the normal name is an alias. */
9189 #if defined __stub_$ac_func || defined __stub___$ac_func
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (ac_try="$ac_link"
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_link") 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest$ac_exeext &&
9218 $as_test_x conftest$ac_exeext; then
9219 eval "$as_ac_var=yes"
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 eval "$as_ac_var=no"
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9230 ac_res=`eval echo '${'$as_ac_var'}'`
9231 { echo "$as_me:$LINENO: result: $ac_res" >&5
9232 echo "${ECHO_T}$ac_res" >&6; }
9233 if test `eval echo '${'$as_ac_var'}'` = yes; then
9235 cat >>confdefs.h <<_ACEOF
9236 #define CRAY_STACKSEG_END $ac_func
9245 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9246 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9247 if test "${ac_cv_c_stack_direction+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 if test "$cross_compiling" = yes; then
9251 ac_cv_c_stack_direction=0
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9261 find_stack_direction ()
9263 static char *addr = 0;
9268 return find_stack_direction ();
9271 return (&dummy > addr) ? 1 : -1;
9277 return find_stack_direction () < 0;
9280 rm -f conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_link") 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_c_stack_direction=1
9302 echo "$as_me: program exited with status $ac_status" >&5
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_cv_c_stack_direction=-1
9309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9315 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9317 cat >>confdefs.h <<_ACEOF
9318 #define STACK_DIRECTION $ac_cv_c_stack_direction
9326 for ac_header in stdlib.h unistd.h
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9339 # Is the header compilable?
9340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 #include <$ac_header>
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1 >conftest.err
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.$ac_objext; then
9368 ac_header_compiler=yes
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_header_compiler=no
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9378 echo "${ECHO_T}$ac_header_compiler" >&6; }
9380 # Is the header present?
9381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9383 cat >conftest.$ac_ext <<_ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <$ac_header>
9391 if { (ac_try="$ac_cpp conftest.$ac_ext"
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } >/dev/null && {
9404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9407 ac_header_preproc=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_header_preproc=no
9415 rm -f conftest.err conftest.$ac_ext
9416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417 echo "${ECHO_T}$ac_header_preproc" >&6; }
9419 # So? What about this header?
9420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9426 ac_header_preproc=yes
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 eval "$as_ac_Header=\$ac_header_preproc"
9451 ac_res=`eval echo '${'$as_ac_Header'}'`
9452 { echo "$as_me:$LINENO: result: $ac_res" >&5
9453 echo "${ECHO_T}$ac_res" >&6; }
9456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9457 cat >>confdefs.h <<_ACEOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 for ac_func in getpagesize
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9482 #define $ac_func innocuous_$ac_func
9484 /* System header to define __stub macros and hopefully few prototypes,
9485 which can conflict with char $ac_func (); below.
9486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 <limits.h> exists even on freestanding compilers. */
9490 # include <limits.h>
9492 # include <assert.h>
9497 /* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
9504 /* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507 #if defined __stub_$ac_func || defined __stub___$ac_func
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_link") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest$ac_exeext &&
9536 $as_test_x conftest$ac_exeext; then
9537 eval "$as_ac_var=yes"
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 eval "$as_ac_var=no"
9545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9546 conftest$ac_exeext conftest.$ac_ext
9548 ac_res=`eval echo '${'$as_ac_var'}'`
9549 { echo "$as_me:$LINENO: result: $ac_res" >&5
9550 echo "${ECHO_T}$ac_res" >&6; }
9551 if test `eval echo '${'$as_ac_var'}'` = yes; then
9552 cat >>confdefs.h <<_ACEOF
9553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9559 { echo "$as_me:$LINENO: checking for working mmap" >&5
9560 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 if test "$cross_compiling" = yes; then
9565 ac_cv_func_mmap_fixed_mapped=no
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 $ac_includes_default
9574 /* malloc might have been renamed as rpl_malloc. */
9577 /* Thanks to Mike Haertel and Jim Avera for this test.
9578 Here is a matrix of mmap possibilities:
9579 mmap private not fixed
9580 mmap private fixed at somewhere currently unmapped
9581 mmap private fixed at somewhere already mapped
9582 mmap shared not fixed
9583 mmap shared fixed at somewhere currently unmapped
9584 mmap shared fixed at somewhere already mapped
9585 For private mappings, we should verify that changes cannot be read()
9586 back from the file, nor mmap's back from the file at a different
9587 address. (There have been systems where private was not correctly
9588 implemented like the infamous i386 svr4.0, and systems where the
9589 VM page cache was not coherent with the file system buffer cache
9590 like early versions of FreeBSD and possibly contemporary NetBSD.)
9591 For shared mappings, we should conversely verify that changes get
9592 propagated back to all the places they're supposed to be.
9594 Grep wants private fixed already mapped.
9595 The main things grep needs to know about mmap are:
9596 * does it exist and is it safe to write into the mmap'd area
9597 * how to use it (BSD variants) */
9600 #include <sys/mman.h>
9602 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9606 /* This mess was copied from the GNU getpagesize.h. */
9607 #ifndef HAVE_GETPAGESIZE
9608 /* Assume that all systems that can run configure have sys/param.h. */
9609 # ifndef HAVE_SYS_PARAM_H
9610 # define HAVE_SYS_PARAM_H 1
9613 # ifdef _SC_PAGESIZE
9614 # define getpagesize() sysconf(_SC_PAGESIZE)
9615 # else /* no _SC_PAGESIZE */
9616 # ifdef HAVE_SYS_PARAM_H
9617 # include <sys/param.h>
9618 # ifdef EXEC_PAGESIZE
9619 # define getpagesize() EXEC_PAGESIZE
9620 # else /* no EXEC_PAGESIZE */
9622 # define getpagesize() NBPG * CLSIZE
9625 # endif /* no CLSIZE */
9626 # else /* no NBPG */
9628 # define getpagesize() NBPC
9629 # else /* no NBPC */
9631 # define getpagesize() PAGESIZE
9632 # endif /* PAGESIZE */
9633 # endif /* no NBPC */
9634 # endif /* no NBPG */
9635 # endif /* no EXEC_PAGESIZE */
9636 # else /* no HAVE_SYS_PARAM_H */
9637 # define getpagesize() 8192 /* punt totally */
9638 # endif /* no HAVE_SYS_PARAM_H */
9639 # endif /* no _SC_PAGESIZE */
9641 #endif /* no HAVE_GETPAGESIZE */
9646 char *data, *data2, *data3;
9650 pagesize = getpagesize ();
9652 /* First, make a file with some known garbage in it. */
9653 data = (char *) malloc (pagesize);
9656 for (i = 0; i < pagesize; ++i)
9657 *(data + i) = rand ();
9659 fd = creat ("conftest.mmap", 0600);
9662 if (write (fd, data, pagesize) != pagesize)
9666 /* Next, try to mmap the file at a fixed address which already has
9667 something else allocated at it. If we can, also make sure that
9668 we see the same garbage. */
9669 fd = open ("conftest.mmap", O_RDWR);
9672 data2 = (char *) malloc (2 * pagesize);
9675 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9676 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9677 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9679 for (i = 0; i < pagesize; ++i)
9680 if (*(data + i) != *(data2 + i))
9683 /* Finally, make sure that changes to the mapped area do not
9684 percolate back to the file as seen by read(). (This is a bug on
9685 some variants of i386 svr4.0.) */
9686 for (i = 0; i < pagesize; ++i)
9687 *(data2 + i) = *(data2 + i) + 1;
9688 data3 = (char *) malloc (pagesize);
9691 if (read (fd, data3, pagesize) != pagesize)
9693 for (i = 0; i < pagesize; ++i)
9694 if (*(data + i) != *(data3 + i))
9700 rm -f conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_link") 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_func_mmap_fixed_mapped=yes
9722 echo "$as_me: program exited with status $ac_status" >&5
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_cv_func_mmap_fixed_mapped=no
9729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9734 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9735 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9736 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9738 cat >>confdefs.h <<\_ACEOF
9746 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9747 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9748 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 #include <features.h>
9759 #ifdef __GNU_LIBRARY__
9760 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9767 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9768 ac_cv_gnu_library_2_1=yes
9770 ac_cv_gnu_library_2_1=no
9777 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9778 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9780 GLIBC21="$ac_cv_gnu_library_2_1"
9785 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9786 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9787 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 if test "$cross_compiling" = yes; then
9793 # Guess based on the CPU.
9795 alpha* | i3456786 | m68k | s390*)
9796 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9798 gt_cv_int_divbyzero_sigfpe="guessing no";;
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9814 sigfpe_handler (int sig)
9816 sigfpe_handler (sig) int sig;
9819 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9820 exit (sig != SIGFPE);
9830 signal (SIGFPE, sigfpe_handler);
9831 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9832 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9833 signal (SIGTRAP, sigfpe_handler);
9835 /* Linux/SPARC yields signal SIGILL. */
9836 #if defined (__sparc__) && defined (__linux__)
9837 signal (SIGILL, sigfpe_handler);
9846 rm -f conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 gt_cv_int_divbyzero_sigfpe=yes
9868 echo "$as_me: program exited with status $ac_status" >&5
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9873 gt_cv_int_divbyzero_sigfpe=no
9875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9881 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9882 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9883 case "$gt_cv_int_divbyzero_sigfpe" in
9888 cat >>confdefs.h <<_ACEOF
9889 #define INTDIV0_RAISES_SIGFPE $value
9894 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9895 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9896 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 unsigned long long ull = 1ULL; int i = 63;
9909 unsigned long long ullmax = (unsigned long long) -1;
9910 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 ac_cv_type_unsigned_long_long=yes
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_type_unsigned_long_long=no
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9945 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9946 if test $ac_cv_type_unsigned_long_long = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_UNSIGNED_LONG_LONG 1
9957 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9959 test $ac_cv_type_unsigned_long_long = yes \
9960 && ac_type='unsigned long long' \
9961 || ac_type='unsigned long'
9963 cat >>confdefs.h <<_ACEOF
9964 #define uintmax_t $ac_type
9969 cat >>confdefs.h <<\_ACEOF
9970 #define HAVE_UINTMAX_T 1
9976 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9977 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9978 if test "${gt_cv_header_inttypes_h+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 #include <sys/types.h>
9989 #include <inttypes.h>
9998 rm -f conftest.$ac_objext
9999 if { (ac_try="$ac_compile"
10000 case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_compile") 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_c_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest.$ac_objext; then
10015 gt_cv_header_inttypes_h=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 gt_cv_header_inttypes_h=no
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10027 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10028 if test $gt_cv_header_inttypes_h = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_INTTYPES_H 1
10038 if test $gt_cv_header_inttypes_h = yes; then
10039 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10040 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10041 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #include <inttypes.h>
10064 rm -f conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 gt_cv_inttypes_pri_broken=no
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 gt_cv_inttypes_pri_broken=yes
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10093 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10095 if test "$gt_cv_inttypes_pri_broken" = yes; then
10097 cat >>confdefs.h <<_ACEOF
10098 #define PRI_MACROS_BROKEN 1
10105 for ac_header in stdint.h
10107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_res=`eval echo '${'$as_ac_Header'}'`
10115 { echo "$as_me:$LINENO: result: $ac_res" >&5
10116 echo "${ECHO_T}$ac_res" >&6; }
10118 # Is the header compilable?
10119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10128 #include <$ac_header>
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ac_header_compiler=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_header_compiler=no
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6; }
10159 # Is the header present?
10160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10170 if { (ac_try="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null && {
10183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10186 ac_header_preproc=yes
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_header_preproc=no
10194 rm -f conftest.err conftest.$ac_ext
10195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10196 echo "${ECHO_T}$ac_header_preproc" >&6; }
10198 # So? What about this header?
10199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10205 ac_header_preproc=yes
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 eval "$as_ac_Header=\$ac_header_preproc"
10230 ac_res=`eval echo '${'$as_ac_Header'}'`
10231 { echo "$as_me:$LINENO: result: $ac_res" >&5
10232 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10244 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10245 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10254 #include <limits.h>
10256 #include <stdint.h>
10263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10264 $EGREP "Found it" >/dev/null 2>&1; then
10269 if test -z "$result"; then
10270 if test "$cross_compiling" = yes; then
10271 # Depending upon the size, compute the lo and hi bounds.
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <stddef.h>
10282 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_compile") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest.$ac_objext; then
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 #include <stddef.h>
10318 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 ac_hi=$ac_mid; break
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_lo=`expr $ac_mid + 1`
10348 if test $ac_lo -le $ac_mid; then
10352 ac_mid=`expr 2 '*' $ac_mid + 1`
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 #include <stddef.h>
10371 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10387 grep -v '^ *+' conftest.er1 >conftest.err
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest.$ac_objext; then
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 #include <stddef.h>
10407 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10414 rm -f conftest.$ac_objext
10415 if { (ac_try="$ac_compile"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_compile") 2>conftest.er1
10423 grep -v '^ *+' conftest.er1 >conftest.err
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 } && test -s conftest.$ac_objext; then
10431 ac_lo=$ac_mid; break
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_hi=`expr '(' $ac_mid ')' - 1`
10437 if test $ac_mid -le $ac_hi; then
10441 ac_mid=`expr 2 '*' $ac_mid`
10444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 # Binary search between lo and hi bounds.
10458 while test "x$ac_lo" != "x$ac_hi"; do
10459 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 #include <stddef.h>
10470 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_compile") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest.$ac_objext; then
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_lo=`expr '(' $ac_mid ')' + 1`
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 ?*) res_hi=$ac_lo;;
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <stddef.h>
10516 static long int longval () { return ~(size_t)0 / 10; }
10517 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10519 #include <stdlib.h>
10524 FILE *f = fopen ("conftest.val", "w");
10527 if ((~(size_t)0 / 10) < 0)
10529 long int i = longval ();
10530 if (i != (~(size_t)0 / 10))
10532 fprintf (f, "%ld\n", i);
10536 unsigned long int i = ulongval ();
10537 if (i != (~(size_t)0 / 10))
10539 fprintf (f, "%lu\n", i);
10541 return ferror (f) || fclose (f) != 0;
10547 rm -f conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 res_hi=`cat conftest.val`
10569 echo "$as_me: program exited with status $ac_status" >&5
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ( exit $ac_status )
10576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10580 if test "$cross_compiling" = yes; then
10581 # Depending upon the size, compute the lo and hi bounds.
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <stddef.h>
10592 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_compile") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest.$ac_objext; then
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <stddef.h>
10628 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest.$ac_objext; then
10652 ac_hi=$ac_mid; break
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_lo=`expr $ac_mid + 1`
10658 if test $ac_lo -le $ac_mid; then
10662 ac_mid=`expr 2 '*' $ac_mid + 1`
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 #include <stddef.h>
10681 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_compile") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest.$ac_objext; then
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 #include <stddef.h>
10717 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10724 rm -f conftest.$ac_objext
10725 if { (ac_try="$ac_compile"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_compile") 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest.$ac_objext; then
10741 ac_lo=$ac_mid; break
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_hi=`expr '(' $ac_mid ')' - 1`
10747 if test $ac_mid -le $ac_hi; then
10751 ac_mid=`expr 2 '*' $ac_mid`
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 # Binary search between lo and hi bounds.
10768 while test "x$ac_lo" != "x$ac_hi"; do
10769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <stddef.h>
10780 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest.$ac_objext; then
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_lo=`expr '(' $ac_mid ')' + 1`
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 ?*) res_lo=$ac_lo;;
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <stddef.h>
10826 static long int longval () { return ~(size_t)0 % 10; }
10827 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10829 #include <stdlib.h>
10834 FILE *f = fopen ("conftest.val", "w");
10837 if ((~(size_t)0 % 10) < 0)
10839 long int i = longval ();
10840 if (i != (~(size_t)0 % 10))
10842 fprintf (f, "%ld\n", i);
10846 unsigned long int i = ulongval ();
10847 if (i != (~(size_t)0 % 10))
10849 fprintf (f, "%lu\n", i);
10851 return ferror (f) || fclose (f) != 0;
10857 rm -f conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_link") 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 res_lo=`cat conftest.val`
10879 echo "$as_me: program exited with status $ac_status" >&5
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ( exit $ac_status )
10886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10890 if test "$cross_compiling" = yes; then
10891 # Depending upon the size, compute the lo and hi bounds.
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10898 #include <stddef.h>
10902 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 #include <stddef.h>
10938 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10945 rm -f conftest.$ac_objext
10946 if { (ac_try="$ac_compile"
10947 case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_compile") 2>conftest.er1
10954 grep -v '^ *+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } && {
10959 test -z "$ac_c_werror_flag" ||
10960 test ! -s conftest.err
10961 } && test -s conftest.$ac_objext; then
10962 ac_hi=$ac_mid; break
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_lo=`expr $ac_mid + 1`
10968 if test $ac_lo -le $ac_mid; then
10972 ac_mid=`expr 2 '*' $ac_mid + 1`
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <stddef.h>
10991 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11017 cat >conftest.$ac_ext <<_ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11023 #include <stddef.h>
11027 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11034 rm -f conftest.$ac_objext
11035 if { (ac_try="$ac_compile"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.$ac_objext; then
11051 ac_lo=$ac_mid; break
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_hi=`expr '(' $ac_mid ')' - 1`
11057 if test $ac_mid -le $ac_hi; then
11061 ac_mid=`expr 2 '*' $ac_mid`
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 # Binary search between lo and hi bounds.
11078 while test "x$ac_lo" != "x$ac_hi"; do
11079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11080 cat >conftest.$ac_ext <<_ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <stddef.h>
11090 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11097 rm -f conftest.$ac_objext
11098 if { (ac_try="$ac_compile"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_compile") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_lo=`expr '(' $ac_mid ')' + 1`
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 ?*) fits_in_uint=$ac_lo;;
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <stddef.h>
11136 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11137 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11139 #include <stdlib.h>
11144 FILE *f = fopen ("conftest.val", "w");
11147 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11149 long int i = longval ();
11150 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11152 fprintf (f, "%ld\n", i);
11156 unsigned long int i = ulongval ();
11157 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11159 fprintf (f, "%lu\n", i);
11161 return ferror (f) || fclose (f) != 0;
11167 rm -f conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_link") 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 fits_in_uint=`cat conftest.val`
11189 echo "$as_me: program exited with status $ac_status" >&5
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ( exit $ac_status )
11196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11200 if test "$fits_in_uint" = 1; then
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <stddef.h>
11209 extern unsigned long foo;
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_compile") 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && {
11233 test -z "$ac_c_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest.$ac_objext; then
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 if test -z "$result"; then
11247 if test "$fits_in_uint" = 1; then
11248 result="$res_hi$res_lo"U
11250 result="$res_hi$res_lo"UL
11253 result='~(size_t)0'
11256 { echo "$as_me:$LINENO: result: $result" >&5
11257 echo "${ECHO_T}$result" >&6; }
11258 if test "$result" != yes; then
11260 cat >>confdefs.h <<_ACEOF
11261 #define SIZE_MAX $result
11270 for ac_header in stdint.h
11272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 ac_res=`eval echo '${'$as_ac_Header'}'`
11280 { echo "$as_me:$LINENO: result: $ac_res" >&5
11281 echo "${ECHO_T}$ac_res" >&6; }
11283 # Is the header compilable?
11284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 $ac_includes_default
11293 #include <$ac_header>
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 ac_header_compiler=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_header_compiler=no
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <$ac_header>
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null && {
11348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11351 ac_header_preproc=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_preproc=no
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11363 # So? What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc=yes
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 eval "$as_ac_Header=\$ac_header_preproc"
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11416 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11417 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11418 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef ptrdiff_t ac__type_new_;
11432 if ((ac__type_new_ *) 0)
11434 if (sizeof (ac__type_new_))
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.$ac_objext; then
11457 ac_cv_type_ptrdiff_t=yes
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_cv_type_ptrdiff_t=no
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11468 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11469 if test $ac_cv_type_ptrdiff_t = yes; then
11473 cat >>confdefs.h <<\_ACEOF
11474 #define ptrdiff_t long
11490 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11491 stdlib.h string.h unistd.h sys/param.h
11493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501 { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11504 # Is the header compilable?
11505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 $ac_includes_default
11514 #include <$ac_header>
11516 rm -f conftest.$ac_objext
11517 if { (ac_try="$ac_compile"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest.$ac_objext; then
11533 ac_header_compiler=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_header_compiler=no
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11543 echo "${ECHO_T}$ac_header_compiler" >&6; }
11545 # Is the header present?
11546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <$ac_header>
11556 if { (ac_try="$ac_cpp conftest.$ac_ext"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } >/dev/null && {
11569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11572 ac_header_preproc=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_preproc=no
11580 rm -f conftest.err conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6; }
11584 # So? What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11591 ac_header_preproc=yes
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11653 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11654 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11655 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11672 #define $ac_func innocuous_$ac_func
11674 /* System header to define __stub macros and hopefully few prototypes,
11675 which can conflict with char $ac_func (); below.
11676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677 <limits.h> exists even on freestanding compilers. */
11680 # include <limits.h>
11682 # include <assert.h>
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11694 /* The GNU C library defines this for functions which it implements
11695 to always fail with ENOSYS. Some functions are actually named
11696 something starting with __ and the normal name is an alias. */
11697 #if defined __stub_$ac_func || defined __stub___$ac_func
11704 return $ac_func ();
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_link") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && {
11723 test -z "$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 } && test -s conftest$ac_exeext &&
11726 $as_test_x conftest$ac_exeext; then
11727 eval "$as_ac_var=yes"
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 eval "$as_ac_var=no"
11735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736 conftest$ac_exeext conftest.$ac_ext
11738 ac_res=`eval echo '${'$as_ac_var'}'`
11739 { echo "$as_me:$LINENO: result: $ac_res" >&5
11740 echo "${ECHO_T}$ac_res" >&6; }
11741 if test `eval echo '${'$as_ac_var'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11751 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11752 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11753 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11768 char *p = (char *) _snprintf;
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest.$ac_objext; then
11792 ac_cv_have_decl__snprintf=yes
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_cv_have_decl__snprintf=no
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11803 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11804 if test $ac_cv_have_decl__snprintf = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define HAVE_DECL__SNPRINTF $gt_value
11816 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11817 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11818 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11833 char *p = (char *) _snwprintf;
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11857 ac_cv_have_decl__snwprintf=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_cv_have_decl__snwprintf=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11868 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11869 if test $ac_cv_have_decl__snwprintf = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_DECL__SNWPRINTF $gt_value
11882 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11883 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11884 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11898 #ifndef feof_unlocked
11899 char *p = (char *) feof_unlocked;
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_compile") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest.$ac_objext; then
11923 ac_cv_have_decl_feof_unlocked=yes
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 ac_cv_have_decl_feof_unlocked=no
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11934 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11935 if test $ac_cv_have_decl_feof_unlocked = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11947 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11948 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11949 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11963 #ifndef fgets_unlocked
11964 char *p = (char *) fgets_unlocked;
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.$ac_objext; then
11988 ac_cv_have_decl_fgets_unlocked=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_have_decl_fgets_unlocked=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11999 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12000 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12012 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12013 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12014 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12028 #ifndef getc_unlocked
12029 char *p = (char *) getc_unlocked;
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12045 grep -v '^ *+' conftest.er1 >conftest.err
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
12053 ac_cv_have_decl_getc_unlocked=yes
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_cv_have_decl_getc_unlocked=no
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12064 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12065 if test $ac_cv_have_decl_getc_unlocked = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12077 case $gt_cv_func_printf_posix in
12078 *yes) HAVE_POSIX_PRINTF=1 ;;
12079 *) HAVE_POSIX_PRINTF=0 ;;
12082 if test "$ac_cv_func_asprintf" = yes; then
12088 if test "$ac_cv_func_snprintf" = yes; then
12094 if test "$ac_cv_func_wprintf" = yes; then
12106 am_save_CPPFLAGS="$CPPFLAGS"
12108 for element in $INCICONV; do
12110 for x in $CPPFLAGS; do
12112 acl_save_prefix="$prefix"
12113 prefix="$acl_final_prefix"
12114 acl_save_exec_prefix="$exec_prefix"
12115 exec_prefix="$acl_final_exec_prefix"
12117 exec_prefix="$acl_save_exec_prefix"
12118 prefix="$acl_save_prefix"
12120 if test "X$x" = "X$element"; then
12125 if test -z "$haveit"; then
12126 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12131 { echo "$as_me:$LINENO: checking for iconv" >&5
12132 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12133 if test "${am_cv_func_iconv+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 am_cv_func_iconv="no, consider installing GNU libiconv"
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 #include <stdlib.h>
12150 iconv_t cd = iconv_open("","");
12151 iconv(cd,NULL,NULL,NULL,NULL);
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_link") 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest$ac_exeext &&
12174 $as_test_x conftest$ac_exeext; then
12175 am_cv_func_iconv=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12184 conftest$ac_exeext conftest.$ac_ext
12185 if test "$am_cv_func_iconv" != yes; then
12186 am_save_LIBS="$LIBS"
12187 LIBS="$LIBS $LIBICONV"
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 #include <stdlib.h>
12199 iconv_t cd = iconv_open("","");
12200 iconv(cd,NULL,NULL,NULL,NULL);
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext &&
12223 $as_test_x conftest$ac_exeext; then
12224 am_cv_lib_iconv=yes
12225 am_cv_func_iconv=yes
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LIBS="$am_save_LIBS"
12239 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12240 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12241 if test "$am_cv_func_iconv" = yes; then
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_ICONV 1
12248 if test "$am_cv_lib_iconv" = yes; then
12249 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12250 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12251 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12252 echo "${ECHO_T}$LIBICONV" >&6; }
12254 CPPFLAGS="$am_save_CPPFLAGS"
12261 if test "$am_cv_func_iconv" = yes; then
12262 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12263 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12264 if test "${am_cv_proto_iconv+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 #include <stdlib.h>
12281 #if defined(__STDC__) || defined(__cplusplus)
12282 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 am_cv_proto_iconv_arg1=""
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 am_cv_proto_iconv_arg1="const"
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 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);"
12324 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12325 { echo "$as_me:$LINENO: result: ${ac_t:-
12326 }$am_cv_proto_iconv" >&5
12327 echo "${ECHO_T}${ac_t:-
12328 }$am_cv_proto_iconv" >&6; }
12330 cat >>confdefs.h <<_ACEOF
12331 #define ICONV_CONST $am_cv_proto_iconv_arg1
12337 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12338 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12339 if test "${am_cv_langinfo_codeset+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include <langinfo.h>
12352 char* cs = nl_langinfo(CODESET);
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_link") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext &&
12374 $as_test_x conftest$ac_exeext; then
12375 am_cv_langinfo_codeset=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 am_cv_langinfo_codeset=no
12383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12388 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12389 if test $am_cv_langinfo_codeset = yes; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_LANGINFO_CODESET 1
12397 if test $ac_cv_header_locale_h = yes; then
12399 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12400 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12401 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <locale.h>
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 gt_cv_val_LC_MESSAGES=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 gt_cv_val_LC_MESSAGES=no
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12449 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12450 if test $gt_cv_val_LC_MESSAGES = yes; then
12452 cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_LC_MESSAGES 1
12460 if test -n "$INTL_MACOSX_LIBS"; then
12461 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12464 for ac_prog in bison
12466 # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12470 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 if test -n "$INTLBISON"; then
12474 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_prog_INTLBISON="$ac_prog"
12484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 INTLBISON=$ac_cv_prog_INTLBISON
12494 if test -n "$INTLBISON"; then
12495 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12496 echo "${ECHO_T}$INTLBISON" >&6; }
12498 { echo "$as_me:$LINENO: result: no" >&5
12499 echo "${ECHO_T}no" >&6; }
12503 test -n "$INTLBISON" && break
12506 if test -z "$INTLBISON"; then
12509 { echo "$as_me:$LINENO: checking version of bison" >&5
12510 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12511 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12512 case $ac_prog_version in
12513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12514 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12518 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12519 echo "${ECHO_T}$ac_prog_version" >&6; }
12521 if test $ac_verc_fail = yes; then
12540 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12541 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12542 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 gt_save_CPPFLAGS="$CPPFLAGS"
12546 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12547 gt_save_LIBS="$LIBS"
12548 LIBS="$LIBS -framework CoreFoundation"
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <CFPreferences.h>
12559 CFPreferencesCopyAppValue(NULL, NULL)
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext &&
12581 $as_test_x conftest$ac_exeext; then
12582 gt_cv_func_CFPreferencesCopyAppValue=yes
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 gt_cv_func_CFPreferencesCopyAppValue=no
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext
12592 CPPFLAGS="$gt_save_CPPFLAGS"
12593 LIBS="$gt_save_LIBS"
12595 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12596 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12597 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12604 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12605 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12606 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 gt_save_CPPFLAGS="$CPPFLAGS"
12610 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12611 gt_save_LIBS="$LIBS"
12612 LIBS="$LIBS -framework CoreFoundation"
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 #include <CFLocale.h>
12623 CFLocaleCopyCurrent();
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } && {
12642 test -z "$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 } && test -s conftest$ac_exeext &&
12645 $as_test_x conftest$ac_exeext; then
12646 gt_cv_func_CFLocaleCopyCurrent=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 gt_cv_func_CFLocaleCopyCurrent=no
12654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12655 conftest$ac_exeext conftest.$ac_ext
12656 CPPFLAGS="$gt_save_CPPFLAGS"
12657 LIBS="$gt_save_LIBS"
12659 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12660 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12661 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define HAVE_CFLOCALECOPYCURRENT 1
12669 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12670 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12676 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12677 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12678 # Check whether --enable-nls was given.
12679 if test "${enable_nls+set}" = set; then
12680 enableval=$enable_nls; USE_NLS=$enableval
12685 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12686 echo "${ECHO_T}$USE_NLS" >&6; }
12691 BUILD_INCLUDED_LIBINTL=no
12692 USE_INCLUDED_LIBINTL=no
12698 if test "$USE_NLS" = "yes"; then
12699 gt_use_preinstalled_gnugettext=no
12701 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12702 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12704 # Check whether --with-included-gettext was given.
12705 if test "${with_included_gettext+set}" = set; then
12706 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12708 nls_cv_force_use_gnu_gettext=no
12711 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12712 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12714 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12715 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12722 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12723 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12724 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <libintl.h>
12734 extern int _nl_msg_cat_cntr;
12735 extern int *_nl_domain_bindings;
12739 bindtextdomain ("", "");
12740 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_link") 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext &&
12762 $as_test_x conftest$ac_exeext; then
12763 gt_cv_func_gnugettext1_libc=yes
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 gt_cv_func_gnugettext1_libc=no
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772 conftest$ac_exeext conftest.$ac_ext
12774 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12775 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12777 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12783 acl_save_prefix="$prefix"
12784 prefix="$acl_final_prefix"
12785 acl_save_exec_prefix="$exec_prefix"
12786 exec_prefix="$acl_final_exec_prefix"
12788 eval additional_includedir=\"$includedir\"
12789 eval additional_libdir=\"$libdir\"
12791 exec_prefix="$acl_save_exec_prefix"
12792 prefix="$acl_save_prefix"
12795 # Check whether --with-libintl-prefix was given.
12796 if test "${with_libintl_prefix+set}" = set; then
12797 withval=$with_libintl_prefix;
12798 if test "X$withval" = "Xno"; then
12801 if test "X$withval" = "X"; then
12803 acl_save_prefix="$prefix"
12804 prefix="$acl_final_prefix"
12805 acl_save_exec_prefix="$exec_prefix"
12806 exec_prefix="$acl_final_exec_prefix"
12808 eval additional_includedir=\"$includedir\"
12809 eval additional_libdir=\"$libdir\"
12811 exec_prefix="$acl_save_exec_prefix"
12812 prefix="$acl_save_prefix"
12815 additional_includedir="$withval/include"
12816 additional_libdir="$withval/lib"
12827 names_already_handled=
12828 names_next_round='intl '
12829 while test -n "$names_next_round"; do
12830 names_this_round="$names_next_round"
12832 for name in $names_this_round; do
12834 for n in $names_already_handled; do
12835 if test "$n" = "$name"; then
12836 already_handled=yes
12840 if test -z "$already_handled"; then
12841 names_already_handled="$names_already_handled $name"
12842 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12843 eval value=\"\$HAVE_LIB$uppername\"
12844 if test -n "$value"; then
12845 if test "$value" = yes; then
12846 eval value=\"\$LIB$uppername\"
12847 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12848 eval value=\"\$LTLIB$uppername\"
12849 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12858 if test $use_additional = yes; then
12859 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12860 found_dir="$additional_libdir"
12861 found_so="$additional_libdir/lib$name.$shlibext"
12862 if test -f "$additional_libdir/lib$name.la"; then
12863 found_la="$additional_libdir/lib$name.la"
12866 if test -f "$additional_libdir/lib$name.$libext"; then
12867 found_dir="$additional_libdir"
12868 found_a="$additional_libdir/lib$name.$libext"
12869 if test -f "$additional_libdir/lib$name.la"; then
12870 found_la="$additional_libdir/lib$name.la"
12875 if test "X$found_dir" = "X"; then
12876 for x in $LDFLAGS $LTLIBINTL; do
12878 acl_save_prefix="$prefix"
12879 prefix="$acl_final_prefix"
12880 acl_save_exec_prefix="$exec_prefix"
12881 exec_prefix="$acl_final_exec_prefix"
12883 exec_prefix="$acl_save_exec_prefix"
12884 prefix="$acl_save_prefix"
12888 dir=`echo "X$x" | sed -e 's/^X-L//'`
12889 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12891 found_so="$dir/lib$name.$shlibext"
12892 if test -f "$dir/lib$name.la"; then
12893 found_la="$dir/lib$name.la"
12896 if test -f "$dir/lib$name.$libext"; then
12898 found_a="$dir/lib$name.$libext"
12899 if test -f "$dir/lib$name.la"; then
12900 found_la="$dir/lib$name.la"
12906 if test "X$found_dir" != "X"; then
12911 if test "X$found_dir" != "X"; then
12912 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12913 if test "X$found_so" != "X"; then
12914 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12915 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12918 for x in $ltrpathdirs; do
12919 if test "X$x" = "X$found_dir"; then
12924 if test -z "$haveit"; then
12925 ltrpathdirs="$ltrpathdirs $found_dir"
12927 if test "$hardcode_direct" = yes; then
12928 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12930 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12931 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12933 for x in $rpathdirs; do
12934 if test "X$x" = "X$found_dir"; then
12939 if test -z "$haveit"; then
12940 rpathdirs="$rpathdirs $found_dir"
12944 for x in $LDFLAGS $LIBINTL; do
12946 acl_save_prefix="$prefix"
12947 prefix="$acl_final_prefix"
12948 acl_save_exec_prefix="$exec_prefix"
12949 exec_prefix="$acl_final_exec_prefix"
12951 exec_prefix="$acl_save_exec_prefix"
12952 prefix="$acl_save_prefix"
12954 if test "X$x" = "X-L$found_dir"; then
12959 if test -z "$haveit"; then
12960 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12962 if test "$hardcode_minus_L" != no; then
12963 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12965 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12971 if test "X$found_a" != "X"; then
12972 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12974 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12977 additional_includedir=
12978 case "$found_dir" in
12980 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12981 additional_includedir="$basedir/include"
12984 if test "X$additional_includedir" != "X"; then
12985 if test "X$additional_includedir" != "X/usr/include"; then
12987 if test "X$additional_includedir" = "X/usr/local/include"; then
12988 if test -n "$GCC"; then
12990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12994 if test -z "$haveit"; then
12995 for x in $CPPFLAGS $INCINTL; do
12997 acl_save_prefix="$prefix"
12998 prefix="$acl_final_prefix"
12999 acl_save_exec_prefix="$exec_prefix"
13000 exec_prefix="$acl_final_exec_prefix"
13002 exec_prefix="$acl_save_exec_prefix"
13003 prefix="$acl_save_prefix"
13005 if test "X$x" = "X-I$additional_includedir"; then
13010 if test -z "$haveit"; then
13011 if test -d "$additional_includedir"; then
13012 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13018 if test -n "$found_la"; then
13019 save_libdir="$libdir"
13020 case "$found_la" in
13021 */* | *\\*) . "$found_la" ;;
13022 *) . "./$found_la" ;;
13024 libdir="$save_libdir"
13025 for dep in $dependency_libs; do
13028 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13029 if test "X$additional_libdir" != "X/usr/lib"; then
13031 if test "X$additional_libdir" = "X/usr/local/lib"; then
13032 if test -n "$GCC"; then
13034 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13038 if test -z "$haveit"; then
13040 for x in $LDFLAGS $LIBINTL; do
13042 acl_save_prefix="$prefix"
13043 prefix="$acl_final_prefix"
13044 acl_save_exec_prefix="$exec_prefix"
13045 exec_prefix="$acl_final_exec_prefix"
13047 exec_prefix="$acl_save_exec_prefix"
13048 prefix="$acl_save_prefix"
13050 if test "X$x" = "X-L$additional_libdir"; then
13055 if test -z "$haveit"; then
13056 if test -d "$additional_libdir"; then
13057 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13061 for x in $LDFLAGS $LTLIBINTL; do
13063 acl_save_prefix="$prefix"
13064 prefix="$acl_final_prefix"
13065 acl_save_exec_prefix="$exec_prefix"
13066 exec_prefix="$acl_final_exec_prefix"
13068 exec_prefix="$acl_save_exec_prefix"
13069 prefix="$acl_save_prefix"
13071 if test "X$x" = "X-L$additional_libdir"; then
13076 if test -z "$haveit"; then
13077 if test -d "$additional_libdir"; then
13078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13085 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13086 if test "$enable_rpath" != no; then
13088 for x in $rpathdirs; do
13089 if test "X$x" = "X$dir"; then
13094 if test -z "$haveit"; then
13095 rpathdirs="$rpathdirs $dir"
13098 for x in $ltrpathdirs; do
13099 if test "X$x" = "X$dir"; then
13104 if test -z "$haveit"; then
13105 ltrpathdirs="$ltrpathdirs $dir"
13110 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13113 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13116 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13123 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13124 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13130 if test "X$rpathdirs" != "X"; then
13131 if test -n "$hardcode_libdir_separator"; then
13133 for found_dir in $rpathdirs; do
13134 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13136 acl_save_libdir="$libdir"
13138 eval flag=\"$hardcode_libdir_flag_spec\"
13139 libdir="$acl_save_libdir"
13140 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13142 for found_dir in $rpathdirs; do
13143 acl_save_libdir="$libdir"
13144 libdir="$found_dir"
13145 eval flag=\"$hardcode_libdir_flag_spec\"
13146 libdir="$acl_save_libdir"
13147 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13151 if test "X$ltrpathdirs" != "X"; then
13152 for found_dir in $ltrpathdirs; do
13153 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13157 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13158 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13159 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 gt_save_CPPFLAGS="$CPPFLAGS"
13163 CPPFLAGS="$CPPFLAGS $INCINTL"
13164 gt_save_LIBS="$LIBS"
13165 LIBS="$LIBS $LIBINTL"
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 #include <libintl.h>
13173 extern int _nl_msg_cat_cntr;
13178 const char *_nl_expand_alias (const char *);
13182 bindtextdomain ("", "");
13183 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest$ac_exeext &&
13205 $as_test_x conftest$ac_exeext; then
13206 gt_cv_func_gnugettext1_libintl=yes
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 gt_cv_func_gnugettext1_libintl=no
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13216 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13217 LIBS="$LIBS $LIBICONV"
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 #include <libintl.h>
13225 extern int _nl_msg_cat_cntr;
13230 const char *_nl_expand_alias (const char *);
13234 bindtextdomain ("", "");
13235 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest$ac_exeext &&
13257 $as_test_x conftest$ac_exeext; then
13258 LIBINTL="$LIBINTL $LIBICONV"
13259 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13260 gt_cv_func_gnugettext1_libintl=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13270 conftest$ac_exeext conftest.$ac_ext
13272 CPPFLAGS="$gt_save_CPPFLAGS"
13273 LIBS="$gt_save_LIBS"
13275 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13276 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13279 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13280 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13281 && test "$PACKAGE" != gettext-runtime \
13282 && test "$PACKAGE" != gettext-tools; }; then
13283 gt_use_preinstalled_gnugettext=yes
13291 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13292 nls_cv_use_gnu_gettext=yes
13296 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13297 BUILD_INCLUDED_LIBINTL=yes
13298 USE_INCLUDED_LIBINTL=yes
13299 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13300 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13301 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13311 if test -n "$INTL_MACOSX_LIBS"; then
13312 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13314 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13315 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13319 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13320 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13322 cat >>confdefs.h <<\_ACEOF
13323 #define ENABLE_NLS 1
13331 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13332 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13333 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13334 echo "${ECHO_T}$USE_NLS" >&6; }
13335 if test "$USE_NLS" = "yes"; then
13336 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13337 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13338 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13339 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13340 gt_source="external libintl"
13345 gt_source="included intl directory"
13347 { echo "$as_me:$LINENO: result: $gt_source" >&5
13348 echo "${ECHO_T}$gt_source" >&6; }
13351 if test "$USE_NLS" = "yes"; then
13353 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13354 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13355 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13356 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13357 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13358 echo "${ECHO_T}$LIBINTL" >&6; }
13360 for element in $INCINTL; do
13362 for x in $CPPFLAGS; do
13364 acl_save_prefix="$prefix"
13365 prefix="$acl_final_prefix"
13366 acl_save_exec_prefix="$exec_prefix"
13367 exec_prefix="$acl_final_exec_prefix"
13369 exec_prefix="$acl_save_exec_prefix"
13370 prefix="$acl_save_prefix"
13372 if test "X$x" = "X$element"; then
13377 if test -z "$haveit"; then
13378 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_GETTEXT 1
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_DCGETTEXT 1
13400 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13401 BUILD_INCLUDED_LIBINTL=yes
13408 nls_cv_header_intl=
13409 nls_cv_header_libgt=
13421 if test "$USE_INCLUDED_LIBINTL" = yes; then
13422 INTLOBJS="\$(GETTOBJS)"
13426 INTL_LIBTOOL_SUFFIX_PREFIX=
13430 INTLLIBS="$LIBINTL"
13442 support_postgresql=no
13444 support_smartalloc=yes
13445 support_readline=yes
13449 support_wx_console=no
13454 support_static_tools=no
13455 support_static_fd=no
13456 support_static_sd=no
13457 support_static_dir=no
13458 support_static_cons=no
13460 build_client_only=no
13468 # -------------------------------------------
13469 # gnome (default off)
13470 # -------------------------------------------
13471 # Check whether --enable-gnome was given.
13472 if test "${enable_gnome+set}" = set; then
13473 enableval=$enable_gnome; if test x$enableval = xyes; then
13480 if test x$support_gnome = xyes; then
13481 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13483 if test $pkg = 0; then
13484 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13485 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13486 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13487 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13492 GNOME_DIR=src/gnome2-console
13493 gnome_version="Version 2.x"
13495 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13496 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13497 { (exit 1); exit 1; }; }
13502 # -------------------------------------------
13503 # bat (default off)
13504 # -------------------------------------------
13505 # Check whether --enable-bat was given.
13506 if test "${enable_bat+set}" = set; then
13507 enableval=$enable_bat; if test x$enableval = xyes; then
13509 cat >>confdefs.h <<\_ACEOF
13519 if test x$support_bat = xyes; then
13520 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13522 if test $pkg = 0; then
13523 BAT_DIR=src/qt-console
13525 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13526 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13527 { (exit 1); exit 1; }; }
13532 # If bat is enabled, we need the qwt library
13539 if test x$support_bat = xyes; then
13540 { echo "$as_me:$LINENO: checking for qwt support" >&5
13541 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13543 # Check whether --with-qwt was given.
13544 if test "${with_qwt+set}" = set; then
13546 case "$with_qwt" in
13551 if test -f ${with_qwt}/include/qwt.h; then
13552 QWT_INC="${with_qwt}/include"
13553 QWT_LDFLAGS="-L${with_qwt}/lib"
13564 # Search in standard places, or --with-qwt not specified
13566 if test $no_qwt = no; then
13567 if test x$QWT_INC = x; then
13568 for root in /usr /usr/local; do
13569 for ver in qwt qwt5 qwt-qt4; do
13570 if test -f ${root}/include/${ver}/qwt.h; then
13571 QWT_INC="${root}/include/${ver}"
13572 if test -d ${root}/lib64/; then
13573 QWT_LDFLAGS="-L${root}/lib64"
13575 QWT_LDFLAGS="-L${root}/lib"
13586 if test x$QWT_INC = x; then
13587 { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13591 cat >>confdefs.h <<\_ACEOF
13595 { echo "$as_me:$LINENO: result: yes" >&5
13596 echo "${ECHO_T}yes" >&6; }
13607 # -------------------------------------------
13608 # bwx-console (default off)
13609 # -------------------------------------------
13610 # Check whether --enable-bwx-console was given.
13611 if test "${enable_bwx_console+set}" = set; then
13612 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13613 support_wx_console=yes
13619 if test x$support_wx_console = xyes; then
13620 abc=`$WXCONFIG $WXFLAGS --cppflags`
13622 if test $pkg = 0; then
13623 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13624 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13625 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13629 WX_DIR=src/wx-console
13632 echo "wx-config program not found. bwx-console disabled."
13634 support_wx_console=no
13640 # -------------------------------------------
13641 # tray-monitor (default off)
13642 # -------------------------------------------
13643 # Check whether --enable-tray-monitor was given.
13644 if test "${enable_tray_monitor+set}" = set; then
13645 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13646 support_tray_monitor=yes
13652 if test x$support_tray_monitor = xyes; then
13653 abc=`$PKGCONFIG --exists gtk+-2.0`
13655 if test $pkg = 0; then
13656 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13657 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13660 TRAY_MONITOR_DIR=src/tray-monitor
13661 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13663 if test $pkg = 0; then
13665 cat >>confdefs.h <<\_ACEOF
13666 #define HAVE_GTK_2_4 1
13674 # -------------------------------------------
13675 # smartalloc (default off)
13676 # -------------------------------------------
13677 # Check whether --enable-smartalloc was given.
13678 if test "${enable_smartalloc+set}" = set; then
13679 enableval=$enable_smartalloc; if test x$enableval = xno; then
13680 support_smartalloc=no
13685 if test x$support_smartalloc = xyes; then
13687 cat >>confdefs.h <<\_ACEOF
13688 #define SMARTALLOC 1
13693 # -------------------------------------------
13694 # static-tools (default off)
13695 # -------------------------------------------
13696 # Check whether --enable-static-tools was given.
13697 if test "${enable_static_tools+set}" = set; then
13698 enableval=$enable_static_tools; if test x$enableval = xyes; then
13699 support_static_tools=yes
13705 if test x$support_static_tools = xyes; then
13706 TTOOL_LDFLAGS="-static"
13710 # -------------------------------------------
13711 # static-fd (default off)
13712 # -------------------------------------------
13713 # Check whether --enable-static-fd was given.
13714 if test "${enable_static_fd+set}" = set; then
13715 enableval=$enable_static_fd; if test x$enableval = xyes; then
13716 support_static_fd=yes
13722 if test x$support_static_fd = xyes; then
13723 STATIC_FD="static-bacula-fd"
13727 # -------------------------------------------
13728 # static-sd (default off)
13729 # -------------------------------------------
13730 # Check whether --enable-static-sd was given.
13731 if test "${enable_static_sd+set}" = set; then
13732 enableval=$enable_static_sd; if test x$enableval = xyes; then
13733 support_static_sd=yes
13739 if test x$support_static_sd = xyes; then
13740 STATIC_SD="static-bacula-sd"
13744 # -------------------------------------------
13745 # static-dir (default off)
13746 # -------------------------------------------
13747 # Check whether --enable-static-dir was given.
13748 if test "${enable_static_dir+set}" = set; then
13749 enableval=$enable_static_dir; if test x$enableval = xyes; then
13750 support_static_dir=yes
13756 if test x$support_static_dir = xyes; then
13757 STATIC_DIR="static-bacula-dir"
13761 # -------------------------------------------
13762 # static-cons (default off)
13763 # -------------------------------------------
13764 # Check whether --enable-static-cons was given.
13765 if test "${enable_static_cons+set}" = set; then
13766 enableval=$enable_static_cons; if test x$enableval = xyes; then
13767 support_static_cons=yes
13775 if test x$support_static_cons = xyes; then
13776 STATIC_CONS="static-bconsole"
13777 STATIC_GNOME_CONS="static-bgnome-console"
13778 STATIC_WX_CONS="static-bwx-console"
13784 # -------------------------------------------
13785 # client_only (default off)
13786 # -------------------------------------------
13787 # Check whether --enable-client-only was given.
13788 if test "${enable_client_only+set}" = set; then
13789 enableval=$enable_client_only; if test x$enableval = xyes; then
13790 build_client_only=yes
13796 if test x$build_client_only = xno; then
13803 # -------------------------------------------
13804 # director (default on)
13805 # -------------------------------------------
13806 # Check whether --enable-build-dird was given.
13807 if test "${enable_build_dird+set}" = set; then
13808 enableval=$enable_build_dird; if test x$enableval = xno; then
13813 if test x$build_dird = xyes; then
13814 DIRD_DIR="src/dird"
13815 DIR_TOOLS="DIRTOOLS"
13818 DIR_TOOLS="NODIRTOOLS"
13823 # -------------------------------------------
13824 # stored (default on)
13825 # -------------------------------------------
13826 # Check whether --enable-build-stored was given.
13827 if test "${enable_build_stored+set}" = set; then
13828 enableval=$enable_build_stored; if test x$enableval = xno; then
13833 if test x$build_stored = xyes; then
13834 STORED_DIR="src/stored"
13840 # ---------------------------------------------------
13841 # Check for conio (Bacula readline substitute)(
13842 # ---------------------------------------------------
13843 # this allows you to turn it completely off
13844 # Check whether --enable-conio was given.
13845 if test "${enable_conio+set}" = set; then
13846 enableval=$enable_conio; if test x$enableval = xno; then
13854 # ---------------------------------------------------
13855 # Check for IPv6 support
13856 # ---------------------------------------------------
13857 # this allows you to turn it completely off
13859 # Check whether --enable-ipv6 was given.
13860 if test "${enable_ipv6+set}" = set; then
13861 enableval=$enable_ipv6; if test x$enableval = xno; then
13868 if test x$support_ipv6 = xyes; then
13869 cat >conftest.$ac_ext <<_ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 #include <sys/types.h>
13876 #include <sys/socket.h>
13877 #include <netinet/in.h>
13881 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (ac_try="$ac_link"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_link") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest$ac_exeext &&
13903 $as_test_x conftest$ac_exeext; then
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13913 conftest$ac_exeext conftest.$ac_ext
13916 if test x$support_ipv6 = xyes; then
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_IPV6 1
13927 if test x$support_conio = xyes; then
13928 if test "${ac_cv_header_termcap_h+set}" = set; then
13929 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13930 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_termcap_h+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13935 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13937 # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13939 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 $ac_includes_default
13947 #include <termcap.h>
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13966 ac_header_compiler=yes
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_header_compiler=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13980 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <termcap.h>
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null && {
14002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14005 ac_header_preproc=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_preproc=no
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14017 # So? What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14020 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14024 ac_header_preproc=yes
14027 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14042 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14043 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14044 if test "${ac_cv_header_termcap_h+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_cv_header_termcap_h=$ac_header_preproc
14049 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14050 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14053 if test $ac_cv_header_termcap_h = yes; then
14054 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14055 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-ltermcap $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest$ac_exeext &&
14100 $as_test_x conftest$ac_exeext; then
14101 ac_cv_lib_termcap_tgetent=yes
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_cv_lib_termcap_tgetent=no
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14114 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14115 if test $ac_cv_lib_termcap_tgetent = yes; then
14116 CONS_LIBS="-ltermcap"
14120 support_readline=no
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_CONIO 1
14128 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14129 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14130 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-lncurses $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 /* Override any GCC internal prototype to avoid an error.
14143 Use char because int might match the return type of a GCC
14144 builtin and then its argument prototype would still apply. */
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest$ac_exeext &&
14174 $as_test_x conftest$ac_exeext; then
14175 ac_cv_lib_ncurses_tgetent=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_lib_ncurses_tgetent=no
14183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14187 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14188 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14189 if test $ac_cv_lib_ncurses_tgetent = yes; then
14190 CONS_LIBS="-lncurses"
14194 support_readline=no
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_CONIO 1
14210 for ac_header in curses.h
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 ac_res=`eval echo '${'$as_ac_Header'}'`
14220 { echo "$as_me:$LINENO: result: $ac_res" >&5
14221 echo "${ECHO_T}$ac_res" >&6; }
14223 # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <$ac_header>
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14244 grep -v '^ *+' conftest.er1 >conftest.err
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.$ac_objext; then
14252 ac_header_compiler=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_compiler=no
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14262 echo "${ECHO_T}$ac_header_compiler" >&6; }
14264 # Is the header present?
14265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <$ac_header>
14275 if { (ac_try="$ac_cpp conftest.$ac_ext"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null && {
14288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14291 ac_header_preproc=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_header_preproc=no
14299 rm -f conftest.err conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6; }
14303 # So? What about this header?
14304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14310 ac_header_preproc=yes
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 eval "$as_ac_Header=\$ac_header_preproc"
14335 ac_res=`eval echo '${'$as_ac_Header'}'`
14336 { echo "$as_me:$LINENO: result: $ac_res" >&5
14337 echo "${ECHO_T}$ac_res" >&6; }
14340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14349 { echo "$as_me:$LINENO: checking for term.h" >&5
14350 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14351 if test "${ac_cv_header_term_h+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 #include <curses.h>
14367 rm -f conftest.$ac_objext
14368 if { (ac_try="$ac_compile"
14369 case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_compile") 2>conftest.er1
14376 grep -v '^ *+' conftest.er1 >conftest.err
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest.$ac_objext; then
14384 ac_cv_header_term_h=yes
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 ac_cv_header_term_h=no
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14395 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14396 if test $ac_cv_header_term_h = yes; then
14397 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14398 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14399 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-lcurses $LIBS"
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_link") 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && {
14440 test -z "$ac_c_werror_flag" ||
14441 test ! -s conftest.err
14442 } && test -s conftest$ac_exeext &&
14443 $as_test_x conftest$ac_exeext; then
14444 ac_cv_lib_curses_tgetent=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_cv_lib_curses_tgetent=no
14452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14453 conftest$ac_exeext conftest.$ac_ext
14454 LIBS=$ac_check_lib_save_LIBS
14456 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14457 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14458 if test $ac_cv_lib_curses_tgetent = yes; then
14459 CONS_LIBS="-lcurses"
14463 support_readline=no
14465 cat >>confdefs.h <<\_ACEOF
14466 #define HAVE_CONIO 1
14474 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14485 # ---------------------------------------------------
14486 # Check for readline support/directory (default off)
14487 # ---------------------------------------------------
14488 # this allows you to turn it completely off
14489 # Check whether --enable-readline was given.
14490 if test "${enable_readline+set}" = set; then
14491 enableval=$enable_readline; if test x$enableval = xno; then
14492 support_readline=no
14499 if test x$support_readline = xyes; then
14501 # Check whether --with-readline was given.
14502 if test "${with_readline+set}" = set; then
14503 withval=$with_readline;
14504 case "$with_readline" in
14507 if test -f ${with_readline}/readline.h; then
14508 CONS_INC="-I${with_readline}"
14509 CONS_LDFLAGS="-L$with_readline"
14510 elif test -f ${with_readline}/include/readline/readline.h; then
14511 CONS_INC="-I${with_readline}/include/readline"
14512 CONS_LDFLAGS="-L${with_readline}/lib"
14513 with_readline="${with_readline}/include/readline"
14515 with_readline="/usr/include/readline"
14517 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14519 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14520 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 ac_res=`eval echo '${'$as_ac_Header'}'`
14525 { echo "$as_me:$LINENO: result: $ac_res" >&5
14526 echo "${ECHO_T}$ac_res" >&6; }
14528 # Is the header compilable?
14529 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14530 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 $ac_includes_default
14538 #include <${with_readline}/readline.h>
14540 rm -f conftest.$ac_objext
14541 if { (ac_try="$ac_compile"
14542 case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_compile") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest.$ac_objext; then
14557 ac_header_compiler=yes
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 ac_header_compiler=no
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14567 echo "${ECHO_T}$ac_header_compiler" >&6; }
14569 # Is the header present?
14570 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14571 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 #include <${with_readline}/readline.h>
14580 if { (ac_try="$ac_cpp conftest.$ac_ext"
14581 case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14588 grep -v '^ *+' conftest.er1 >conftest.err
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } >/dev/null && {
14593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14594 test ! -s conftest.err
14596 ac_header_preproc=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_header_preproc=no
14604 rm -f conftest.err conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14606 echo "${ECHO_T}$ac_header_preproc" >&6; }
14608 # So? What about this header?
14609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14611 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14615 ac_header_preproc=yes
14618 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14623 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14625 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14627 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14629 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14633 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14634 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 eval "$as_ac_Header=\$ac_header_preproc"
14640 ac_res=`eval echo '${'$as_ac_Header'}'`
14641 { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_READLINE 1
14651 CONS_LIBS="-lreadline -lhistory -ltermcap"
14656 echo "readline.h not found. readline turned off ..."
14668 # check for standard readline library
14669 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14670 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14671 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14672 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14676 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14678 # Is the header compilable?
14679 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14680 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include </usr/include/readline/readline.h>
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 ac_header_compiler=yes
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_header_compiler=no
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717 echo "${ECHO_T}$ac_header_compiler" >&6; }
14719 # Is the header present?
14720 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14721 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 #include </usr/include/readline/readline.h>
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } >/dev/null && {
14743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14746 ac_header_preproc=yes
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_header_preproc=no
14754 rm -f conftest.err conftest.$ac_ext
14755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14756 echo "${ECHO_T}$ac_header_preproc" >&6; }
14758 # So? What about this header?
14759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14761 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14765 ac_header_preproc=yes
14768 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14773 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14775 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14777 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14779 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14783 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14784 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14785 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14790 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14791 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14794 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_READLINE 1
14801 CONS_INC="-I/usr/include/readline"
14802 CONS_LIBS="-lreadline -ltermcap"
14806 # Did not find standard library, so try Bacula's default
14807 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14809 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14810 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_res=`eval echo '${'$as_ac_Header'}'`
14815 { echo "$as_me:$LINENO: result: $ac_res" >&5
14816 echo "${ECHO_T}$ac_res" >&6; }
14818 # Is the header compilable?
14819 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14820 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 $ac_includes_default
14828 #include <${TOP_DIR}/depkgs/readline/readline.h>
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1 >conftest.err
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
14847 ac_header_compiler=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_header_compiler=no
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14857 echo "${ECHO_T}$ac_header_compiler" >&6; }
14859 # Is the header present?
14860 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14861 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 #include <${TOP_DIR}/depkgs/readline/readline.h>
14870 if { (ac_try="$ac_cpp conftest.$ac_ext"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } >/dev/null && {
14883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14886 ac_header_preproc=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_header_preproc=no
14894 rm -f conftest.err conftest.$ac_ext
14895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14896 echo "${ECHO_T}$ac_header_preproc" >&6; }
14898 # So? What about this header?
14899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14901 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14905 ac_header_preproc=yes
14908 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14913 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14915 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14917 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14919 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14923 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14924 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 eval "$as_ac_Header=\$ac_header_preproc"
14930 ac_res=`eval echo '${'$as_ac_Header'}'`
14931 { echo "$as_me:$LINENO: result: $ac_res" >&5
14932 echo "${ECHO_T}$ac_res" >&6; }
14935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14937 cat >>confdefs.h <<\_ACEOF
14938 #define HAVE_READLINE 1
14942 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14943 CONS_LIBS="-lreadline -lhistory -ltermcap"
14944 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14945 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14949 echo "readline.h not found. readline turned off ..."
14976 # Minimal stuff for readline Makefile configuration
14979 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14981 if test "${ac_cv_header_stat_broken+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <sys/types.h>
14991 #include <sys/stat.h>
14993 #if defined S_ISBLK && defined S_IFDIR
14994 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14997 #if defined S_ISBLK && defined S_IFCHR
14998 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15001 #if defined S_ISLNK && defined S_IFREG
15002 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15005 #if defined S_ISSOCK && defined S_IFREG
15006 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 ac_cv_header_stat_broken=no
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_cv_header_stat_broken=yes
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15038 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15039 if test $ac_cv_header_stat_broken = yes; then
15041 cat >>confdefs.h <<\_ACEOF
15042 #define STAT_MACROS_BROKEN 1
15052 ac_header_dirent=no
15053 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15054 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15055 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15056 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 cat >conftest.$ac_ext <<_ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <sys/types.h>
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest.$ac_objext; then
15095 eval "$as_ac_Header=yes"
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 eval "$as_ac_Header=no"
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15109 cat >>confdefs.h <<_ACEOF
15110 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15113 ac_header_dirent=$ac_hdr; break
15117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15118 if test $ac_header_dirent = dirent.h; then
15119 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15121 if test "${ac_cv_search_opendir+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 ac_func_search_save_LIBS=$LIBS
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15147 for ac_lib in '' dir; do
15148 if test -z "$ac_lib"; then
15149 ac_res="none required"
15152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_search_opendir=$ac_res
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182 if test "${ac_cv_search_opendir+set}" = set; then
15186 if test "${ac_cv_search_opendir+set}" = set; then
15189 ac_cv_search_opendir=no
15191 rm conftest.$ac_ext
15192 LIBS=$ac_func_search_save_LIBS
15194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15196 ac_res=$ac_cv_search_opendir
15197 if test "$ac_res" != no; then
15198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15203 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15205 if test "${ac_cv_search_opendir+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 ac_func_search_save_LIBS=$LIBS
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15231 for ac_lib in '' x; do
15232 if test -z "$ac_lib"; then
15233 ac_res="none required"
15236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15238 rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_link") 2>conftest.er1
15247 grep -v '^ *+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } && {
15252 test -z "$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 } && test -s conftest$ac_exeext &&
15255 $as_test_x conftest$ac_exeext; then
15256 ac_cv_search_opendir=$ac_res
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266 if test "${ac_cv_search_opendir+set}" = set; then
15270 if test "${ac_cv_search_opendir+set}" = set; then
15273 ac_cv_search_opendir=no
15275 rm conftest.$ac_ext
15276 LIBS=$ac_func_search_save_LIBS
15278 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15279 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15280 ac_res=$ac_cv_search_opendir
15281 if test "$ac_res" != no; then
15282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15295 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 cat >conftest.$ac_ext <<_ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311 #define $ac_func innocuous_$ac_func
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15319 # include <limits.h>
15321 # include <assert.h>
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15333 /* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336 #if defined __stub_$ac_func || defined __stub___$ac_func
15343 return $ac_func ();
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext &&
15365 $as_test_x conftest$ac_exeext; then
15366 eval "$as_ac_var=yes"
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 eval "$as_ac_var=no"
15374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15375 conftest$ac_exeext conftest.$ac_ext
15377 ac_res=`eval echo '${'$as_ac_var'}'`
15378 { echo "$as_me:$LINENO: result: $ac_res" >&5
15379 echo "${ECHO_T}$ac_res" >&6; }
15380 if test `eval echo '${'$as_ac_var'}'` = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 for ac_func in nanosleep nl_langinfo
15392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15406 #define $ac_func innocuous_$ac_func
15408 /* System header to define __stub macros and hopefully few prototypes,
15409 which can conflict with char $ac_func (); below.
15410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15411 <limits.h> exists even on freestanding compilers. */
15414 # include <limits.h>
15416 # include <assert.h>
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15428 /* The GNU C library defines this for functions which it implements
15429 to always fail with ENOSYS. Some functions are actually named
15430 something starting with __ and the normal name is an alias. */
15431 #if defined __stub_$ac_func || defined __stub___$ac_func
15438 return $ac_func ();
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_link") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest$ac_exeext &&
15460 $as_test_x conftest$ac_exeext; then
15461 eval "$as_ac_var=yes"
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 eval "$as_ac_var=no"
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470 conftest$ac_exeext conftest.$ac_ext
15472 ac_res=`eval echo '${'$as_ac_var'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 if test `eval echo '${'$as_ac_var'}'` = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15484 for ac_header in varargs.h
15486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15497 # Is the header compilable?
15498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 $ac_includes_default
15507 #include <$ac_header>
15509 rm -f conftest.$ac_objext
15510 if { (ac_try="$ac_compile"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_compile") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && {
15523 test -z "$ac_c_werror_flag" ||
15524 test ! -s conftest.err
15525 } && test -s conftest.$ac_objext; then
15526 ac_header_compiler=yes
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_header_compiler=no
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6; }
15538 # Is the header present?
15539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <$ac_header>
15549 if { (ac_try="$ac_cpp conftest.$ac_ext"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } >/dev/null && {
15562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15565 ac_header_preproc=yes
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 ac_header_preproc=no
15573 rm -f conftest.err conftest.$ac_ext
15574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15575 echo "${ECHO_T}$ac_header_preproc" >&6; }
15577 # So? What about this header?
15578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15584 ac_header_preproc=yes
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 eval "$as_ac_Header=\$ac_header_preproc"
15609 ac_res=`eval echo '${'$as_ac_Header'}'`
15610 { echo "$as_me:$LINENO: result: $ac_res" >&5
15611 echo "${ECHO_T}$ac_res" >&6; }
15614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15615 cat >>confdefs.h <<_ACEOF
15616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 # End of readline/conio stuff
15625 # -----------------------------------------------------------------------
15627 # -----------------------------------------------------------------------
15628 # Check for Python support
15630 { echo "$as_me:$LINENO: checking for Python support" >&5
15631 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15633 # Check whether --with-python was given.
15634 if test "${with_python+set}" = set; then
15635 withval=$with_python;
15638 if test "$withval" != "no"; then
15639 if test "$withval" = "yes"; then
15640 for python_root in /usr /usr/local /usr/sfw; do
15641 for ver in python2.2 python2.3 python2.4 python2.5; do
15642 if test -f $python_root/include/${ver}/Python.h; then
15643 PYTHON_INCDIR=-I$python_root/include/${ver}
15644 if test -d $python_root/lib64/${ver}/config; then
15645 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15647 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15653 if test x$PYTHON_INCDIR = x; then
15654 if test -f $prefix/include/Python.h; then
15655 PYTHON_INCDIR=-I$prefix/include
15656 if test -d $prefix/lib64/config; then
15657 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15659 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15662 { echo "$as_me:$LINENO: result: no" >&5
15663 echo "${ECHO_T}no" >&6; }
15664 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15665 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15666 { (exit 1); exit 1; }; }
15670 if test -f $withval/Python.h; then
15671 PYTHON_INCDIR=-I$withval
15672 PYTHON_LIBS="-L$withval/config -lpython"
15673 elif test -f $withval/include/Python.h; then
15674 PYTHON_INCDIR=-I$withval/include
15675 if test -d $withval/lib64/config; then
15676 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15678 PYTHON_LIBS="-L$withval/lib/config -lpython"
15680 elif test -f $withval/include/python/Python.h; then
15681 PYTHON_INCDIR=-I$withval/include/python
15682 if test -d $withval/lib64/python/config; then
15683 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15685 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15688 { echo "$as_me:$LINENO: result: no" >&5
15689 echo "${ECHO_T}no" >&6; }
15690 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15691 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15692 { (exit 1); exit 1; }; }
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_PYTHON 1
15699 { echo "$as_me:$LINENO: result: yes" >&5
15700 echo "${ECHO_T}yes" >&6; }
15702 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15703 echo "$as_me: checking for more Python libs" >&6;}
15704 saved_LIBS="$LIBS"; LIBS=
15705 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15706 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15707 if test "${ac_cv_search_shm_open+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 ac_func_search_save_LIBS=$LIBS
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15718 /* Override any GCC internal prototype to avoid an error.
15719 Use char because int might match the return type of a GCC
15720 builtin and then its argument prototype would still apply. */
15728 return shm_open ();
15733 for ac_lib in '' rt; do
15734 if test -z "$ac_lib"; then
15735 ac_res="none required"
15738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15740 rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (ac_try="$ac_link"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_link") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } && {
15754 test -z "$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 } && test -s conftest$ac_exeext &&
15757 $as_test_x conftest$ac_exeext; then
15758 ac_cv_search_shm_open=$ac_res
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15768 if test "${ac_cv_search_shm_open+set}" = set; then
15772 if test "${ac_cv_search_shm_open+set}" = set; then
15775 ac_cv_search_shm_open=no
15777 rm conftest.$ac_ext
15778 LIBS=$ac_func_search_save_LIBS
15780 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15781 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15782 ac_res=$ac_cv_search_shm_open
15783 if test "$ac_res" != no; then
15784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15789 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15790 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_util_openpty+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-lutil $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_link") 2>conftest.er1
15827 grep -v '^ *+' conftest.er1 >conftest.err
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } && {
15832 test -z "$ac_c_werror_flag" ||
15833 test ! -s conftest.err
15834 } && test -s conftest$ac_exeext &&
15835 $as_test_x conftest$ac_exeext; then
15836 ac_cv_lib_util_openpty=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_lib_util_openpty=no
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15849 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15850 if test $ac_cv_lib_util_openpty = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBUTIL 1
15855 LIBS="-lutil $LIBS"
15859 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15862 { echo "$as_me:$LINENO: result: no" >&5
15863 echo "${ECHO_T}no" >&6; }
15868 { echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6; }
15877 # Find where sockets are (especially for Solaris)
15878 # Do this before the TCP Wrappers test since tcp wrappers
15879 # uses the socket library and some linkers are stupid.
15881 { echo "$as_me:$LINENO: checking for socket" >&5
15882 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15883 if test "${ac_cv_func_socket+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15894 #define socket innocuous_socket
15896 /* System header to define __stub macros and hopefully few prototypes,
15897 which can conflict with char socket (); below.
15898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899 <limits.h> exists even on freestanding compilers. */
15902 # include <limits.h>
15904 # include <assert.h>
15909 /* Override any GCC internal prototype to avoid an error.
15910 Use char because int might match the return type of a GCC
15911 builtin and then its argument prototype would still apply. */
15916 /* The GNU C library defines this for functions which it implements
15917 to always fail with ENOSYS. Some functions are actually named
15918 something starting with __ and the normal name is an alias. */
15919 #if defined __stub_socket || defined __stub___socket
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (ac_try="$ac_link"
15933 case "(($ac_try" in
15934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15935 *) ac_try_echo=$ac_try;;
15937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15938 (eval "$ac_link") 2>conftest.er1
15940 grep -v '^ *+' conftest.er1 >conftest.err
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } && {
15945 test -z "$ac_c_werror_flag" ||
15946 test ! -s conftest.err
15947 } && test -s conftest$ac_exeext &&
15948 $as_test_x conftest$ac_exeext; then
15949 ac_cv_func_socket=yes
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ac_cv_func_socket=no
15957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15958 conftest$ac_exeext conftest.$ac_ext
15960 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15961 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15962 if test $ac_cv_func_socket = yes; then
15963 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15964 echo "${ECHO_T}using libc's socket" >&6; }
15967 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15968 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lxnet $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext &&
16013 $as_test_x conftest$ac_exeext; then
16014 ac_cv_lib_xnet_socket=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_cv_lib_xnet_socket=no
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16026 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16027 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16028 if test $ac_cv_lib_xnet_socket = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define HAVE_LIBXNET 1
16033 LIBS="-lxnet $LIBS"
16038 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16039 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16040 if test "${ac_cv_lib_socket_socket+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 ac_check_lib_save_LIBS=$LIBS
16044 LIBS="-lsocket $LIBS"
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16052 /* Override any GCC internal prototype to avoid an error.
16053 Use char because int might match the return type of a GCC
16054 builtin and then its argument prototype would still apply. */
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (ac_try="$ac_link"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_link") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1 >conftest.err
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && {
16081 test -z "$ac_c_werror_flag" ||
16082 test ! -s conftest.err
16083 } && test -s conftest$ac_exeext &&
16084 $as_test_x conftest$ac_exeext; then
16085 ac_cv_lib_socket_socket=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_cv_lib_socket_socket=no
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094 conftest$ac_exeext conftest.$ac_ext
16095 LIBS=$ac_check_lib_save_LIBS
16097 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16098 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16099 if test $ac_cv_lib_socket_socket = yes; then
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_LIBSOCKET 1
16104 LIBS="-lsocket $LIBS"
16109 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16110 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16111 if test "${ac_cv_lib_inet_socket+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-linet $LIBS"
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16123 /* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 ac_cv_lib_inet_socket=yes
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 ac_cv_lib_inet_socket=no
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS
16168 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16169 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16170 if test $ac_cv_lib_inet_socket = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define HAVE_LIBINET 1
16175 LIBS="-linet $LIBS"
16183 # -----------------------------------------------------------
16184 # Check whether user wants TCP wrappers support (default off)
16185 # -----------------------------------------------------------
16189 # Check whether --with-tcp-wrappers was given.
16190 if test "${with_tcp_wrappers+set}" = set; then
16191 withval=$with_tcp_wrappers;
16192 if test "x$withval" != "xno" ; then
16194 LIBS="$saved_LIBS -lwrap"
16195 { echo "$as_me:$LINENO: checking for libwrap" >&5
16196 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16197 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16198 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16199 if test "${ac_cv_search_nanosleep+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 ac_func_search_save_LIBS=$LIBS
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16210 /* Override any GCC internal prototype to avoid an error.
16211 Use char because int might match the return type of a GCC
16212 builtin and then its argument prototype would still apply. */
16220 return nanosleep ();
16225 for ac_lib in '' rt; do
16226 if test -z "$ac_lib"; then
16227 ac_res="none required"
16230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16232 rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (ac_try="$ac_link"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_link") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest$ac_exeext &&
16249 $as_test_x conftest$ac_exeext; then
16250 ac_cv_search_nanosleep=$ac_res
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16260 if test "${ac_cv_search_nanosleep+set}" = set; then
16264 if test "${ac_cv_search_nanosleep+set}" = set; then
16267 ac_cv_search_nanosleep=no
16269 rm conftest.$ac_ext
16270 LIBS=$ac_func_search_save_LIBS
16272 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16273 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16274 ac_res=$ac_cv_search_nanosleep
16275 if test "$ac_res" != no; then
16276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <sys/types.h>
16288 int deny_severity = 0;
16289 int allow_severity = 0;
16290 struct request_info *req;
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && {
16313 test -z "$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 } && test -s conftest$ac_exeext &&
16316 $as_test_x conftest$ac_exeext; then
16318 { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16321 cat >>confdefs.h <<\_ACEOF
16322 #define HAVE_LIBWRAP 1
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16334 LIBS="$saved_LIBS -lwrap -lnsl"
16335 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 #include <sys/types.h>
16344 int deny_severity = 0;
16345 int allow_severity = 0;
16346 struct request_info *req;
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest$ac_exeext &&
16372 $as_test_x conftest$ac_exeext; then
16374 { echo "$as_me:$LINENO: result: yes" >&5
16375 echo "${ECHO_T}yes" >&6; }
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_LIBWRAP 1
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16390 echo "$as_me: error: *** libwrap missing" >&2;}
16391 { (exit 1); exit 1; }; }
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401 conftest$ac_exeext conftest.$ac_ext
16408 # -----------------------------------------------------------
16409 # Check whether OpenSSL is available
16410 # -----------------------------------------------------------
16411 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16412 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16414 # Check whether --with-openssl was given.
16415 if test "${with_openssl+set}" = set; then
16416 withval=$with_openssl; with_openssl_directory=${withval}
16420 if test "x$with_openssl_directory" != "x"; then
16421 OPENSSL_LIBS="-lssl -lcrypto"
16424 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16425 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16426 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16429 saved_LIBS="${LIBS}"
16430 saved_CFLAGS="${CFLAGS}"
16431 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16432 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 #include <openssl/ssl.h>
16444 CRYPTO_set_id_callback(NULL);
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_link") 2>conftest.er1
16458 grep -v '^ *+' conftest.er1 >conftest.err
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext &&
16466 $as_test_x conftest$ac_exeext; then
16469 support_crypto="yes"
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480 conftest$ac_exeext conftest.$ac_ext
16482 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #include <openssl/evp.h>
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_link") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest$ac_exeext &&
16514 $as_test_x conftest$ac_exeext; then
16515 ac_cv_openssl_sha2="yes"
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_cv_openssl_sha2="no"
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16527 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16528 # implementation, presumably for export reasons. If 192bit AES
16529 # is available, we assume that we're running with a 'non-export'
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <openssl/evp.h>
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_link") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && {
16560 test -z "$ac_c_werror_flag" ||
16561 test ! -s conftest.err
16562 } && test -s conftest$ac_exeext &&
16563 $as_test_x conftest$ac_exeext; then
16564 ac_cv_openssl_export="no"
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ac_cv_openssl_export="yes"
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574 conftest$ac_exeext conftest.$ac_ext
16576 LIBS="${saved_LIBS}"
16577 CFLAGS="${saved_CFLAGS}"
16579 if test "$support_tls" = "yes"; then
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_OPENSSL 1
16586 cat >>confdefs.h <<\_ACEOF
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_CRYPTO 1
16597 if test "$ac_cv_openssl_sha2" = "yes"; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_SHA2 1
16605 if test "$ac_cv_openssl_export" = "yes"; then
16607 cat >>confdefs.h <<\_ACEOF
16608 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16614 support_crypto="no"
16619 { echo "$as_me:$LINENO: result: $support_tls" >&5
16620 echo "${ECHO_T}$support_tls" >&6; }
16625 # -----------------------------------------------------------
16626 # dlopen is needed for plugins
16627 # -----------------------------------------------------------
16628 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16629 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16630 if test "${ac_cv_search_dlopen+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 ac_func_search_save_LIBS=$LIBS
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16656 for ac_lib in '' dl; do
16657 if test -z "$ac_lib"; then
16658 ac_res="none required"
16661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16663 rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest$ac_exeext &&
16680 $as_test_x conftest$ac_exeext; then
16681 ac_cv_search_dlopen=$ac_res
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16691 if test "${ac_cv_search_dlopen+set}" = set; then
16695 if test "${ac_cv_search_dlopen+set}" = set; then
16698 ac_cv_search_dlopen=no
16700 rm conftest.$ac_ext
16701 LIBS=$ac_func_search_save_LIBS
16703 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16704 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16705 ac_res=$ac_cv_search_dlopen
16706 if test "$ac_res" != no; then
16707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16712 # ------------------------------------------
16713 # Where to place working dir
16714 # ------------------------------------------
16715 working_dir=`eval echo ${prefix}/var/bacula/working`
16717 # Check whether --with-working-dir was given.
16718 if test "${with_working_dir+set}" = set; then
16719 withval=$with_working_dir;
16720 if test "x$withval" != "xno" ; then
16721 working_dir=$withval
16730 # ------------------------------------------------------------------
16731 # If the user has not set archivedir, we set our default as /tmp
16732 # ------------------------------------------------------------------
16735 # Check whether --with-archivedir was given.
16736 if test "${with_archivedir+set}" = set; then
16737 withval=$with_archivedir;
16738 if test "x$withval" != "xno" ; then
16739 archivedir=$withval
16750 # ------------------------------------------
16751 # Where to place scriptdir (script files)
16752 # ------------------------------------------
16753 scriptdir=`eval echo ${sysconfdir}`
16755 # Check whether --with-scriptdir was given.
16756 if test "${with_scriptdir+set}" = set; then
16757 withval=$with_scriptdir;
16758 if test "x$withval" != "xno" ; then
16769 # ------------------------------------------
16770 # Where to place plugindir (script files)
16771 # ------------------------------------------
16772 plugindir=`eval echo ${sysconfdir}`
16774 # Check whether --with-plugindir was given.
16775 if test "${with_plugindir+set}" = set; then
16776 withval=$with_plugindir;
16777 if test "x$withval" != "xno" ; then
16788 # ------------------------------------------
16789 # Where to send dump email
16790 # ------------------------------------------
16791 dump_email=root@localhost
16793 # Check whether --with-dump-email was given.
16794 if test "${with_dump_email+set}" = set; then
16795 withval=$with_dump_email;
16796 if test "x$withval" != "xno" ; then
16797 dump_email=$withval
16806 # ------------------------------------------
16807 # Where to send job email
16808 # ------------------------------------------
16809 job_email=root@localhost
16811 # Check whether --with-job-email was given.
16812 if test "${with_job_email+set}" = set; then
16813 withval=$with_job_email;
16814 if test "x$withval" != "xno" ; then
16824 # ------------------------------------------
16825 # Where to find smtp host
16826 # ------------------------------------------
16827 smtp_host=localhost
16829 # Check whether --with-smtp_host was given.
16830 if test "${with_smtp_host+set}" = set; then
16831 withval=$with_smtp_host;
16832 if test "x$withval" != "xno" ; then
16843 # ------------------------------------
16844 # Where to place pid files
16845 # ------------------------------------
16848 # Check whether --with-pid-dir was given.
16849 if test "${with_pid_dir+set}" = set; then
16850 withval=$with_pid_dir;
16851 if test "x$withval" != "xno" ; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define _PATH_BACULA_PIDDIR "$piddir"
16866 # ------------------------------------
16867 # Where to place subsys "lock file"
16868 # ------------------------------------
16869 subsysdir=/var/run/subsys
16870 if test -d /var/run/subsys; then
16871 subsysdir=/var/run/subsys
16872 elif test -d /var/lock/subsys; then
16873 subsysdir=/var/lock/subsys
16875 subsysdir=/var/run/subsys
16878 # Check whether --with-subsys-dir was given.
16879 if test "${with_subsys_dir+set}" = set; then
16880 withval=$with_subsys_dir;
16881 if test "x$withval" != "xno" ; then
16893 # ------------------------------------
16894 # Where to start assigning ports
16895 # ------------------------------------
16898 # Check whether --with-baseport was given.
16899 if test "${with_baseport+set}" = set; then
16900 withval=$with_baseport;
16901 if test "x$withval" != "xno" ; then
16910 dir_port=`expr $baseport`
16911 fd_port=`expr $baseport + 1`
16912 sd_port=`expr $fd_port + 1`
16919 # ------------------------------------------
16920 # Generate passwords
16921 # ------------------------------------------
16924 # Check whether --with-dir-password was given.
16925 if test "${with_dir_password+set}" = set; then
16926 withval=$with_dir_password;
16927 if test "x$withval" != "xno" ; then
16928 dir_password=$withval
16935 if test "x$dir_password" = "x" ; then
16936 if test "x$OPENSSL" = "xnone" ; then
16937 key=`autoconf/randpass 33`
16939 key=`openssl rand -base64 33`
16946 # Check whether --with-fd-password was given.
16947 if test "${with_fd_password+set}" = set; then
16948 withval=$with_fd_password;
16949 if test "x$withval" != "xno" ; then
16950 fd_password=$withval
16957 if test "x$fd_password" = "x" ; then
16958 if test "x$OPENSSL" = "xnone" ; then
16959 key=`autoconf/randpass 37`
16961 key=`openssl rand -base64 33`
16968 # Check whether --with-sd-password was given.
16969 if test "${with_sd_password+set}" = set; then
16970 withval=$with_sd_password;
16971 if test "x$withval" != "xno" ; then
16972 sd_password=$withval
16979 if test "x$sd_password" = "x" ; then
16980 if test "x$OPENSSL" = "xnone" ; then
16981 key=`autoconf/randpass 41`
16983 key=`openssl rand -base64 33`
16990 # Check whether --with-mon-dir-password was given.
16991 if test "${with_mon_dir_password+set}" = set; then
16992 withval=$with_mon_dir_password;
16993 if test "x$withval" != "xno" ; then
16994 mon_dir_password=$withval
17001 if test "x$mon_dir_password" = "x" ; then
17002 if test "x$OPENSSL" = "xnone" ; then
17003 key=`autoconf/randpass 33`
17005 key=`openssl rand -base64 33`
17007 mon_dir_password=$key
17012 # Check whether --with-mon-fd-password was given.
17013 if test "${with_mon_fd_password+set}" = set; then
17014 withval=$with_mon_fd_password;
17015 if test "x$withval" != "xno" ; then
17016 mon_fd_password=$withval
17023 if test "x$mon_fd_password" = "x" ; then
17024 if test "x$OPENSSL" = "xnone" ; then
17025 key=`autoconf/randpass 37`
17027 key=`openssl rand -base64 33`
17029 mon_fd_password=$key
17034 # Check whether --with-mon-sd-password was given.
17035 if test "${with_mon_sd_password+set}" = set; then
17036 withval=$with_mon_sd_password;
17037 if test "x$withval" != "xno" ; then
17038 mon_sd_password=$withval
17045 if test "x$mon_sd_password" = "x" ; then
17046 if test "x$OPENSSL" = "xnone" ; then
17047 key=`autoconf/randpass 41`
17049 key=`openssl rand -base64 33`
17051 mon_sd_password=$key
17062 # Pickup any database name
17066 # Check whether --with-db_name was given.
17067 if test "${with_db_name+set}" = set; then
17068 withval=$with_db_name;
17069 if test "x$withval" != "x" ; then
17080 # Check whether --with-db_user was given.
17081 if test "${with_db_user+set}" = set; then
17082 withval=$with_db_user;
17083 if test "x$withval" != "x" ; then
17094 # Check whether --with-db_password was given.
17095 if test "${with_db_password+set}" = set; then
17096 withval=$with_db_password;
17097 if test "x$withval" != "x" ; then
17098 db_password=$withval
17107 # Pickup a database port
17111 # Check whether --with-db_port was given.
17112 if test "${with_db_port+set}" = set; then
17113 withval=$with_db_port;
17114 if test "x$withval" != "x" ; then
17124 # Handle users and groups for each daemon
17128 # Check whether --with-dir_user was given.
17129 if test "${with_dir_user+set}" = set; then
17130 withval=$with_dir_user;
17131 if test "x$withval" != "x" ; then
17141 # Check whether --with-dir_group was given.
17142 if test "${with_dir_group+set}" = set; then
17143 withval=$with_dir_group;
17144 if test "x$withval" != "x" ; then
17154 # Check whether --with-sd_user was given.
17155 if test "${with_sd_user+set}" = set; then
17156 withval=$with_sd_user;
17157 if test "x$withval" != "x" ; then
17167 # Check whether --with-sd_group was given.
17168 if test "${with_sd_group+set}" = set; then
17169 withval=$with_sd_group;
17170 if test "x$withval" != "x" ; then
17180 # Check whether --with-fd_user was given.
17181 if test "${with_fd_user+set}" = set; then
17182 withval=$with_fd_user;
17183 if test "x$withval" != "x" ; then
17193 # Check whether --with-fd_group was given.
17194 if test "${with_fd_group+set}" = set; then
17195 withval=$with_fd_group;
17196 if test "x$withval" != "x" ; then
17212 # allow setting default executable permissions
17216 # Check whether --with-sbin-perm was given.
17217 if test "${with_sbin_perm+set}" = set; then
17218 withval=$with_sbin_perm;
17219 if test "x$withval" != "x" ; then
17229 # ------------------------------------------------
17230 # Bacula check for various SQL database engines
17231 # ------------------------------------------------
17235 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17236 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17238 # Check whether --with-postgresql was given.
17239 if test "${with_postgresql+set}" = set; then
17240 withval=$with_postgresql;
17241 if test "$withval" != "no"; then
17242 if test "$db_found" = "yes"; then
17243 { echo "$as_me:$LINENO: result: error" >&5
17244 echo "${ECHO_T}error" >&6; }
17245 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17246 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17247 { (exit 1); exit 1; }; };
17249 if test "$withval" = "yes"; then
17250 PG_CONFIG=`which pg_config`
17251 if test -n "$PG_CONFIG";then
17252 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17253 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17254 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17255 elif test -f /usr/local/include/libpq-fe.h; then
17256 POSTGRESQL_INCDIR=/usr/local/include
17257 if test -d /usr/local/lib64; then
17258 POSTGRESQL_LIBDIR=/usr/local/lib64
17260 POSTGRESQL_LIBDIR=/usr/local/lib
17262 POSTGRESQL_BINDIR=/usr/local/bin
17263 elif test -f /usr/include/libpq-fe.h; then
17264 POSTGRESQL_INCDIR=/usr/include
17265 if test -d /usr/lib64; then
17266 POSTGRESQL_LIBDIR=/usr/lib64
17268 POSTGRESQL_LIBDIR=/usr/lib
17270 POSTGRESQL_BINDIR=/usr/bin
17271 elif test -f /usr/include/pgsql/libpq-fe.h; then
17272 POSTGRESQL_INCDIR=/usr/include/pgsql
17273 if test -d /usr/lib64/pgsql; then
17274 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17276 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17278 POSTGRESQL_BINDIR=/usr/bin
17279 elif test -f /usr/include/postgresql/libpq-fe.h; then
17280 POSTGRESQL_INCDIR=/usr/include/postgresql
17281 if test -d /usr/lib64/postgresql; then
17282 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17284 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17286 POSTGRESQL_BINDIR=/usr/bin
17288 { echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6; }
17290 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17291 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17292 { (exit 1); exit 1; }; }
17294 elif test -f $withval/include/libpq-fe.h; then
17295 POSTGRESQL_INCDIR=$withval/include
17296 POSTGRESQL_LIBDIR=$withval/lib
17297 POSTGRESQL_BINDIR=$withval/bin
17298 elif test -f $withval/include/postgresql/libpq-fe.h; then
17299 POSTGRESQL_INCDIR=$withval/include/postgresql
17300 if test -d $withval/lib64; then
17301 POSTGRESQL_LIBDIR=$withval/lib64
17303 POSTGRESQL_LIBDIR=$withval/lib
17305 POSTGRESQL_BINDIR=$withval/bin
17307 { echo "$as_me:$LINENO: result: no" >&5
17308 echo "${ECHO_T}no" >&6; }
17309 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17310 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17311 { (exit 1); exit 1; }; }
17313 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17314 { echo "$as_me:$LINENO: checking for crypt" >&5
17315 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17316 if test "${ac_cv_func_crypt+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17327 #define crypt innocuous_crypt
17329 /* System header to define __stub macros and hopefully few prototypes,
17330 which can conflict with char crypt (); below.
17331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17332 <limits.h> exists even on freestanding compilers. */
17335 # include <limits.h>
17337 # include <assert.h>
17342 /* Override any GCC internal prototype to avoid an error.
17343 Use char because int might match the return type of a GCC
17344 builtin and then its argument prototype would still apply. */
17349 /* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352 #if defined __stub_crypt || defined __stub___crypt
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17382 ac_cv_func_crypt=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_cv_func_crypt=no
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17393 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17394 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17395 if test $ac_cv_func_crypt = yes; then
17398 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17399 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17400 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 ac_check_lib_save_LIBS=$LIBS
17404 LIBS="-lcrypt $LIBS"
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_link") 2>conftest.er1
17436 grep -v '^ *+' conftest.er1 >conftest.err
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && {
17441 test -z "$ac_c_werror_flag" ||
17442 test ! -s conftest.err
17443 } && test -s conftest$ac_exeext &&
17444 $as_test_x conftest$ac_exeext; then
17445 ac_cv_lib_crypt_crypt=yes
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 ac_cv_lib_crypt_crypt=no
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454 conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17457 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17458 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17459 if test $ac_cv_lib_crypt_crypt = yes; then
17460 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17465 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17466 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17467 SQL_BINDIR=$POSTGRESQL_BINDIR
17468 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17470 cat >>confdefs.h <<\_ACEOF
17471 #define HAVE_POSTGRESQL 1
17474 { echo "$as_me:$LINENO: result: yes" >&5
17475 echo "${ECHO_T}yes" >&6; }
17477 support_postgresql=yes
17481 { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17487 { echo "$as_me:$LINENO: result: no" >&5
17488 echo "${ECHO_T}no" >&6; }
17500 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17501 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17503 # Check whether --with-mysql was given.
17504 if test "${with_mysql+set}" = set; then
17505 withval=$with_mysql;
17506 if test "$withval" != "no"; then
17507 if test "$withval" = "yes"; then
17508 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17509 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17510 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17511 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17512 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17514 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17516 MYSQL_BINDIR=/usr/local/mysql/bin
17517 elif test -f /usr/include/mysql/mysql.h; then
17518 MYSQL_INCDIR=/usr/include/mysql
17519 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17520 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17521 MYSQL_LIBDIR=/usr/lib64/mysql
17522 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17523 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17524 MYSQL_LIBDIR=/usr/lib/mysql
17526 MYSQL_LIBDIR=/usr/lib
17528 MYSQL_BINDIR=/usr/bin
17529 elif test -f /usr/include/mysql.h; then
17530 MYSQL_INCDIR=/usr/include
17531 if test -f /usr/lib64/libmysqlclient_r.a \
17532 -o -f /usr/lib64/libmysqlclient_r.so; then
17533 MYSQL_LIBDIR=/usr/lib64
17535 MYSQL_LIBDIR=/usr/lib
17537 MYSQL_BINDIR=/usr/bin
17538 elif test -f /usr/local/include/mysql/mysql.h; then
17539 MYSQL_INCDIR=/usr/local/include/mysql
17540 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17541 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17542 MYSQL_LIBDIR=/usr/local/lib64/mysql
17544 MYSQL_LIBDIR=/usr/local/lib/mysql
17546 MYSQL_BINDIR=/usr/local/bin
17547 elif test -f /usr/local/include/mysql.h; then
17548 MYSQL_INCDIR=/usr/local/include
17549 if test -f /usr/local/lib64/libmysqlclient_r.a \
17550 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17551 MYSQL_LIBDIR=/usr/local/lib64
17553 MYSQL_LIBDIR=/usr/local/lib
17555 MYSQL_BINDIR=/usr/local/bin
17557 { echo "$as_me:$LINENO: result: no" >&5
17558 echo "${ECHO_T}no" >&6; }
17559 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17560 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17561 { (exit 1); exit 1; }; }
17564 if test -f $withval/include/mysql/mysql.h; then
17565 MYSQL_INCDIR=$withval/include/mysql
17566 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17567 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17568 MYSQL_LIBDIR=$withval/lib64/mysql
17570 MYSQL_LIBDIR=$withval/lib/mysql
17572 if test -f $withval/lib/libmysqlclient_r.so; then
17573 MYSQL_LIBDIR=$withval/lib
17576 MYSQL_BINDIR=$withval/bin
17577 elif test -f $withval/include/mysql.h; then
17578 MYSQL_INCDIR=$withval/include
17579 if test -f $withval/lib64/libmysqlclient_r.a \
17580 -o -f $withval/lib64/libmysqlclient_r.so; then
17581 MYSQL_LIBDIR=$withval/lib64
17583 MYSQL_LIBDIR=$withval/lib
17585 MYSQL_BINDIR=$withval/bin
17587 { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17589 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17590 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17591 { (exit 1); exit 1; }; }
17594 SQL_INCLUDE=-I$MYSQL_INCDIR
17595 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17596 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17597 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_THREAD_SAFE_MYSQL 1
17603 SQL_BINDIR=$MYSQL_BINDIR
17604 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17606 cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_MYSQL 1
17610 { echo "$as_me:$LINENO: result: yes" >&5
17611 echo "${ECHO_T}yes" >&6; }
17618 { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17627 # Check whether --with-embedded-mysql was given.
17628 if test "${with_embedded_mysql+set}" = set; then
17629 withval=$with_embedded_mysql;
17630 if test "$withval" != "no"; then
17631 if test "$withval" = "yes"; then
17632 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17633 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17634 if test -d /usr/local/mysql/lib64/mysql; then
17635 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17637 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17639 MYSQL_BINDIR=/usr/local/mysql/bin
17640 elif test -f /usr/include/mysql/mysql.h; then
17641 MYSQL_INCDIR=/usr/include/mysql
17642 if test -d /usr/lib64/mysql; then
17643 MYSQL_LIBDIR=/usr/lib64/mysql
17645 MYSQL_LIBDIR=/usr/lib/mysql
17647 MYSQL_BINDIR=/usr/bin
17648 elif test -f /usr/include/mysql.h; then
17649 MYSQL_INCDIR=/usr/include
17650 if test -d /usr/lib64; then
17651 MYSQL_LIBDIR=/usr/lib64
17653 MYSQL_LIBDIR=/usr/lib
17655 MYSQL_BINDIR=/usr/bin
17656 elif test -f /usr/local/include/mysql/mysql.h; then
17657 MYSQL_INCDIR=/usr/local/include/mysql
17658 if test -d /usr/local/lib64/mysql; then
17659 MYSQL_LIBDIR=/usr/local/lib64/mysql
17661 MYSQL_LIBDIR=/usr/local/lib/mysql
17663 MYSQL_BINDIR=/usr/local/bin
17664 elif test -f /usr/local/include/mysql.h; then
17665 MYSQL_INCDIR=/usr/local/include
17666 if test -d /usr/local/lib64; then
17667 MYSQL_LIBDIR=/usr/local/lib64
17669 MYSQL_LIBDIR=/usr/local/lib
17671 MYSQL_BINDIR=/usr/local/bin
17673 { echo "$as_me:$LINENO: result: no" >&5
17674 echo "${ECHO_T}no" >&6; }
17675 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17676 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17677 { (exit 1); exit 1; }; }
17680 if test -f $withval/include/mysql/mysql.h; then
17681 MYSQL_INCDIR=$withval/include/mysql
17682 if test -d $withval/lib64/mysql; then
17683 MYSQL_LIBDIR=$withval/lib64/mysql
17685 MYSQL_LIBDIR=$withval/lib/mysql
17687 MYSQL_BINDIR=$withval/bin
17688 elif test -f $withval/include/mysql.h; then
17689 MYSQL_INCDIR=$withval/include
17690 if test -d $withval/lib64; then
17691 MYSQL_LIBDIR=$withval/lib64
17693 MYSQL_LIBDIR=$withval/lib
17695 MYSQL_BINDIR=$withval/bin
17697 { echo "$as_me:$LINENO: result: no" >&5
17698 echo "${ECHO_T}no" >&6; }
17699 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17700 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17701 { (exit 1); exit 1; }; }
17704 SQL_INCLUDE=-I$MYSQL_INCDIR
17705 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17706 SQL_BINDIR=$MYSQL_BINDIR
17707 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17709 cat >>confdefs.h <<\_ACEOF
17710 #define HAVE_MYSQL 1
17713 cat >>confdefs.h <<\_ACEOF
17714 #define HAVE_EMBEDDED_MYSQL 1
17717 { echo "$as_me:$LINENO: result: yes" >&5
17718 echo "${ECHO_T}yes" >&6; }
17725 { echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6; }
17742 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17743 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17745 # Check whether --with-sqlite3 was given.
17746 if test "${with_sqlite3+set}" = set; then
17747 withval=$with_sqlite3;
17748 if test "$withval" != "no"; then
17749 if test "$withval" = "yes"; then
17750 if test -f /usr/local/include/sqlite3.h; then
17751 SQLITE_INCDIR=/usr/local/include
17752 if test -d /usr/local/lib64; then
17753 SQLITE_LIBDIR=/usr/local/lib64
17755 SQLITE_LIBDIR=/usr/local/lib
17757 SQLITE_BINDIR=/usr/local/bin
17758 elif test -f /usr/include/sqlite3.h; then
17759 SQLITE_INCDIR=/usr/include
17760 if test -d /usr/lib64; then
17761 SQLITE_LIBDIR=/usr/lib64
17763 SQLITE_LIBDIR=/usr/lib
17765 SQLITE_BINDIR=/usr/bin
17766 elif test -f $prefix/include/sqlite3.h; then
17767 SQLITE_INCDIR=$prefix/include
17768 if test -d $prefix/lib64; then
17769 SQLITE_LIBDIR=$prefix/lib64
17771 SQLITE_LIBDIR=$prefix/lib
17773 SQLITE_BINDIR=$prefix/bin
17775 { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17777 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17778 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17779 { (exit 1); exit 1; }; }
17782 if test -f $withval/sqlite3.h; then
17783 SQLITE_INCDIR=$withval
17784 SQLITE_LIBDIR=$withval
17785 SQLITE_BINDIR=$withval
17786 elif test -f $withval/include/sqlite3.h; then
17787 SQLITE_INCDIR=$withval/include
17788 if test -d $withval/lib64; then
17789 SQLITE_LIBDIR=$withval/lib64
17791 SQLITE_LIBDIR=$withval/lib
17793 SQLITE_BINDIR=$withval/bin
17795 { echo "$as_me:$LINENO: result: no" >&5
17796 echo "${ECHO_T}no" >&6; }
17797 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17798 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17799 { (exit 1); exit 1; }; }
17802 SQL_INCLUDE=-I$SQLITE_INCDIR
17803 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17804 SQL_BINDIR=$SQLITE_BINDIR
17805 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17807 cat >>confdefs.h <<\_ACEOF
17808 #define HAVE_SQLITE3 1
17811 { echo "$as_me:$LINENO: result: yes" >&5
17812 echo "${ECHO_T}yes" >&6; }
17814 support_sqlite3=yes
17819 { echo "$as_me:$LINENO: result: no" >&5
17820 echo "${ECHO_T}no" >&6; }
17825 { echo "$as_me:$LINENO: result: no" >&5
17826 echo "${ECHO_T}no" >&6; }
17838 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17839 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17841 # Check whether --with-sqlite was given.
17842 if test "${with_sqlite+set}" = set; then
17843 withval=$with_sqlite;
17844 if test "$withval" != "no"; then
17845 if test "$withval" = "yes"; then
17846 if test -f /usr/local/include/sqlite.h; then
17847 SQLITE_INCDIR=/usr/local/include
17848 if test -d /usr/local/lib64; then
17849 SQLITE_LIBDIR=/usr/local/lib64
17851 SQLITE_LIBDIR=/usr/local/lib
17853 SQLITE_BINDIR=/usr/local/bin
17854 elif test -f /usr/include/sqlite.h; then
17855 SQLITE_INCDIR=/usr/include
17856 if test -d /usr/lib64; then
17857 SQLITE_LIBDIR=/usr/lib64
17859 SQLITE_LIBDIR=/usr/lib
17861 SQLITE_BINDIR=/usr/bin
17862 elif test -f $prefix/include/sqlite.h; then
17863 SQLITE_INCDIR=$prefix/include
17864 if test -d $prefix/lib64; then
17865 SQLITE_LIBDIR=$prefix/lib64
17867 SQLITE_LIBDIR=$prefix/lib
17869 SQLITE_BINDIR=$prefix/bin
17871 { echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6; }
17873 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17874 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17875 { (exit 1); exit 1; }; }
17878 if test -f $withval/sqlite.h; then
17879 SQLITE_INCDIR=$withval
17880 SQLITE_LIBDIR=$withval
17881 SQLITE_BINDIR=$withval
17882 elif test -f $withval/include/sqlite.h; then
17883 SQLITE_INCDIR=$withval/include
17884 if test -d $withval/lib64; then
17885 SQLITE_LIBDIR=$withval/lib64
17887 SQLITE_LIBDIR=$withval/lib
17889 SQLITE_BINDIR=$withval/bin
17891 { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17893 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17894 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17895 { (exit 1); exit 1; }; }
17898 SQL_INCLUDE=-I$SQLITE_INCDIR
17899 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17900 SQL_BINDIR=$SQLITE_BINDIR
17901 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_SQLITE 1
17907 { echo "$as_me:$LINENO: result: yes" >&5
17908 echo "${ECHO_T}yes" >&6; }
17915 { echo "$as_me:$LINENO: result: no" >&5
17916 echo "${ECHO_T}no" >&6; }
17921 { echo "$as_me:$LINENO: result: no" >&5
17922 echo "${ECHO_T}no" >&6; }
17934 { echo "$as_me:$LINENO: checking for DBI support" >&5
17935 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17937 # Check whether --with-dbi was given.
17938 if test "${with_dbi+set}" = set; then
17940 if test "$withval" != "no"; then
17941 if test "$withval" = "yes"; then
17942 if test -f /usr/local/include/dbi/dbi.h; then
17943 DBI_INCDIR=/usr/local/dbi/include
17944 if test -d /usr/local/lib64; then
17945 DBI_LIBDIR=/usr/local/lib64
17947 DBI_LIBDIR=/usr/local/lib
17949 DBI_BINDIR=/usr/local/bin
17950 elif test -f /usr/include/dbi/dbi.h; then
17951 DBI_INCDIR=/usr/include
17952 if test -d /usr/lib64; then
17953 DBI_LIBDIR=/usr/lib64
17955 DBI_LIBDIR=/usr/lib
17957 DBI_BINDIR=/usr/bin
17958 elif test -f $prefix/include/dbi/dbi.h; then
17959 DBI_INCDIR=$prefix/include
17960 if test -d $prefix/lib64; then
17961 DBI_LIBDIR=$prefix/lib64
17963 DBI_LIBDIR=$prefix/lib
17965 DBI_BINDIR=$prefix/bin
17967 { echo "$as_me:$LINENO: result: no" >&5
17968 echo "${ECHO_T}no" >&6; }
17969 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17970 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17971 { (exit 1); exit 1; }; }
17973 if test -d /usr/local/lib/dbd; then
17974 DRIVERDIR=/usr/local/lib/dbd
17975 if test -d /usr/local/lib64/dbd; then
17976 DRIVERDIR=/usr/local/lib64/dbd
17978 DRIVERDIR=/usr/local/lib/dbd
17980 elif test -d /usr/lib/dbd; then
17981 DRIVERDIR=/usr/lib/dbd
17982 if test -d /usr/lib64/dbd; then
17983 DRIVERDIR=/usr/lib64/dbd
17985 DRIVERDIR=/usr/lib/dbd
17987 elif test -d $prefix/lib/dbd; then
17988 if test -d $prefix/lib64/dbd; then
17989 DRIVERDIR=$prefix/lib64/dbd
17991 DRIVERDIR=$prefix/lib/dbd
17994 { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17996 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17997 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17998 { (exit 1); exit 1; }; }
18001 if test -f $withval/dbi.h; then
18002 DBI_INCDIR=$withval
18003 DBI_LIBDIR=$withval
18004 DBI_BINDIR=$withval
18005 elif test -f $withval/include/dbi/dbi.h; then
18006 DBI_INCDIR=$withval/include
18007 if test -d $withval/lib64; then
18008 DBI_LIBDIR=$withval/lib64
18010 DBI_LIBDIR=$withval/lib
18012 DBI_BINDIR=$withval/bin
18014 { echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6; }
18016 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
18017 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
18018 { (exit 1); exit 1; }; }
18020 if test -d $withval/dbd; then
18021 DRIVERDIR=$withval/dbd
18022 elif test -d $withval/lib/; then
18023 if test -d $withval/lib64/dbd; then
18024 DRIVERDIR=$withval/lib64/dbd
18026 DRIVERDIR=$withval/lib/dbd
18029 { echo "$as_me:$LINENO: result: no" >&5
18030 echo "${ECHO_T}no" >&6; }
18031 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18032 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18033 { (exit 1); exit 1; }; }
18036 SQL_INCLUDE=-I$DBI_INCDIR
18037 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18038 SQL_BINDIR=$DBI_BINDIR
18039 SQL_LIB=$DBI_LIBDIR/libdbi.a
18040 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18043 cat >>confdefs.h <<\_ACEOF
18047 { echo "$as_me:$LINENO: result: yes" >&5
18048 echo "${ECHO_T}yes" >&6; }
18056 { echo "$as_me:$LINENO: result: no" >&5
18057 echo "${ECHO_T}no" >&6; }
18062 { echo "$as_me:$LINENO: result: no" >&5
18063 echo "${ECHO_T}no" >&6; }
18078 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18079 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18081 # Check whether --with-dbi-driver was given.
18082 if test "${with_dbi_driver+set}" = set; then
18083 withval=$with_dbi_driver;
18084 if test "$withval" != "no"; then
18088 if test -f /usr/local/mysql/bin/mysql; then
18089 SQL_BINDIR=/usr/local/mysql/bin
18090 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18091 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18092 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18094 SQL_LIBDIR=/usr/local/mysql/lib/mysql
18096 elif test -f /usr/bin/mysql; then
18097 SQL_BINDIR=/usr/bin
18098 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18099 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18100 SQL_LIBDIR=/usr/lib64/mysql
18101 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18102 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18103 SQL_LIBDIR=/usr/lib/mysql
18105 SQL_LIBDIR=/usr/lib
18107 elif test -f /usr/local/bin/mysql; then
18108 SQL_BINDIR=/usr/local/bin
18109 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18110 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18111 SQL_LIBDIR=/usr/local/lib64/mysql
18112 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18113 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18114 SQL_LIBDIR=/usr/local/lib/mysql
18116 SQL_LIBDIR=/usr/local/lib
18118 elif test -f $withval/bin/mysql; then
18119 SQL_BINDIR=$withval/bin
18120 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18121 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18122 SQL_LIBDIR=$withval/lib64/mysql
18123 elif test -f $withval/lib64/libmysqlclient_r.a \
18124 -o -f $withval/lib64/libmysqlclient_r.so; then
18125 SQL_LIBDIR=$withval/lib64
18126 elif test -f $withval/lib/libmysqlclient_r.a \
18127 -o -f $withval/lib/libmysqlclient_r.so; then
18128 SQL_LIBDIR=$withval/lib/
18130 SQL_LIBDIR=$withval/lib/mysql
18133 { echo "$as_me:$LINENO: result: no" >&5
18134 echo "${ECHO_T}no" >&6; }
18135 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18136 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18137 { (exit 1); exit 1; }; }
18139 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18142 db_prog="postgresql"
18143 PG_CONFIG=`which pg_config`
18144 if test -n "$PG_CONFIG"; then
18145 SQL_BINDIR=`"$PG_CONFIG" --bindir`
18146 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18147 elif test -f /usr/local/bin/psql; then
18148 SQL_BINDIR=/usr/local/bin
18149 if test -d /usr/local/lib64; then
18150 SQL_LIBDIR=/usr/local/lib64
18152 SQL_LIBDIR=/usr/local/lib
18154 elif test -f /usr/bin/psql; then
18155 SQL_BINDIR=/usr/local/bin
18156 if test -d /usr/lib64/postgresql; then
18157 SQL_LIBDIR=/usr/lib64/postgresql
18158 elif test -d /usr/lib/postgresql; then
18159 SQL_LIBDIR=/usr/lib/postgresql
18160 elif test -d /usr/lib64; then
18161 SQL_LIBDIR=/usr/lib64
18163 SQL_LIBDIR=/usr/lib
18165 elif test -f $withval/bin/psql; then
18166 SQL_BINDIR=$withval/bin
18167 if test -d $withval/lib64; then
18168 SQL_LIBDIR=$withval/lib64
18170 SQL_LIBDIR=$withval/lib
18173 { echo "$as_me:$LINENO: result: no" >&5
18174 echo "${ECHO_T}no" >&6; }
18175 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18176 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18177 { (exit 1); exit 1; }; }
18179 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18183 if test -f /usr/local/bin/sqlite; then
18184 SQL_BINDIR=/usr/local/bin
18185 if test -d /usr/local/lib64; then
18186 SQL_LIBDIR=/usr/local/lib64
18188 SQL_LIBDIR=/usr/local/lib
18190 elif test -f /usr/bin/sqlite; then
18191 SQL_BINDIR=/usr/bin
18192 if test -d /usr/lib64; then
18193 SQL_LIBDIR=/usr/lib64
18195 SQL_LIBDIR=/usr/lib
18197 elif test -f $withval/bin/sqlite; then
18198 SQL_BINDIR=$withval/bin
18199 if test -d $withval/lib64; then
18200 SQL_LIBDIR=$withval/lib64
18202 SQL_LIBDIR=$withval/lib
18205 { echo "$as_me:$LINENO: result: no" >&5
18206 echo "${ECHO_T}no" >&6; }
18207 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18208 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18209 { (exit 1); exit 1; }; }
18211 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
18215 if test -f /usr/local/bin/sqlite3; then
18216 SQL_BINDIR=/usr/local/bin
18217 if test -d /usr/local/lib64; then
18218 SQL_LIBDIR=/usr/local/lib64
18220 SQL_LIBDIR=/usr/local/lib
18222 elif test -f /usr/bin/sqlite3; then
18223 SQL_BINDIR=/usr/bin
18224 if test -d /usr/lib64; then
18225 SQL_LIBDIR=/usr/lib64
18227 SQL_LIBDIR=/usr/lib
18229 elif test -f $withval/bin/sqlite3; then
18230 SQL_BINDIR=$withval/bin
18231 if test -d $withval/lib64; then
18232 SQL_LIBDIR=$withval/lib64
18234 SQL_LIBDIR=$withval/lib
18237 { echo "$as_me:$LINENO: result: no" >&5
18238 echo "${ECHO_T}no" >&6; }
18239 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18240 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18241 { (exit 1); exit 1; }; }
18243 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
18246 { echo "$as_me:$LINENO: result: no" >&5
18247 echo "${ECHO_T}no" >&6; }
18248 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18249 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18250 { (exit 1); exit 1; }; }
18254 { echo "$as_me:$LINENO: result: yes" >&5
18255 echo "${ECHO_T}yes" >&6; }
18258 { echo "$as_me:$LINENO: result: no" >&5
18259 echo "${ECHO_T}no" >&6; }
18264 { echo "$as_me:$LINENO: result: no" >&5
18265 echo "${ECHO_T}no" >&6; }
18278 # -------------------------------------------
18279 # enable batch attribute DB insert (default on)
18280 # -------------------------------------------
18281 support_batch_insert=no
18282 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18284 if test $pkg = 0; then
18285 support_batch_insert=yes
18286 # Check whether --enable-batch-insert was given.
18287 if test "${enable_batch_insert+set}" = set; then
18288 enableval=$enable_batch_insert; if test x$enableval = xno; then
18289 support_batch_insert=no
18291 support_batch_insert=yes
18297 # Check if postgresql support batch mode
18298 if test x$DB_TYPE = xpostgresql; then
18299 A=`nm $SQL_LIB | grep PQputCopyData`
18301 if test $pkg != 0; then
18302 support_batch_insert=no
18306 if test x$DB_TYPE = xdbi; then
18310 # Check for batch insert
18311 if test $DB_PROG = postgresql; then
18312 A=`nm $DB_PROG_LIB | grep PQputCopyData`
18316 if test $DB_PROG = mysql; then
18317 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18321 if test $DB_PROG = sqlite3; then
18322 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18326 if test $pkg = 0; then
18327 # Check whether --enable-batch-insert was given.
18328 if test "${enable_batch_insert+set}" = set; then
18329 enableval=$enable_batch_insert; if test x$enableval = xno; then
18330 support_batch_insert=no
18332 support_batch_insert=yes
18338 # If dbi was not chosen, let the comment in file
18344 if test $support_batch_insert = yes ; then
18346 cat >>confdefs.h <<\_ACEOF
18347 #define HAVE_BATCH_FILE_INSERT 1
18353 cat >>confdefs.h <<\_ACEOF
18354 #define PROTOTYPES 1
18358 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18359 if test -z "$CCOPTS"; then
18360 CCOPTS='-g -O2 -Wall'
18368 largefile_support="no"
18370 # Check whether --enable-largefile was given.
18371 if test "${enable_largefile+set}" = set; then
18372 enableval=$enable_largefile;
18375 if test "$enable_largefile" != no; then
18376 if test -n "$ac_tool_prefix"; then
18377 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18378 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18381 if test "${ac_cv_prog_GETCONF+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 if test -n "$GETCONF"; then
18385 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18388 for as_dir in $PATH
18391 test -z "$as_dir" && as_dir=.
18392 for ac_exec_ext in '' $ac_executable_extensions; do
18393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18394 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18404 GETCONF=$ac_cv_prog_GETCONF
18405 if test -n "$GETCONF"; then
18406 { echo "$as_me:$LINENO: result: $GETCONF" >&5
18407 echo "${ECHO_T}$GETCONF" >&6; }
18409 { echo "$as_me:$LINENO: result: no" >&5
18410 echo "${ECHO_T}no" >&6; }
18415 if test -z "$ac_cv_prog_GETCONF"; then
18416 ac_ct_GETCONF=$GETCONF
18417 # Extract the first word of "getconf", so it can be a program name with args.
18418 set dummy getconf; ac_word=$2
18419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18421 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 if test -n "$ac_ct_GETCONF"; then
18425 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18428 for as_dir in $PATH
18431 test -z "$as_dir" && as_dir=.
18432 for ac_exec_ext in '' $ac_executable_extensions; do
18433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18434 ac_cv_prog_ac_ct_GETCONF="getconf"
18435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18444 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18445 if test -n "$ac_ct_GETCONF"; then
18446 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18447 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18449 { echo "$as_me:$LINENO: result: no" >&5
18450 echo "${ECHO_T}no" >&6; }
18453 if test "x$ac_ct_GETCONF" = x; then
18456 case $cross_compiling:$ac_tool_warned in
18458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18459 whose name does not start with the host triplet. If you think this
18460 configuration is useful to you, please write to autoconf@gnu.org." >&5
18461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18462 whose name does not start with the host triplet. If you think this
18463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18464 ac_tool_warned=yes ;;
18466 GETCONF=$ac_ct_GETCONF
18469 GETCONF="$ac_cv_prog_GETCONF"
18472 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18473 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18474 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18478 ac_cv_sys_largefile_CFLAGS=no
18480 # IRIX 6.2 and later require cc -n32.
18481 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18482 if test "$GCC" != yes; then
18483 ac_cv_sys_largefile_CFLAGS=-n32
18486 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_link") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest$ac_exeext &&
18519 $as_test_x conftest$ac_exeext; then
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18525 ac_cv_sys_largefile_CFLAGS=no
18528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18529 conftest$ac_exeext conftest.$ac_ext
18534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18535 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18536 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18537 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18538 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18542 ac_cv_sys_largefile_LDFLAGS=no
18546 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18547 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18548 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18549 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18550 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18554 ac_cv_sys_largefile_LIBS=no
18558 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18559 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18561 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18564 -D_FILE_OFFSET_BITS=*) ;;
18565 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18566 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18571 case "$CPPFLAGS" in
18572 '') CPPFLAGS="$ac_flag" ;;
18573 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18581 '') CFLAGS="$ac_flag" ;;
18582 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18587 case "$ac_cv_sys_largefile_LDFLAGS" in
18591 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18592 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18595 case "$ac_cv_sys_largefile_LIBS" in
18599 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18600 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18603 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18604 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18605 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 ac_cv_sys_file_offset_bits=no
18609 ac_cv_sys_file_offset_bits=64
18610 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18612 -D_FILE_OFFSET_BITS)
18613 ac_cv_sys_file_offset_bits=1 ;;
18614 -D_FILE_OFFSET_BITS=*)
18615 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18620 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18621 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18622 if test "$ac_cv_sys_file_offset_bits" != no; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18629 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18630 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18631 if test "${ac_cv_sys_largefile_source+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 ac_cv_sys_largefile_source=no
18635 ac_cv_sys_largefile_source=1
18636 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18638 -D_LARGEFILE_SOURCE)
18639 ac_cv_sys_largefile_source=1 ;;
18640 -D_LARGEFILE_SOURCE=*)
18641 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18648 if test "$ac_cv_sys_largefile_source" != no; then
18650 cat >>confdefs.h <<_ACEOF
18651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18655 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18656 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18657 if test "${ac_cv_sys_large_files+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 ac_cv_sys_large_files=no
18661 ac_cv_sys_large_files=1
18662 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18665 ac_cv_sys_large_files=1 ;;
18667 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18672 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18673 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18674 if test "$ac_cv_sys_large_files" != no; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define _LARGE_FILES $ac_cv_sys_large_files
18685 { echo "$as_me:$LINENO: checking for X" >&5
18686 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18689 # Check whether --with-x was given.
18690 if test "${with_x+set}" = set; then
18694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18695 if test "x$with_x" = xno; then
18696 # The user explicitly disabled X.
18699 case $x_includes,$x_libraries in #(
18700 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18701 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18702 { (exit 1); exit 1; }; };; #(
18703 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 # One or both of the vars are not set, and there is no cached value.
18707 ac_x_includes=no ac_x_libraries=no
18708 rm -f -r conftest.dir
18709 if mkdir conftest.dir; then
18711 cat >Imakefile <<'_ACEOF'
18713 @echo incroot='${INCROOT}'
18715 @echo usrlibdir='${USRLIBDIR}'
18717 @echo libdir='${LIBDIR}'
18719 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18721 for ac_var in incroot usrlibdir libdir; do
18722 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18725 for ac_extension in a so sl; do
18726 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18727 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18728 ac_im_usrlibdir=$ac_im_libdir; break
18731 # Screen out bogus values from the imake configuration. They are
18732 # bogus both because they are the default anyway, and because
18733 # using them would break gcc on systems where it needs fixed includes.
18734 case $ac_im_incroot in
18735 /usr/include) ac_x_includes= ;;
18736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18738 case $ac_im_usrlibdir in
18739 /usr/lib | /lib) ;;
18740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18744 rm -f -r conftest.dir
18747 # Standard set of common directories for X headers.
18748 # Check X11 before X11Rn because it is often a symlink to the current release.
18760 /usr/local/X11/include
18761 /usr/local/X11R6/include
18762 /usr/local/X11R5/include
18763 /usr/local/X11R4/include
18765 /usr/local/include/X11
18766 /usr/local/include/X11R6
18767 /usr/local/include/X11R5
18768 /usr/local/include/X11R4
18772 /usr/XFree86/include/X11
18776 /usr/unsupported/include
18777 /usr/athena/include
18778 /usr/local/x11r5/include
18779 /usr/lpp/Xamples/include
18781 /usr/openwin/include
18782 /usr/openwin/share/include'
18784 if test "$ac_x_includes" = no; then
18785 # Guess where to find include files, by looking for Xlib.h.
18786 # First, try using that file with no special directory specified.
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 #include <X11/Xlib.h>
18795 if { (ac_try="$ac_cpp conftest.$ac_ext"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } >/dev/null && {
18808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18811 # We can compile using X headers with no special include directory.
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 for ac_dir in $ac_x_header_dirs; do
18818 if test -r "$ac_dir/X11/Xlib.h"; then
18819 ac_x_includes=$ac_dir
18825 rm -f conftest.err conftest.$ac_ext
18826 fi # $ac_x_includes = no
18828 if test "$ac_x_libraries" = no; then
18829 # Check for the libraries.
18830 # See if we find them without any special options.
18831 # Don't add to $LIBS permanently.
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <X11/Xlib.h>
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_link") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && {
18863 test -z "$ac_c_werror_flag" ||
18864 test ! -s conftest.err
18865 } && test -s conftest$ac_exeext &&
18866 $as_test_x conftest$ac_exeext; then
18868 # We can link X programs with no special library path.
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18875 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18877 # Don't even attempt the hair of trying to link an X program!
18878 for ac_extension in a so sl; do
18879 if test -r "$ac_dir/libX11.$ac_extension"; then
18880 ac_x_libraries=$ac_dir
18887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18888 conftest$ac_exeext conftest.$ac_ext
18889 fi # $ac_x_libraries = no
18891 case $ac_x_includes,$ac_x_libraries in #(
18892 no,* | *,no | *\'*)
18893 # Didn't find X, or a directory has "'" in its name.
18894 ac_cv_have_x="have_x=no";; #(
18896 # Record where we found X for the cache.
18897 ac_cv_have_x="have_x=yes\
18898 ac_x_includes='$ac_x_includes'\
18899 ac_x_libraries='$ac_x_libraries'"
18905 eval "$ac_cv_have_x"
18908 if test "$have_x" != yes; then
18909 { echo "$as_me:$LINENO: result: $have_x" >&5
18910 echo "${ECHO_T}$have_x" >&6; }
18913 # If each of the values was on the command line, it overrides each guess.
18914 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18915 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18916 # Update the cache value to reflect the command line values.
18917 ac_cv_have_x="have_x=yes\
18918 ac_x_includes='$x_includes'\
18919 ac_x_libraries='$x_libraries'"
18920 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18921 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18924 if test "$no_x" = yes; then
18925 # Not all programs may use this symbol, but it does not hurt to define it.
18927 cat >>confdefs.h <<\_ACEOF
18928 #define X_DISPLAY_MISSING 1
18931 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18933 if test -n "$x_includes"; then
18934 X_CFLAGS="$X_CFLAGS -I$x_includes"
18937 # It would also be nice to do this for all -L options, not just this one.
18938 if test -n "$x_libraries"; then
18939 X_LIBS="$X_LIBS -L$x_libraries"
18940 # For Solaris; some versions of Sun CC require a space after -R and
18941 # others require no space. Words are not sufficient . . . .
18942 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18943 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18944 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18945 ac_xsave_c_werror_flag=$ac_c_werror_flag
18946 ac_c_werror_flag=yes
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext &&
18979 $as_test_x conftest$ac_exeext; then
18980 { echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6; }
18982 X_LIBS="$X_LIBS -R$x_libraries"
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 LIBS="$ac_xsave_LIBS -R $x_libraries"
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest$ac_exeext &&
19020 $as_test_x conftest$ac_exeext; then
19021 { echo "$as_me:$LINENO: result: yes" >&5
19022 echo "${ECHO_T}yes" >&6; }
19023 X_LIBS="$X_LIBS -R $x_libraries"
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 { echo "$as_me:$LINENO: result: neither works" >&5
19029 echo "${ECHO_T}neither works" >&6; }
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033 conftest$ac_exeext conftest.$ac_ext
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 ac_c_werror_flag=$ac_xsave_c_werror_flag
19039 LIBS=$ac_xsave_LIBS
19042 # Check for system-dependent libraries X programs must link with.
19043 # Do this before checking for the system-independent R6 libraries
19044 # (-lICE), since we may need -lsocket or whatever for X linking.
19046 if test "$ISC" = yes; then
19047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19049 # Martyn Johnson says this is needed for Ultrix, if the X
19050 # libraries were built with DECnet support. And Karl Berry says
19051 # the Alpha needs dnet_stub (dnet does not exist).
19052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19066 char XOpenDisplay ();
19070 return XOpenDisplay ();
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19099 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19100 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-ldnet $LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19122 return dnet_ntoa ();
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } && {
19141 test -z "$ac_c_werror_flag" ||
19142 test ! -s conftest.err
19143 } && test -s conftest$ac_exeext &&
19144 $as_test_x conftest$ac_exeext; then
19145 ac_cv_lib_dnet_dnet_ntoa=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_cv_lib_dnet_dnet_ntoa=no
19153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154 conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19158 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19159 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19160 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19163 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19164 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19165 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-ldnet_stub $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return dnet_ntoa ();
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext &&
19210 $as_test_x conftest$ac_exeext; then
19211 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_lib_dnet_stub_dnet_ntoa=no
19219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19223 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19224 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19225 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19226 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19233 conftest$ac_exeext conftest.$ac_ext
19234 LIBS="$ac_xsave_LIBS"
19236 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19237 # to get the SysV transport functions.
19238 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19240 # The nsl library prevents programs from opening the X display
19241 # on Irix 5.2, according to T.E. Dickey.
19242 # The functions gethostbyname, getservbyname, and inet_addr are
19243 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19244 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19245 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_gethostbyname+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19257 #define gethostbyname innocuous_gethostbyname
19259 /* System header to define __stub macros and hopefully few prototypes,
19260 which can conflict with char gethostbyname (); below.
19261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19262 <limits.h> exists even on freestanding compilers. */
19265 # include <limits.h>
19267 # include <assert.h>
19270 #undef gethostbyname
19272 /* Override any GCC internal prototype to avoid an error.
19273 Use char because int might match the return type of a GCC
19274 builtin and then its argument prototype would still apply. */
19278 char gethostbyname ();
19279 /* The GNU C library defines this for functions which it implements
19280 to always fail with ENOSYS. Some functions are actually named
19281 something starting with __ and the normal name is an alias. */
19282 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19289 return gethostbyname ();
19294 rm -f conftest.$ac_objext conftest$ac_exeext
19295 if { (ac_try="$ac_link"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_link") 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } && {
19308 test -z "$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 } && test -s conftest$ac_exeext &&
19311 $as_test_x conftest$ac_exeext; then
19312 ac_cv_func_gethostbyname=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_func_gethostbyname=no
19320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19321 conftest$ac_exeext conftest.$ac_ext
19323 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19324 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19326 if test $ac_cv_func_gethostbyname = no; then
19327 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19328 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_check_lib_save_LIBS=$LIBS
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any GCC internal prototype to avoid an error.
19342 Use char because int might match the return type of a GCC
19343 builtin and then its argument prototype would still apply. */
19347 char gethostbyname ();
19351 return gethostbyname ();
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_lib_nsl_gethostbyname=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_nsl_gethostbyname=no
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19387 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19388 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19389 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19392 if test $ac_cv_lib_nsl_gethostbyname = no; then
19393 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19394 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19395 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_check_lib_save_LIBS=$LIBS
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 /* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19413 char gethostbyname ();
19417 return gethostbyname ();
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest$ac_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 ac_cv_lib_bsd_gethostbyname=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_bsd_gethostbyname=no
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19453 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19454 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19461 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19462 # socket/setsockopt and other routines are undefined under SCO ODT
19463 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19464 # on later versions), says Simon Leinen: it contains gethostby*
19465 # variants that don't use the name server (or something). -lsocket
19466 # must be given before -lnsl if both are needed. We assume that
19467 # if connect needs -lnsl, so does gethostbyname.
19468 { echo "$as_me:$LINENO: checking for connect" >&5
19469 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_connect+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19481 #define connect innocuous_connect
19483 /* System header to define __stub macros and hopefully few prototypes,
19484 which can conflict with char connect (); below.
19485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19486 <limits.h> exists even on freestanding compilers. */
19489 # include <limits.h>
19491 # include <assert.h>
19496 /* Override any GCC internal prototype to avoid an error.
19497 Use char because int might match the return type of a GCC
19498 builtin and then its argument prototype would still apply. */
19503 /* The GNU C library defines this for functions which it implements
19504 to always fail with ENOSYS. Some functions are actually named
19505 something starting with __ and the normal name is an alias. */
19506 #if defined __stub_connect || defined __stub___connect
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_link") 2>conftest.er1
19527 grep -v '^ *+' conftest.er1 >conftest.err
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } && {
19532 test -z "$ac_c_werror_flag" ||
19533 test ! -s conftest.err
19534 } && test -s conftest$ac_exeext &&
19535 $as_test_x conftest$ac_exeext; then
19536 ac_cv_func_connect=yes
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ac_cv_func_connect=no
19544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19545 conftest$ac_exeext conftest.$ac_ext
19547 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19548 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19550 if test $ac_cv_func_connect = no; then
19551 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19552 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19553 if test "${ac_cv_lib_socket_connect+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 ac_check_lib_save_LIBS=$LIBS
19557 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_link") 2>conftest.er1
19589 grep -v '^ *+' conftest.er1 >conftest.err
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } && {
19594 test -z "$ac_c_werror_flag" ||
19595 test ! -s conftest.err
19596 } && test -s conftest$ac_exeext &&
19597 $as_test_x conftest$ac_exeext; then
19598 ac_cv_lib_socket_connect=yes
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_lib_socket_connect=no
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607 conftest$ac_exeext conftest.$ac_ext
19608 LIBS=$ac_check_lib_save_LIBS
19610 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19611 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19612 if test $ac_cv_lib_socket_connect = yes; then
19613 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19618 # Guillermo Gomez says -lposix is necessary on A/UX.
19619 { echo "$as_me:$LINENO: checking for remove" >&5
19620 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19621 if test "${ac_cv_func_remove+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19632 #define remove innocuous_remove
19634 /* System header to define __stub macros and hopefully few prototypes,
19635 which can conflict with char remove (); below.
19636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19637 <limits.h> exists even on freestanding compilers. */
19640 # include <limits.h>
19642 # include <assert.h>
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19654 /* The GNU C library defines this for functions which it implements
19655 to always fail with ENOSYS. Some functions are actually named
19656 something starting with __ and the normal name is an alias. */
19657 #if defined __stub_remove || defined __stub___remove
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext &&
19686 $as_test_x conftest$ac_exeext; then
19687 ac_cv_func_remove=yes
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 ac_cv_func_remove=no
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696 conftest$ac_exeext conftest.$ac_ext
19698 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19699 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19701 if test $ac_cv_func_remove = no; then
19702 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19703 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_posix_remove+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lposix $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_lib_posix_remove=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_lib_posix_remove=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19762 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19763 if test $ac_cv_lib_posix_remove = yes; then
19764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19769 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19770 { echo "$as_me:$LINENO: checking for shmat" >&5
19771 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19772 if test "${ac_cv_func_shmat+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19783 #define shmat innocuous_shmat
19785 /* System header to define __stub macros and hopefully few prototypes,
19786 which can conflict with char shmat (); below.
19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788 <limits.h> exists even on freestanding compilers. */
19791 # include <limits.h>
19793 # include <assert.h>
19798 /* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19805 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined __stub_shmat || defined __stub___shmat
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_link") 2>conftest.er1
19829 grep -v '^ *+' conftest.er1 >conftest.err
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && {
19834 test -z "$ac_c_werror_flag" ||
19835 test ! -s conftest.err
19836 } && test -s conftest$ac_exeext &&
19837 $as_test_x conftest$ac_exeext; then
19838 ac_cv_func_shmat=yes
19840 echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19843 ac_cv_func_shmat=no
19846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19847 conftest$ac_exeext conftest.$ac_ext
19849 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19850 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19852 if test $ac_cv_func_shmat = no; then
19853 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 ac_check_lib_save_LIBS=$LIBS
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest$ac_exeext &&
19899 $as_test_x conftest$ac_exeext; then
19900 ac_cv_lib_ipc_shmat=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_cv_lib_ipc_shmat=no
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909 conftest$ac_exeext conftest.$ac_ext
19910 LIBS=$ac_check_lib_save_LIBS
19912 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19913 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19914 if test $ac_cv_lib_ipc_shmat = yes; then
19915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19921 # Check for libraries that X11R6 Xt/Xaw programs need.
19922 ac_save_LDFLAGS=$LDFLAGS
19923 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19924 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19925 # check for ICE first), but we must link in the order -lSM -lICE or
19926 # we get undefined symbols. So assume we have SM if we have ICE.
19927 # These have to be linked with before -lX11, unlike the other
19928 # libraries we check for below, so use a different variable.
19929 # John Interrante, Karl Berry
19930 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19931 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19932 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 /* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19950 char IceConnectionNumber ();
19954 return IceConnectionNumber ();
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest$ac_exeext &&
19976 $as_test_x conftest$ac_exeext; then
19977 ac_cv_lib_ICE_IceConnectionNumber=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_lib_ICE_IceConnectionNumber=no
19985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19986 conftest$ac_exeext conftest.$ac_ext
19987 LIBS=$ac_check_lib_save_LIBS
19989 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19992 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19995 LDFLAGS=$ac_save_LDFLAGS
20063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 ac_res=`eval echo '${'$as_ac_Header'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20074 # Is the header compilable?
20075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 $ac_includes_default
20084 #include <$ac_header>
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 ac_header_compiler=yes
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_header_compiler=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20113 echo "${ECHO_T}$ac_header_compiler" >&6; }
20115 # Is the header present?
20116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <$ac_header>
20126 if { (ac_try="$ac_cpp conftest.$ac_ext"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } >/dev/null && {
20139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20142 ac_header_preproc=yes
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_header_preproc=no
20150 rm -f conftest.err conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20152 echo "${ECHO_T}$ac_header_preproc" >&6; }
20154 # So? What about this header?
20155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20161 ac_header_preproc=yes
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 eval "$as_ac_Header=\$ac_header_preproc"
20186 ac_res=`eval echo '${'$as_ac_Header'}'`
20187 { echo "$as_me:$LINENO: result: $ac_res" >&5
20188 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20200 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20202 if test "${ac_cv_header_stdc+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 #include <stdlib.h>
20212 #include <stdarg.h>
20213 #include <string.h>
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_compile") 2>conftest.er1
20233 grep -v '^ *+' conftest.er1 >conftest.err
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && {
20238 test -z "$ac_c_werror_flag" ||
20239 test ! -s conftest.err
20240 } && test -s conftest.$ac_objext; then
20241 ac_cv_header_stdc=yes
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 ac_cv_header_stdc=no
20249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 if test $ac_cv_header_stdc = yes; then
20252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 #include <string.h>
20262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20263 $EGREP "memchr" >/dev/null 2>&1; then
20266 ac_cv_header_stdc=no
20272 if test $ac_cv_header_stdc = yes; then
20273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 #include <stdlib.h>
20283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20284 $EGREP "free" >/dev/null 2>&1; then
20287 ac_cv_header_stdc=no
20293 if test $ac_cv_header_stdc = yes; then
20294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20295 if test "$cross_compiling" = yes; then
20298 cat >conftest.$ac_ext <<_ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20305 #include <stdlib.h>
20306 #if ((' ' & 0x0FF) == 0x020)
20307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20310 # define ISLOWER(c) \
20311 (('a' <= (c) && (c) <= 'i') \
20312 || ('j' <= (c) && (c) <= 'r') \
20313 || ('s' <= (c) && (c) <= 'z'))
20314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20322 for (i = 0; i < 256; i++)
20323 if (XOR (islower (i), ISLOWER (i))
20324 || toupper (i) != TOUPPER (i))
20329 rm -f conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340 { (case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_try") 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20351 echo "$as_me: program exited with status $ac_status" >&5
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ( exit $ac_status )
20356 ac_cv_header_stdc=no
20358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20365 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20366 if test $ac_cv_header_stdc = yes; then
20368 cat >>confdefs.h <<\_ACEOF
20369 #define STDC_HEADERS 1
20374 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20375 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385 #include <sys/types.h>
20389 return makedev(0, 0);
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_link") 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest$ac_exeext &&
20411 $as_test_x conftest$ac_exeext; then
20412 ac_cv_header_sys_types_h_makedev=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_header_sys_types_h_makedev=no
20420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20421 conftest$ac_exeext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20425 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20427 if test $ac_cv_header_sys_types_h_makedev = no; then
20428 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20429 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20430 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20431 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20437 # Is the header compilable?
20438 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20439 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 $ac_includes_default
20447 #include <sys/mkdev.h>
20449 rm -f conftest.$ac_objext
20450 if { (ac_try="$ac_compile"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_compile") 2>conftest.er1
20458 grep -v '^ *+' conftest.er1 >conftest.err
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
20466 ac_header_compiler=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_header_compiler=no
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20476 echo "${ECHO_T}$ac_header_compiler" >&6; }
20478 # Is the header present?
20479 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20480 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <sys/mkdev.h>
20489 if { (ac_try="$ac_cpp conftest.$ac_ext"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } >/dev/null && {
20502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20505 ac_header_preproc=yes
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_header_preproc=no
20513 rm -f conftest.err conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20515 echo "${ECHO_T}$ac_header_preproc" >&6; }
20517 # So? What about this header?
20518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20520 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20521 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20523 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20524 ac_header_preproc=yes
20527 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20528 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20530 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20532 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20534 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20536 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20538 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20542 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20543 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20544 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20550 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20553 if test $ac_cv_header_sys_mkdev_h = yes; then
20555 cat >>confdefs.h <<\_ACEOF
20556 #define MAJOR_IN_MKDEV 1
20563 if test $ac_cv_header_sys_mkdev_h = no; then
20564 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20565 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20566 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20567 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20571 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20573 # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20575 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 $ac_includes_default
20583 #include <sys/sysmacros.h>
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_header_compiler=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_header_compiler=no
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20616 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <sys/sysmacros.h>
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } >/dev/null && {
20638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20641 ac_header_preproc=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_header_preproc=no
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20653 # So? What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20656 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20660 ac_header_preproc=yes
20663 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20678 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20679 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20680 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20685 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20686 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20689 if test $ac_cv_header_sys_sysmacros_h = yes; then
20691 cat >>confdefs.h <<\_ACEOF
20692 #define MAJOR_IN_SYSMACROS 1
20706 ac_header_dirent=no
20707 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20708 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20709 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20710 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest.$ac_objext; then
20749 eval "$as_ac_Header=yes"
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 eval "$as_ac_Header=no"
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 ac_res=`eval echo '${'$as_ac_Header'}'`
20760 { echo "$as_me:$LINENO: result: $ac_res" >&5
20761 echo "${ECHO_T}$ac_res" >&6; }
20762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20763 cat >>confdefs.h <<_ACEOF
20764 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20767 ac_header_dirent=$ac_hdr; break
20771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20772 if test $ac_header_dirent = dirent.h; then
20773 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20775 if test "${ac_cv_search_opendir+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 ac_func_search_save_LIBS=$LIBS
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20801 for ac_lib in '' dir; do
20802 if test -z "$ac_lib"; then
20803 ac_res="none required"
20806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest$ac_exeext &&
20825 $as_test_x conftest$ac_exeext; then
20826 ac_cv_search_opendir=$ac_res
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 if test "${ac_cv_search_opendir+set}" = set; then
20840 if test "${ac_cv_search_opendir+set}" = set; then
20843 ac_cv_search_opendir=no
20845 rm conftest.$ac_ext
20846 LIBS=$ac_func_search_save_LIBS
20848 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20849 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20850 ac_res=$ac_cv_search_opendir
20851 if test "$ac_res" != no; then
20852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20857 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20858 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20859 if test "${ac_cv_search_opendir+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_func_search_save_LIBS=$LIBS
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20870 /* Override any GCC internal prototype to avoid an error.
20871 Use char because int might match the return type of a GCC
20872 builtin and then its argument prototype would still apply. */
20885 for ac_lib in '' x; do
20886 if test -z "$ac_lib"; then
20887 ac_res="none required"
20890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20892 rm -f conftest.$ac_objext conftest$ac_exeext
20893 if { (ac_try="$ac_link"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_link") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest$ac_exeext &&
20909 $as_test_x conftest$ac_exeext; then
20910 ac_cv_search_opendir=$ac_res
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920 if test "${ac_cv_search_opendir+set}" = set; then
20924 if test "${ac_cv_search_opendir+set}" = set; then
20927 ac_cv_search_opendir=no
20929 rm conftest.$ac_ext
20930 LIBS=$ac_func_search_save_LIBS
20932 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20933 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20934 ac_res=$ac_cv_search_opendir
20935 if test "$ac_res" != no; then
20936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20942 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20943 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20944 if test "${ac_cv_header_stat_broken+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <sys/types.h>
20954 #include <sys/stat.h>
20956 #if defined S_ISBLK && defined S_IFDIR
20957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20960 #if defined S_ISBLK && defined S_IFCHR
20961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20964 #if defined S_ISLNK && defined S_IFREG
20965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20968 #if defined S_ISSOCK && defined S_IFREG
20969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } && {
20987 test -z "$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20989 } && test -s conftest.$ac_objext; then
20990 ac_cv_header_stat_broken=no
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_cv_header_stat_broken=yes
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
21001 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
21002 if test $ac_cv_header_stat_broken = yes; then
21004 cat >>confdefs.h <<\_ACEOF
21005 #define STAT_MACROS_BROKEN 1
21010 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21012 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 #include <sys/types.h>
21022 #include <sys/wait.h>
21023 #ifndef WEXITSTATUS
21024 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21027 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21035 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_compile") 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && {
21054 test -z "$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 } && test -s conftest.$ac_objext; then
21057 ac_cv_header_sys_wait_h=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_cv_header_sys_wait_h=no
21065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21068 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21069 if test $ac_cv_header_sys_wait_h = yes; then
21071 cat >>confdefs.h <<\_ACEOF
21072 #define HAVE_SYS_WAIT_H 1
21077 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21078 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21079 if test "${ac_cv_header_time+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088 #include <sys/types.h>
21089 #include <sys/time.h>
21095 if ((struct tm *) 0)
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21118 ac_cv_header_time=yes
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_cv_header_time=no
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21128 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21129 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21130 if test $ac_cv_header_time = yes; then
21132 cat >>confdefs.h <<\_ACEOF
21133 #define TIME_WITH_SYS_TIME 1
21138 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21153 static struct stat ac_aggr;
21154 if (ac_aggr.st_blksize)
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21177 ac_cv_member_struct_stat_st_blksize=yes
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 $ac_includes_default
21192 static struct stat ac_aggr;
21193 if (sizeof ac_aggr.st_blksize)
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21216 ac_cv_member_struct_stat_st_blksize=yes
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_cv_member_struct_stat_st_blksize=no
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21230 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21231 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_ST_BLKSIZE 1
21245 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21246 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21247 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 $ac_includes_default
21260 static struct stat ac_aggr;
21261 if (ac_aggr.st_blocks)
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_compile") 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } && {
21281 test -z "$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 } && test -s conftest.$ac_objext; then
21284 ac_cv_member_struct_stat_st_blocks=yes
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 $ac_includes_default
21299 static struct stat ac_aggr;
21300 if (sizeof ac_aggr.st_blocks)
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_compile") 2>conftest.er1
21315 grep -v '^ *+' conftest.er1 >conftest.err
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } && {
21320 test -z "$ac_c_werror_flag" ||
21321 test ! -s conftest.err
21322 } && test -s conftest.$ac_objext; then
21323 ac_cv_member_struct_stat_st_blocks=yes
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ac_cv_member_struct_stat_st_blocks=no
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21338 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21340 cat >>confdefs.h <<_ACEOF
21341 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_ST_BLOCKS 1
21350 case " $LIBOBJS " in
21351 *" fileblocks.$ac_objext "* ) ;;
21352 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21359 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21361 if test "${ac_cv_struct_tm+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <sys/types.h>
21377 int *p = &tm.tm_sec;
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21392 grep -v '^ *+' conftest.er1 >conftest.err
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_cv_struct_tm=time.h
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_cv_struct_tm=sys/time.h
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21411 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21412 if test $ac_cv_struct_tm = sys/time.h; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define TM_IN_SYS_TIME 1
21420 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21421 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21422 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 #include <sys/types.h>
21432 #include <$ac_cv_struct_tm>
21438 static struct tm ac_aggr;
21439 if (ac_aggr.tm_zone)
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_cv_member_struct_tm_tm_zone=yes
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <sys/types.h>
21474 #include <$ac_cv_struct_tm>
21480 static struct tm ac_aggr;
21481 if (sizeof ac_aggr.tm_zone)
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_compile") 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } && {
21501 test -z "$ac_c_werror_flag" ||
21502 test ! -s conftest.err
21503 } && test -s conftest.$ac_objext; then
21504 ac_cv_member_struct_tm_tm_zone=yes
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_cv_member_struct_tm_tm_zone=no
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21518 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21519 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21521 cat >>confdefs.h <<_ACEOF
21522 #define HAVE_STRUCT_TM_TM_ZONE 1
21528 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_TM_ZONE 1
21535 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21536 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21537 if test "${ac_cv_have_decl_tzname+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_compile") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest.$ac_objext; then
21576 ac_cv_have_decl_tzname=yes
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_cv_have_decl_tzname=no
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21587 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21588 if test $ac_cv_have_decl_tzname = yes; then
21590 cat >>confdefs.h <<_ACEOF
21591 #define HAVE_DECL_TZNAME 1
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_DECL_TZNAME 0
21604 { echo "$as_me:$LINENO: checking for tzname" >&5
21605 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21606 if test "${ac_cv_var_tzname+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21616 #if !HAVE_DECL_TZNAME
21617 extern char *tzname[];
21623 return tzname[0][0];
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635 (eval "$ac_link") 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && {
21642 test -z "$ac_c_werror_flag" ||
21643 test ! -s conftest.err
21644 } && test -s conftest$ac_exeext &&
21645 $as_test_x conftest$ac_exeext; then
21646 ac_cv_var_tzname=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_cv_var_tzname=no
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655 conftest$ac_exeext conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21658 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21659 if test $ac_cv_var_tzname = yes; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_TZNAME 1
21669 { echo "$as_me:$LINENO: checking for utime.h" >&5
21670 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21671 if test "${ba_cv_header_utime_h+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21681 #include <sys/types.h>
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_compile") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest.$ac_objext; then
21708 ba_cv_header_utime_h=yes
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ba_cv_header_utime_h=no
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21719 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21720 test $ba_cv_header_utime_h = yes &&
21721 cat >>confdefs.h <<\_ACEOF
21722 #define HAVE_UTIME_H 1
21726 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21728 if test "${ba_cv_header_socklen_t+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21738 #include <sys/types.h>
21739 #include <sys/socket.h>
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1 >conftest.err
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
21765 ba_cv_header_socklen_t=yes
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ba_cv_header_socklen_t=no
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21776 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21777 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_SOCKLEN_T 1
21782 { echo "$as_me:$LINENO: checking for bigendian" >&5
21783 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21784 if test "${ba_cv_bigendian+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 if test "$cross_compiling" = yes; then
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21798 rm -f conftest$ac_exeext
21799 if { (ac_try="$ac_link"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_link") 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ba_cv_bigendian=yes
21820 echo "$as_me: program exited with status $ac_status" >&5
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ( exit $ac_status )
21827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21832 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21833 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21834 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21835 #define HAVE_BIGENDIAN 1
21840 ac_cpp='$CXXCPP $CPPFLAGS'
21841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21846 { echo "$as_me:$LINENO: checking for typeof" >&5
21847 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21848 if test "${ba_cv_have_typeof+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 if test "$cross_compiling" = yes; then
21852 ba_cv_have_typeof=no
21854 cat >conftest.$ac_ext <<_ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 main(){char *a = 0; a = (typeof a)a;}
21862 rm -f conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_link") 2>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21873 { (case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_try") 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ba_cv_have_typeof=yes
21884 echo "$as_me: program exited with status $ac_status" >&5
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ( exit $ac_status )
21889 ba_cv_have_typeof=no
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21897 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21898 test $ba_cv_have_typeof = yes &&
21899 cat >>confdefs.h <<\_ACEOF
21900 #define HAVE_TYPEOF 1
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21910 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21912 if test "${ac_cv_c_const+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21925 /* FIXME: Include the comments suggested by Paul. */
21926 #ifndef __cplusplus
21927 /* Ultrix mips cc rejects this. */
21928 typedef int charset[2];
21930 /* SunOS 4.1.1 cc rejects this. */
21931 char const *const *pcpcc;
21933 /* NEC SVR4.0.2 mips cc rejects this. */
21934 struct point {int x, y;};
21935 static struct point const zero = {0,0};
21936 /* AIX XL C 1.02.0.0 rejects this.
21937 It does not let you subtract one const X* pointer from another in
21938 an arm of an if-expression whose if-part is not a constant
21940 const char *g = "string";
21941 pcpcc = &g + (g ? g-g : 0);
21942 /* HPUX 7.0 cc rejects these. */
21944 ppc = (char**) pcpcc;
21945 pcpcc = (char const *const *) ppc;
21946 { /* SCO 3.2v4 cc rejects this. */
21948 char const *s = 0 ? (char *) 0 : (char const *) 0;
21953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21954 int x[] = {25, 17};
21955 const int *foo = &x[0];
21958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21959 typedef const int *iptr;
21963 { /* AIX XL C 1.02.0.0 rejects this saying
21964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21965 struct s { int j; const int *ap[3]; };
21966 struct s *b; b->j = 5;
21968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21969 const int foo = 10;
21970 if (!foo) return 0;
21972 return !cs[0] && !zero.x;
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22007 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22008 if test $ac_cv_c_const = no; then
22010 cat >>confdefs.h <<\_ACEOF
22018 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
22019 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
22021 # The order of these tests is important.
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 #include <sys/statvfs.h>
22029 #include <sys/fstyp.h>
22031 if { (ac_try="$ac_cpp conftest.$ac_ext"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } >/dev/null && {
22044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22045 test ! -s conftest.err
22047 cat >>confdefs.h <<\_ACEOF
22048 #define FSTYPE_STATVFS 1
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22058 rm -f conftest.err conftest.$ac_ext
22059 if test $fstype = no; then
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 #include <sys/statfs.h>
22067 #include <sys/fstyp.h>
22069 if { (ac_try="$ac_cpp conftest.$ac_ext"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } >/dev/null && {
22082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22085 cat >>confdefs.h <<\_ACEOF
22086 #define FSTYPE_USG_STATFS 1
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22096 rm -f conftest.err conftest.$ac_ext
22098 if test $fstype = no; then
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 #include <sys/statfs.h>
22106 #include <sys/vmount.h>
22108 if { (ac_try="$ac_cpp conftest.$ac_ext"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } >/dev/null && {
22121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22122 test ! -s conftest.err
22124 cat >>confdefs.h <<\_ACEOF
22125 #define FSTYPE_AIX_STATFS 1
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22135 rm -f conftest.err conftest.$ac_ext
22137 if test $fstype = no; then
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <mntent.h>
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22162 cat >>confdefs.h <<\_ACEOF
22163 #define FSTYPE_MNTENT 1
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22173 rm -f conftest.err conftest.$ac_ext
22175 if test $fstype = no; then
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 #include <sys/mount.h>
22185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22186 $EGREP "f_type;" >/dev/null 2>&1; then
22187 cat >>confdefs.h <<\_ACEOF
22188 #define FSTYPE_STATFS 1
22195 if test $fstype = no; then
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 #include <sys/mount.h>
22203 #include <sys/fs_types.h>
22205 if { (ac_try="$ac_cpp conftest.$ac_ext"
22206 case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } >/dev/null && {
22218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22221 cat >>confdefs.h <<\_ACEOF
22222 #define FSTYPE_GETMNT 1
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22232 rm -f conftest.err conftest.$ac_ext
22234 { echo "$as_me:$LINENO: result: $fstype" >&5
22235 echo "${ECHO_T}$fstype" >&6; }
22237 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22238 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22239 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22240 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22244 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22246 # Is the header compilable?
22247 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22248 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 $ac_includes_default
22256 #include <sys/statvfs.h>
22258 rm -f conftest.$ac_objext
22259 if { (ac_try="$ac_compile"
22260 case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_compile") 2>conftest.er1
22267 grep -v '^ *+' conftest.er1 >conftest.err
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } && {
22272 test -z "$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22274 } && test -s conftest.$ac_objext; then
22275 ac_header_compiler=yes
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_header_compiler=no
22283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22285 echo "${ECHO_T}$ac_header_compiler" >&6; }
22287 # Is the header present?
22288 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22289 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #include <sys/statvfs.h>
22298 if { (ac_try="$ac_cpp conftest.$ac_ext"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } >/dev/null && {
22311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22314 ac_header_preproc=yes
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 ac_header_preproc=no
22322 rm -f conftest.err conftest.$ac_ext
22323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22324 echo "${ECHO_T}$ac_header_preproc" >&6; }
22326 # So? What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22329 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22330 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22332 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22333 ac_header_preproc=yes
22336 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22337 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
22339 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22341 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
22343 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22345 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22347 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22351 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22352 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22353 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 ac_cv_header_sys_statvfs_h=$ac_header_preproc
22358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22359 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22362 if test $ac_cv_header_sys_statvfs_h = yes; then
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_SYS_STATVFS_H 1
22372 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22373 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_signal+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 #include <sys/types.h>
22384 #include <signal.h>
22389 return *(signal (0, 0)) (0) == 1;
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_cv_type_signal=int
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_cv_type_signal=void
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22421 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22422 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22424 cat >>confdefs.h <<_ACEOF
22425 #define RETSIGTYPE $ac_cv_type_signal
22430 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22431 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22432 if test "${bash_cv_signal_vintage+set}" = set; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <signal.h>
22448 struct sigaction sa;
22449 sigemptyset(&ss); sigsuspend(&ss);
22450 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22451 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22457 rm -f conftest.$ac_objext conftest$ac_exeext
22458 if { (ac_try="$ac_link"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_link") 2>conftest.er1
22466 grep -v '^ *+' conftest.er1 >conftest.err
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest$ac_exeext &&
22474 $as_test_x conftest$ac_exeext; then
22475 bash_cv_signal_vintage="posix"
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22487 #include <signal.h>
22492 int mask = sigmask(SIGINT);
22493 sigsetmask(mask); sigblock(mask); sigpause(mask);
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_link") 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && {
22513 test -z "$ac_c_werror_flag" ||
22514 test ! -s conftest.err
22515 } && test -s conftest$ac_exeext &&
22516 $as_test_x conftest$ac_exeext; then
22517 bash_cv_signal_vintage="4.2bsd"
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22523 cat >conftest.$ac_ext <<_ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22530 #include <signal.h>
22531 RETSIGTYPE foo() { }
22536 int mask = sigmask(SIGINT);
22537 sigset(SIGINT, foo); sigrelse(SIGINT);
22538 sighold(SIGINT); sigpause(SIGINT);
22544 rm -f conftest.$ac_objext conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_link") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest$ac_exeext &&
22561 $as_test_x conftest$ac_exeext; then
22562 bash_cv_signal_vintage="svr3"
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 bash_cv_signal_vintage="v7"
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572 conftest$ac_exeext conftest.$ac_ext
22576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22577 conftest$ac_exeext conftest.$ac_ext
22581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22582 conftest$ac_exeext conftest.$ac_ext
22586 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22587 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22588 if test "$bash_cv_signal_vintage" = "posix"; then
22589 cat >>confdefs.h <<\_ACEOF
22590 #define HAVE_POSIX_SIGNALS 1
22593 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22594 cat >>confdefs.h <<\_ACEOF
22595 #define HAVE_BSD_SIGNALS 1
22598 elif test "$bash_cv_signal_vintage" = "svr3"; then
22599 cat >>confdefs.h <<\_ACEOF
22600 #define HAVE_USG_SIGHOLD 1
22605 { echo "$as_me:$LINENO: checking for mode_t" >&5
22606 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22607 if test "${ac_cv_type_mode_t+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 cat >conftest.$ac_ext <<_ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616 $ac_includes_default
22617 typedef mode_t ac__type_new_;
22621 if ((ac__type_new_ *) 0)
22623 if (sizeof (ac__type_new_))
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_cv_type_mode_t=yes
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_cv_type_mode_t=no
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22657 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22658 if test $ac_cv_type_mode_t = yes; then
22662 cat >>confdefs.h <<_ACEOF
22668 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22669 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22670 if test "${ac_cv_type_uid_t+set}" = set; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 cat >conftest.$ac_ext <<_ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22679 #include <sys/types.h>
22682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22683 $EGREP "uid_t" >/dev/null 2>&1; then
22684 ac_cv_type_uid_t=yes
22686 ac_cv_type_uid_t=no
22691 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22692 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22693 if test $ac_cv_type_uid_t = no; then
22695 cat >>confdefs.h <<\_ACEOF
22700 cat >>confdefs.h <<\_ACEOF
22706 { echo "$as_me:$LINENO: checking for size_t" >&5
22707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22708 if test "${ac_cv_type_size_t+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 $ac_includes_default
22718 typedef size_t ac__type_new_;
22722 if ((ac__type_new_ *) 0)
22724 if (sizeof (ac__type_new_))
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22747 ac_cv_type_size_t=yes
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_type_size_t=no
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22758 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22759 if test $ac_cv_type_size_t = yes; then
22763 cat >>confdefs.h <<_ACEOF
22764 #define size_t unsigned int
22769 { echo "$as_me:$LINENO: checking for pid_t" >&5
22770 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22771 if test "${ac_cv_type_pid_t+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 $ac_includes_default
22781 typedef pid_t ac__type_new_;
22785 if ((ac__type_new_ *) 0)
22787 if (sizeof (ac__type_new_))
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797 *) ac_try_echo=$ac_try;;
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800 (eval "$ac_compile") 2>conftest.er1
22802 grep -v '^ *+' conftest.er1 >conftest.err
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest.$ac_objext; then
22810 ac_cv_type_pid_t=yes
22812 echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22815 ac_cv_type_pid_t=no
22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22821 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22822 if test $ac_cv_type_pid_t = yes; then
22826 cat >>confdefs.h <<_ACEOF
22832 { echo "$as_me:$LINENO: checking for off_t" >&5
22833 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22834 if test "${ac_cv_type_off_t+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 cat >conftest.$ac_ext <<_ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 $ac_includes_default
22844 typedef off_t ac__type_new_;
22848 if ((ac__type_new_ *) 0)
22850 if (sizeof (ac__type_new_))
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 ac_cv_type_off_t=yes
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 ac_cv_type_off_t=no
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22884 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22885 if test $ac_cv_type_off_t = yes; then
22889 cat >>confdefs.h <<_ACEOF
22890 #define off_t long int
22895 { echo "$as_me:$LINENO: checking for ino_t" >&5
22896 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22897 if test "${ac_cv_type_ino_t+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22907 typedef ino_t ac__type_new_;
22911 if ((ac__type_new_ *) 0)
22913 if (sizeof (ac__type_new_))
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_compile") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest.$ac_objext; then
22936 ac_cv_type_ino_t=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_cv_type_ino_t=no
22944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22947 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22948 if test $ac_cv_type_ino_t = yes; then
22952 cat >>confdefs.h <<_ACEOF
22953 #define ino_t unsigned long
22958 { echo "$as_me:$LINENO: checking for dev_t" >&5
22959 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22960 if test "${ac_cv_type_dev_t+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22969 $ac_includes_default
22970 typedef dev_t ac__type_new_;
22974 if ((ac__type_new_ *) 0)
22976 if (sizeof (ac__type_new_))
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22991 grep -v '^ *+' conftest.er1 >conftest.err
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest.$ac_objext; then
22999 ac_cv_type_dev_t=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_cv_type_dev_t=no
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
23010 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
23011 if test $ac_cv_type_dev_t = yes; then
23015 cat >>confdefs.h <<_ACEOF
23016 #define dev_t unsigned long
23021 { echo "$as_me:$LINENO: checking for daddr_t" >&5
23022 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
23023 if test "${ac_cv_type_daddr_t+set}" = set; then
23024 echo $ECHO_N "(cached) $ECHO_C" >&6
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23032 $ac_includes_default
23033 typedef daddr_t ac__type_new_;
23037 if ((ac__type_new_ *) 0)
23039 if (sizeof (ac__type_new_))
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_compile") 2>conftest.er1
23054 grep -v '^ *+' conftest.er1 >conftest.err
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest.$ac_objext; then
23062 ac_cv_type_daddr_t=yes
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ac_cv_type_daddr_t=no
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
23073 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
23074 if test $ac_cv_type_daddr_t = yes; then
23078 cat >>confdefs.h <<_ACEOF
23079 #define daddr_t long
23084 { echo "$as_me:$LINENO: checking for major_t" >&5
23085 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
23086 if test "${ac_cv_type_major_t+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 $ac_includes_default
23096 typedef major_t ac__type_new_;
23100 if ((ac__type_new_ *) 0)
23102 if (sizeof (ac__type_new_))
23108 rm -f conftest.$ac_objext
23109 if { (ac_try="$ac_compile"
23110 case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_compile") 2>conftest.er1
23117 grep -v '^ *+' conftest.er1 >conftest.err
23119 cat conftest.err >&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); } && {
23122 test -z "$ac_c_werror_flag" ||
23123 test ! -s conftest.err
23124 } && test -s conftest.$ac_objext; then
23125 ac_cv_type_major_t=yes
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 ac_cv_type_major_t=no
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23136 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23137 if test $ac_cv_type_major_t = yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define major_t int
23147 { echo "$as_me:$LINENO: checking for minor_t" >&5
23148 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23149 if test "${ac_cv_type_minor_t+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 $ac_includes_default
23159 typedef minor_t ac__type_new_;
23163 if ((ac__type_new_ *) 0)
23165 if (sizeof (ac__type_new_))
23171 rm -f conftest.$ac_objext
23172 if { (ac_try="$ac_compile"
23173 case "(($ac_try" in
23174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175 *) ac_try_echo=$ac_try;;
23177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23178 (eval "$ac_compile") 2>conftest.er1
23180 grep -v '^ *+' conftest.er1 >conftest.err
23182 cat conftest.err >&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && {
23185 test -z "$ac_c_werror_flag" ||
23186 test ! -s conftest.err
23187 } && test -s conftest.$ac_objext; then
23188 ac_cv_type_minor_t=yes
23190 echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23193 ac_cv_type_minor_t=no
23196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23199 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23200 if test $ac_cv_type_minor_t = yes; then
23204 cat >>confdefs.h <<_ACEOF
23205 #define minor_t int
23210 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23212 if test "${ac_cv_type_ssize_t+set}" = set; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 $ac_includes_default
23222 typedef ssize_t ac__type_new_;
23226 if ((ac__type_new_ *) 0)
23228 if (sizeof (ac__type_new_))
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_compile") 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } && {
23248 test -z "$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 } && test -s conftest.$ac_objext; then
23251 ac_cv_type_ssize_t=yes
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 ac_cv_type_ssize_t=no
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23262 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23263 if test $ac_cv_type_ssize_t = yes; then
23267 cat >>confdefs.h <<_ACEOF
23268 #define ssize_t int
23273 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23274 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23275 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23278 cat >conftest.$ac_ext <<_ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 $ac_includes_default
23288 static struct stat ac_aggr;
23289 if (ac_aggr.st_blocks)
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.$ac_objext; then
23312 ac_cv_member_struct_stat_st_blocks=yes
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 $ac_includes_default
23327 static struct stat ac_aggr;
23328 if (sizeof ac_aggr.st_blocks)
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338 *) ac_try_echo=$ac_try;;
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341 (eval "$ac_compile") 2>conftest.er1
23343 grep -v '^ *+' conftest.er1 >conftest.err
23345 cat conftest.err >&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } && {
23348 test -z "$ac_c_werror_flag" ||
23349 test ! -s conftest.err
23350 } && test -s conftest.$ac_objext; then
23351 ac_cv_member_struct_stat_st_blocks=yes
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ac_cv_member_struct_stat_st_blocks=no
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23365 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23366 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23368 cat >>confdefs.h <<_ACEOF
23369 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23373 cat >>confdefs.h <<\_ACEOF
23374 #define HAVE_ST_BLOCKS 1
23378 case " $LIBOBJS " in
23379 *" fileblocks.$ac_objext "* ) ;;
23380 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23387 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23388 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23389 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23402 static struct stat ac_aggr;
23403 if (ac_aggr.st_rdev)
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_compile") 2>conftest.er1
23418 grep -v '^ *+' conftest.er1 >conftest.err
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest.$ac_objext; then
23426 ac_cv_member_struct_stat_st_rdev=yes
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 $ac_includes_default
23441 static struct stat ac_aggr;
23442 if (sizeof ac_aggr.st_rdev)
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455 (eval "$ac_compile") 2>conftest.er1
23457 grep -v '^ *+' conftest.er1 >conftest.err
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && {
23462 test -z "$ac_c_werror_flag" ||
23463 test ! -s conftest.err
23464 } && test -s conftest.$ac_objext; then
23465 ac_cv_member_struct_stat_st_rdev=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_member_struct_stat_st_rdev=no
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23479 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23480 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23482 cat >>confdefs.h <<_ACEOF
23483 #define HAVE_STRUCT_STAT_ST_RDEV 1
23487 cat >>confdefs.h <<\_ACEOF
23488 #define HAVE_ST_RDEV 1
23494 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23495 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23496 if test "${ac_cv_struct_tm+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #include <sys/types.h>
23512 int *p = &tm.tm_sec;
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_compile") 2>conftest.er1
23527 grep -v '^ *+' conftest.er1 >conftest.err
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } && {
23532 test -z "$ac_c_werror_flag" ||
23533 test ! -s conftest.err
23534 } && test -s conftest.$ac_objext; then
23535 ac_cv_struct_tm=time.h
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 ac_cv_struct_tm=sys/time.h
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23546 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23547 if test $ac_cv_struct_tm = sys/time.h; then
23549 cat >>confdefs.h <<\_ACEOF
23550 #define TM_IN_SYS_TIME 1
23555 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23556 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23557 if test "${ac_cv_c_const+set}" = set; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23570 /* FIXME: Include the comments suggested by Paul. */
23571 #ifndef __cplusplus
23572 /* Ultrix mips cc rejects this. */
23573 typedef int charset[2];
23575 /* SunOS 4.1.1 cc rejects this. */
23576 char const *const *pcpcc;
23578 /* NEC SVR4.0.2 mips cc rejects this. */
23579 struct point {int x, y;};
23580 static struct point const zero = {0,0};
23581 /* AIX XL C 1.02.0.0 rejects this.
23582 It does not let you subtract one const X* pointer from another in
23583 an arm of an if-expression whose if-part is not a constant
23585 const char *g = "string";
23586 pcpcc = &g + (g ? g-g : 0);
23587 /* HPUX 7.0 cc rejects these. */
23589 ppc = (char**) pcpcc;
23590 pcpcc = (char const *const *) ppc;
23591 { /* SCO 3.2v4 cc rejects this. */
23593 char const *s = 0 ? (char *) 0 : (char const *) 0;
23598 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23599 int x[] = {25, 17};
23600 const int *foo = &x[0];
23603 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23604 typedef const int *iptr;
23608 { /* AIX XL C 1.02.0.0 rejects this saying
23609 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23610 struct s { int j; const int *ap[3]; };
23611 struct s *b; b->j = 5;
23613 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23614 const int foo = 10;
23615 if (!foo) return 0;
23617 return !cs[0] && !zero.x;
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_compile") 2>conftest.er1
23633 grep -v '^ *+' conftest.er1 >conftest.err
23635 cat conftest.err >&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } && {
23638 test -z "$ac_c_werror_flag" ||
23639 test ! -s conftest.err
23640 } && test -s conftest.$ac_objext; then
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23652 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23653 if test $ac_cv_c_const = no; then
23655 cat >>confdefs.h <<\_ACEOF
23663 { echo "$as_me:$LINENO: checking for char" >&5
23664 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23665 if test "${ac_cv_type_char+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 cat >conftest.$ac_ext <<_ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 $ac_includes_default
23675 typedef char ac__type_new_;
23679 if ((ac__type_new_ *) 0)
23681 if (sizeof (ac__type_new_))
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694 (eval "$ac_compile") 2>conftest.er1
23696 grep -v '^ *+' conftest.er1 >conftest.err
23698 cat conftest.err >&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } && {
23701 test -z "$ac_c_werror_flag" ||
23702 test ! -s conftest.err
23703 } && test -s conftest.$ac_objext; then
23704 ac_cv_type_char=yes
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23715 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23717 # The cast to long int works around a bug in the HP C Compiler
23718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23720 # This bug is HP SR number 8606223364.
23721 { echo "$as_me:$LINENO: checking size of char" >&5
23722 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23723 if test "${ac_cv_sizeof_char+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 if test "$cross_compiling" = yes; then
23727 # Depending upon the size, compute the lo and hi bounds.
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 $ac_includes_default
23735 typedef char ac__type_sizeof_;
23739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_compile") 2>conftest.er1
23755 grep -v '^ *+' conftest.er1 >conftest.err
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } && {
23760 test -z "$ac_c_werror_flag" ||
23761 test ! -s conftest.err
23762 } && test -s conftest.$ac_objext; then
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 $ac_includes_default
23772 typedef char ac__type_sizeof_;
23776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787 *) ac_try_echo=$ac_try;;
23789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23790 (eval "$ac_compile") 2>conftest.er1
23792 grep -v '^ *+' conftest.er1 >conftest.err
23794 cat conftest.err >&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } && {
23797 test -z "$ac_c_werror_flag" ||
23798 test ! -s conftest.err
23799 } && test -s conftest.$ac_objext; then
23800 ac_hi=$ac_mid; break
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23805 ac_lo=`expr $ac_mid + 1`
23806 if test $ac_lo -le $ac_mid; then
23810 ac_mid=`expr 2 '*' $ac_mid + 1`
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23819 cat >conftest.$ac_ext <<_ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23825 $ac_includes_default
23826 typedef char ac__type_sizeof_;
23830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23856 cat >conftest.$ac_ext <<_ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h. */
23862 $ac_includes_default
23863 typedef char ac__type_sizeof_;
23867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_compile") 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } && {
23888 test -z "$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 } && test -s conftest.$ac_objext; then
23891 ac_lo=$ac_mid; break
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_hi=`expr '(' $ac_mid ')' - 1`
23897 if test $ac_mid -le $ac_hi; then
23901 ac_mid=`expr 2 '*' $ac_mid`
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23917 # Binary search between lo and hi bounds.
23918 while test "x$ac_lo" != "x$ac_hi"; do
23919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 typedef char ac__type_sizeof_;
23931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23938 rm -f conftest.$ac_objext
23939 if { (ac_try="$ac_compile"
23940 case "(($ac_try" in
23941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23942 *) ac_try_echo=$ac_try;;
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945 (eval "$ac_compile") 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && {
23952 test -z "$ac_c_werror_flag" ||
23953 test ! -s conftest.err
23954 } && test -s conftest.$ac_objext; then
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ac_lo=`expr '(' $ac_mid ')' + 1`
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23966 ?*) ac_cv_sizeof_char=$ac_lo;;
23967 '') if test "$ac_cv_type_char" = yes; then
23968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23969 See \`config.log' for more details." >&5
23970 echo "$as_me: error: cannot compute sizeof (char)
23971 See \`config.log' for more details." >&2;}
23972 { (exit 77); exit 77; }; }
23974 ac_cv_sizeof_char=0
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 $ac_includes_default
23985 typedef char ac__type_sizeof_;
23986 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23987 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23989 #include <stdlib.h>
23994 FILE *f = fopen ("conftest.val", "w");
23997 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23999 long int i = longval ();
24000 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24002 fprintf (f, "%ld\n", i);
24006 unsigned long int i = ulongval ();
24007 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24009 fprintf (f, "%lu\n", i);
24011 return ferror (f) || fclose (f) != 0;
24017 rm -f conftest$ac_exeext
24018 if { (ac_try="$ac_link"
24019 case "(($ac_try" in
24020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_link") 2>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24028 { (case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_try") 2>&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; }; then
24037 ac_cv_sizeof_char=`cat conftest.val`
24039 echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ( exit $ac_status )
24044 if test "$ac_cv_type_char" = yes; then
24045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
24046 See \`config.log' for more details." >&5
24047 echo "$as_me: error: cannot compute sizeof (char)
24048 See \`config.log' for more details." >&2;}
24049 { (exit 77); exit 77; }; }
24051 ac_cv_sizeof_char=0
24054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24059 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
24063 cat >>confdefs.h <<_ACEOF
24064 #define SIZEOF_CHAR $ac_cv_sizeof_char
24068 { echo "$as_me:$LINENO: checking for short int" >&5
24069 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24070 if test "${ac_cv_type_short_int+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24079 $ac_includes_default
24080 typedef short int ac__type_new_;
24084 if ((ac__type_new_ *) 0)
24086 if (sizeof (ac__type_new_))
24092 rm -f conftest.$ac_objext
24093 if { (ac_try="$ac_compile"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_compile") 2>conftest.er1
24101 grep -v '^ *+' conftest.er1 >conftest.err
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } && {
24106 test -z "$ac_c_werror_flag" ||
24107 test ! -s conftest.err
24108 } && test -s conftest.$ac_objext; then
24109 ac_cv_type_short_int=yes
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 ac_cv_type_short_int=no
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24120 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24122 # The cast to long int works around a bug in the HP C Compiler
24123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24125 # This bug is HP SR number 8606223364.
24126 { echo "$as_me:$LINENO: checking size of short int" >&5
24127 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24128 if test "${ac_cv_sizeof_short_int+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 if test "$cross_compiling" = yes; then
24132 # Depending upon the size, compute the lo and hi bounds.
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24140 typedef short int ac__type_sizeof_;
24144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24170 cat >conftest.$ac_ext <<_ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h. */
24176 $ac_includes_default
24177 typedef short int ac__type_sizeof_;
24181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24188 rm -f conftest.$ac_objext
24189 if { (ac_try="$ac_compile"
24190 case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195 (eval "$ac_compile") 2>conftest.er1
24197 grep -v '^ *+' conftest.er1 >conftest.err
24199 cat conftest.err >&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } && {
24202 test -z "$ac_c_werror_flag" ||
24203 test ! -s conftest.err
24204 } && test -s conftest.$ac_objext; then
24205 ac_hi=$ac_mid; break
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24210 ac_lo=`expr $ac_mid + 1`
24211 if test $ac_lo -le $ac_mid; then
24215 ac_mid=`expr 2 '*' $ac_mid + 1`
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24224 cat >conftest.$ac_ext <<_ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 $ac_includes_default
24231 typedef short int ac__type_sizeof_;
24235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24261 cat >conftest.$ac_ext <<_ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h. */
24267 $ac_includes_default
24268 typedef short int ac__type_sizeof_;
24272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24288 grep -v '^ *+' conftest.er1 >conftest.err
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 ac_lo=$ac_mid; break
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ac_hi=`expr '(' $ac_mid ')' - 1`
24302 if test $ac_mid -le $ac_hi; then
24306 ac_mid=`expr 2 '*' $ac_mid`
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24322 # Binary search between lo and hi bounds.
24323 while test "x$ac_lo" != "x$ac_hi"; do
24324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 $ac_includes_default
24332 typedef short int ac__type_sizeof_;
24336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_compile") 2>conftest.er1
24352 grep -v '^ *+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest.$ac_objext; then
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24365 ac_lo=`expr '(' $ac_mid ')' + 1`
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24372 '') if test "$ac_cv_type_short_int" = yes; then
24373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24374 See \`config.log' for more details." >&5
24375 echo "$as_me: error: cannot compute sizeof (short int)
24376 See \`config.log' for more details." >&2;}
24377 { (exit 77); exit 77; }; }
24379 ac_cv_sizeof_short_int=0
24383 cat >conftest.$ac_ext <<_ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 $ac_includes_default
24390 typedef short int ac__type_sizeof_;
24391 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24392 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24394 #include <stdlib.h>
24399 FILE *f = fopen ("conftest.val", "w");
24402 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24404 long int i = longval ();
24405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24407 fprintf (f, "%ld\n", i);
24411 unsigned long int i = ulongval ();
24412 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24414 fprintf (f, "%lu\n", i);
24416 return ferror (f) || fclose (f) != 0;
24422 rm -f conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_link") 2>&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24433 { (case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_try") 2>&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; }; then
24442 ac_cv_sizeof_short_int=`cat conftest.val`
24444 echo "$as_me: program exited with status $ac_status" >&5
24445 echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24448 ( exit $ac_status )
24449 if test "$ac_cv_type_short_int" = yes; then
24450 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24451 See \`config.log' for more details." >&5
24452 echo "$as_me: error: cannot compute sizeof (short int)
24453 See \`config.log' for more details." >&2;}
24454 { (exit 77); exit 77; }; }
24456 ac_cv_sizeof_short_int=0
24459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24463 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24464 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24468 cat >>confdefs.h <<_ACEOF
24469 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24473 { echo "$as_me:$LINENO: checking for int" >&5
24474 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24475 if test "${ac_cv_type_int+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24485 typedef int ac__type_new_;
24489 if ((ac__type_new_ *) 0)
24491 if (sizeof (ac__type_new_))
24497 rm -f conftest.$ac_objext
24498 if { (ac_try="$ac_compile"
24499 case "(($ac_try" in
24500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501 *) ac_try_echo=$ac_try;;
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504 (eval "$ac_compile") 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && {
24511 test -z "$ac_c_werror_flag" ||
24512 test ! -s conftest.err
24513 } && test -s conftest.$ac_objext; then
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24525 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24527 # The cast to long int works around a bug in the HP C Compiler
24528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24530 # This bug is HP SR number 8606223364.
24531 { echo "$as_me:$LINENO: checking size of int" >&5
24532 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24533 if test "${ac_cv_sizeof_int+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 if test "$cross_compiling" = yes; then
24537 # Depending upon the size, compute the lo and hi bounds.
24538 cat >conftest.$ac_ext <<_ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24544 $ac_includes_default
24545 typedef int ac__type_sizeof_;
24549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24575 cat >conftest.$ac_ext <<_ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h. */
24581 $ac_includes_default
24582 typedef int ac__type_sizeof_;
24586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_compile") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest.$ac_objext; then
24610 ac_hi=$ac_mid; break
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24615 ac_lo=`expr $ac_mid + 1`
24616 if test $ac_lo -le $ac_mid; then
24620 ac_mid=`expr 2 '*' $ac_mid + 1`
24623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 cat >conftest.$ac_ext <<_ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24635 $ac_includes_default
24636 typedef int ac__type_sizeof_;
24640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_compile") 2>conftest.er1
24656 grep -v '^ *+' conftest.er1 >conftest.err
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } && {
24661 test -z "$ac_c_werror_flag" ||
24662 test ! -s conftest.err
24663 } && test -s conftest.$ac_objext; then
24666 cat >conftest.$ac_ext <<_ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h. */
24672 $ac_includes_default
24673 typedef int ac__type_sizeof_;
24677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24684 rm -f conftest.$ac_objext
24685 if { (ac_try="$ac_compile"
24686 case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691 (eval "$ac_compile") 2>conftest.er1
24693 grep -v '^ *+' conftest.er1 >conftest.err
24695 cat conftest.err >&5
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); } && {
24698 test -z "$ac_c_werror_flag" ||
24699 test ! -s conftest.err
24700 } && test -s conftest.$ac_objext; then
24701 ac_lo=$ac_mid; break
24703 echo "$as_me: failed program was:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24706 ac_hi=`expr '(' $ac_mid ')' - 1`
24707 if test $ac_mid -le $ac_hi; then
24711 ac_mid=`expr 2 '*' $ac_mid`
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 # Binary search between lo and hi bounds.
24728 while test "x$ac_lo" != "x$ac_hi"; do
24729 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 $ac_includes_default
24737 typedef int ac__type_sizeof_;
24741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24748 rm -f conftest.$ac_objext
24749 if { (ac_try="$ac_compile"
24750 case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_compile") 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } && {
24762 test -z "$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24764 } && test -s conftest.$ac_objext; then
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_lo=`expr '(' $ac_mid ')' + 1`
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 ?*) ac_cv_sizeof_int=$ac_lo;;
24777 '') if test "$ac_cv_type_int" = yes; then
24778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24779 See \`config.log' for more details." >&5
24780 echo "$as_me: error: cannot compute sizeof (int)
24781 See \`config.log' for more details." >&2;}
24782 { (exit 77); exit 77; }; }
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24795 typedef int ac__type_sizeof_;
24796 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24797 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24799 #include <stdlib.h>
24804 FILE *f = fopen ("conftest.val", "w");
24807 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24809 long int i = longval ();
24810 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24812 fprintf (f, "%ld\n", i);
24816 unsigned long int i = ulongval ();
24817 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24819 fprintf (f, "%lu\n", i);
24821 return ferror (f) || fclose (f) != 0;
24827 rm -f conftest$ac_exeext
24828 if { (ac_try="$ac_link"
24829 case "(($ac_try" in
24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831 *) ac_try_echo=$ac_try;;
24833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834 (eval "$ac_link") 2>&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24838 { (case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_try") 2>&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; }; then
24847 ac_cv_sizeof_int=`cat conftest.val`
24849 echo "$as_me: program exited with status $ac_status" >&5
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ( exit $ac_status )
24854 if test "$ac_cv_type_int" = yes; then
24855 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24856 See \`config.log' for more details." >&5
24857 echo "$as_me: error: cannot compute sizeof (int)
24858 See \`config.log' for more details." >&2;}
24859 { (exit 77); exit 77; }; }
24864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24868 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24869 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24873 cat >>confdefs.h <<_ACEOF
24874 #define SIZEOF_INT $ac_cv_sizeof_int
24878 { echo "$as_me:$LINENO: checking for long int" >&5
24879 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24880 if test "${ac_cv_type_long_int+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889 $ac_includes_default
24890 typedef long int ac__type_new_;
24894 if ((ac__type_new_ *) 0)
24896 if (sizeof (ac__type_new_))
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_compile") 2>conftest.er1
24911 grep -v '^ *+' conftest.er1 >conftest.err
24913 cat conftest.err >&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } && {
24916 test -z "$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 } && test -s conftest.$ac_objext; then
24919 ac_cv_type_long_int=yes
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 ac_cv_type_long_int=no
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24930 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24932 # The cast to long int works around a bug in the HP C Compiler
24933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24935 # This bug is HP SR number 8606223364.
24936 { echo "$as_me:$LINENO: checking size of long int" >&5
24937 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24938 if test "${ac_cv_sizeof_long_int+set}" = set; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24941 if test "$cross_compiling" = yes; then
24942 # Depending upon the size, compute the lo and hi bounds.
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 $ac_includes_default
24950 typedef long int ac__type_sizeof_;
24954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24961 rm -f conftest.$ac_objext
24962 if { (ac_try="$ac_compile"
24963 case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24970 grep -v '^ *+' conftest.er1 >conftest.err
24972 cat conftest.err >&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.$ac_objext; then
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 typedef long int ac__type_sizeof_;
24991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_compile") 2>conftest.er1
25007 grep -v '^ *+' conftest.er1 >conftest.err
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } && {
25012 test -z "$ac_c_werror_flag" ||
25013 test ! -s conftest.err
25014 } && test -s conftest.$ac_objext; then
25015 ac_hi=$ac_mid; break
25017 echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25020 ac_lo=`expr $ac_mid + 1`
25021 if test $ac_lo -le $ac_mid; then
25025 ac_mid=`expr 2 '*' $ac_mid + 1`
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25031 echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25034 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 $ac_includes_default
25041 typedef long int ac__type_sizeof_;
25045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25052 rm -f conftest.$ac_objext
25053 if { (ac_try="$ac_compile"
25054 case "(($ac_try" in
25055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056 *) ac_try_echo=$ac_try;;
25058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25059 (eval "$ac_compile") 2>conftest.er1
25061 grep -v '^ *+' conftest.er1 >conftest.err
25063 cat conftest.err >&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } && {
25066 test -z "$ac_c_werror_flag" ||
25067 test ! -s conftest.err
25068 } && test -s conftest.$ac_objext; then
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25077 $ac_includes_default
25078 typedef long int ac__type_sizeof_;
25082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093 *) ac_try_echo=$ac_try;;
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096 (eval "$ac_compile") 2>conftest.er1
25098 grep -v '^ *+' conftest.er1 >conftest.err
25100 cat conftest.err >&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } && {
25103 test -z "$ac_c_werror_flag" ||
25104 test ! -s conftest.err
25105 } && test -s conftest.$ac_objext; then
25106 ac_lo=$ac_mid; break
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 ac_hi=`expr '(' $ac_mid ')' - 1`
25112 if test $ac_mid -le $ac_hi; then
25116 ac_mid=`expr 2 '*' $ac_mid`
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132 # Binary search between lo and hi bounds.
25133 while test "x$ac_lo" != "x$ac_hi"; do
25134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 $ac_includes_default
25142 typedef long int ac__type_sizeof_;
25146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25153 rm -f conftest.$ac_objext
25154 if { (ac_try="$ac_compile"
25155 case "(($ac_try" in
25156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25157 *) ac_try_echo=$ac_try;;
25159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25160 (eval "$ac_compile") 2>conftest.er1
25162 grep -v '^ *+' conftest.er1 >conftest.err
25164 cat conftest.err >&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } && {
25167 test -z "$ac_c_werror_flag" ||
25168 test ! -s conftest.err
25169 } && test -s conftest.$ac_objext; then
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 ac_lo=`expr '(' $ac_mid ')' + 1`
25178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25182 '') if test "$ac_cv_type_long_int" = yes; then
25183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25184 See \`config.log' for more details." >&5
25185 echo "$as_me: error: cannot compute sizeof (long int)
25186 See \`config.log' for more details." >&2;}
25187 { (exit 77); exit 77; }; }
25189 ac_cv_sizeof_long_int=0
25193 cat >conftest.$ac_ext <<_ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 $ac_includes_default
25200 typedef long int ac__type_sizeof_;
25201 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25202 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25204 #include <stdlib.h>
25209 FILE *f = fopen ("conftest.val", "w");
25212 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25214 long int i = longval ();
25215 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25217 fprintf (f, "%ld\n", i);
25221 unsigned long int i = ulongval ();
25222 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25224 fprintf (f, "%lu\n", i);
25226 return ferror (f) || fclose (f) != 0;
25232 rm -f conftest$ac_exeext
25233 if { (ac_try="$ac_link"
25234 case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239 (eval "$ac_link") 2>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25243 { (case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248 (eval "$ac_try") 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25252 ac_cv_sizeof_long_int=`cat conftest.val`
25254 echo "$as_me: program exited with status $ac_status" >&5
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ( exit $ac_status )
25259 if test "$ac_cv_type_long_int" = yes; then
25260 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25261 See \`config.log' for more details." >&5
25262 echo "$as_me: error: cannot compute sizeof (long int)
25263 See \`config.log' for more details." >&2;}
25264 { (exit 77); exit 77; }; }
25266 ac_cv_sizeof_long_int=0
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25273 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25274 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25278 cat >>confdefs.h <<_ACEOF
25279 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25283 { echo "$as_me:$LINENO: checking for long long int" >&5
25284 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25285 if test "${ac_cv_type_long_long_int+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 $ac_includes_default
25295 typedef long long int ac__type_new_;
25299 if ((ac__type_new_ *) 0)
25301 if (sizeof (ac__type_new_))
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 ac_cv_type_long_long_int=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_type_long_long_int=no
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25334 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25335 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25337 # The cast to long int works around a bug in the HP C Compiler
25338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25340 # This bug is HP SR number 8606223364.
25341 { echo "$as_me:$LINENO: checking size of long long int" >&5
25342 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25343 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25346 if test "$cross_compiling" = yes; then
25347 # Depending upon the size, compute the lo and hi bounds.
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 $ac_includes_default
25355 typedef long long int ac__type_sizeof_;
25359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25366 rm -f conftest.$ac_objext
25367 if { (ac_try="$ac_compile"
25368 case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_compile") 2>conftest.er1
25375 grep -v '^ *+' conftest.er1 >conftest.err
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } && {
25380 test -z "$ac_c_werror_flag" ||
25381 test ! -s conftest.err
25382 } && test -s conftest.$ac_objext; then
25385 cat >conftest.$ac_ext <<_ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h. */
25391 $ac_includes_default
25392 typedef long long int ac__type_sizeof_;
25396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25403 rm -f conftest.$ac_objext
25404 if { (ac_try="$ac_compile"
25405 case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_compile") 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } && {
25417 test -z "$ac_c_werror_flag" ||
25418 test ! -s conftest.err
25419 } && test -s conftest.$ac_objext; then
25420 ac_hi=$ac_mid; break
25422 echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ac_lo=`expr $ac_mid + 1`
25426 if test $ac_lo -le $ac_mid; then
25430 ac_mid=`expr 2 '*' $ac_mid + 1`
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25439 cat >conftest.$ac_ext <<_ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25445 $ac_includes_default
25446 typedef long long int ac__type_sizeof_;
25450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25457 rm -f conftest.$ac_objext
25458 if { (ac_try="$ac_compile"
25459 case "(($ac_try" in
25460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25461 *) ac_try_echo=$ac_try;;
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464 (eval "$ac_compile") 2>conftest.er1
25466 grep -v '^ *+' conftest.er1 >conftest.err
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && {
25471 test -z "$ac_c_werror_flag" ||
25472 test ! -s conftest.err
25473 } && test -s conftest.$ac_objext; then
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 $ac_includes_default
25483 typedef long long int ac__type_sizeof_;
25487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_compile") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && {
25508 test -z "$ac_c_werror_flag" ||
25509 test ! -s conftest.err
25510 } && test -s conftest.$ac_objext; then
25511 ac_lo=$ac_mid; break
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ac_hi=`expr '(' $ac_mid ')' - 1`
25517 if test $ac_mid -le $ac_hi; then
25521 ac_mid=`expr 2 '*' $ac_mid`
25524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25537 # Binary search between lo and hi bounds.
25538 while test "x$ac_lo" != "x$ac_hi"; do
25539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 $ac_includes_default
25547 typedef long long int ac__type_sizeof_;
25551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25558 rm -f conftest.$ac_objext
25559 if { (ac_try="$ac_compile"
25560 case "(($ac_try" in
25561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25562 *) ac_try_echo=$ac_try;;
25564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25565 (eval "$ac_compile") 2>conftest.er1
25567 grep -v '^ *+' conftest.er1 >conftest.err
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } && {
25572 test -z "$ac_c_werror_flag" ||
25573 test ! -s conftest.err
25574 } && test -s conftest.$ac_objext; then
25577 echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 ac_lo=`expr '(' $ac_mid ')' + 1`
25583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25586 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25587 '') if test "$ac_cv_type_long_long_int" = yes; then
25588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25589 See \`config.log' for more details." >&5
25590 echo "$as_me: error: cannot compute sizeof (long long int)
25591 See \`config.log' for more details." >&2;}
25592 { (exit 77); exit 77; }; }
25594 ac_cv_sizeof_long_long_int=0
25598 cat >conftest.$ac_ext <<_ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h. */
25604 $ac_includes_default
25605 typedef long long int ac__type_sizeof_;
25606 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25607 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25609 #include <stdlib.h>
25614 FILE *f = fopen ("conftest.val", "w");
25617 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25619 long int i = longval ();
25620 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25622 fprintf (f, "%ld\n", i);
25626 unsigned long int i = ulongval ();
25627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25629 fprintf (f, "%lu\n", i);
25631 return ferror (f) || fclose (f) != 0;
25637 rm -f conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_link") 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25648 { (case "(($ac_try" in
25649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650 *) ac_try_echo=$ac_try;;
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653 (eval "$ac_try") 2>&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
25657 ac_cv_sizeof_long_long_int=`cat conftest.val`
25659 echo "$as_me: program exited with status $ac_status" >&5
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25663 ( exit $ac_status )
25664 if test "$ac_cv_type_long_long_int" = yes; then
25665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25666 See \`config.log' for more details." >&5
25667 echo "$as_me: error: cannot compute sizeof (long long int)
25668 See \`config.log' for more details." >&2;}
25669 { (exit 77); exit 77; }; }
25671 ac_cv_sizeof_long_long_int=0
25674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25678 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25679 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25683 cat >>confdefs.h <<_ACEOF
25684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25688 { echo "$as_me:$LINENO: checking for int *" >&5
25689 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25690 if test "${ac_cv_type_int_p+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699 $ac_includes_default
25700 typedef int * ac__type_new_;
25704 if ((ac__type_new_ *) 0)
25706 if (sizeof (ac__type_new_))
25712 rm -f conftest.$ac_objext
25713 if { (ac_try="$ac_compile"
25714 case "(($ac_try" in
25715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719 (eval "$ac_compile") 2>conftest.er1
25721 grep -v '^ *+' conftest.er1 >conftest.err
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } && {
25726 test -z "$ac_c_werror_flag" ||
25727 test ! -s conftest.err
25728 } && test -s conftest.$ac_objext; then
25729 ac_cv_type_int_p=yes
25731 echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25734 ac_cv_type_int_p=no
25737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25740 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25742 # The cast to long int works around a bug in the HP C Compiler
25743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25745 # This bug is HP SR number 8606223364.
25746 { echo "$as_me:$LINENO: checking size of int *" >&5
25747 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25748 if test "${ac_cv_sizeof_int_p+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 if test "$cross_compiling" = yes; then
25752 # Depending upon the size, compute the lo and hi bounds.
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 $ac_includes_default
25760 typedef int * ac__type_sizeof_;
25764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25771 rm -f conftest.$ac_objext
25772 if { (ac_try="$ac_compile"
25773 case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_compile") 2>conftest.er1
25780 grep -v '^ *+' conftest.er1 >conftest.err
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest.$ac_objext; then
25790 cat >conftest.$ac_ext <<_ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h. */
25796 $ac_includes_default
25797 typedef int * ac__type_sizeof_;
25801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_compile") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1 >conftest.err
25819 cat conftest.err >&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest.$ac_objext; then
25825 ac_hi=$ac_mid; break
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25830 ac_lo=`expr $ac_mid + 1`
25831 if test $ac_lo -le $ac_mid; then
25835 ac_mid=`expr 2 '*' $ac_mid + 1`
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841 echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 $ac_includes_default
25851 typedef int * ac__type_sizeof_;
25855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_compile") 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } && {
25876 test -z "$ac_c_werror_flag" ||
25877 test ! -s conftest.err
25878 } && test -s conftest.$ac_objext; then
25881 cat >conftest.$ac_ext <<_ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 $ac_includes_default
25888 typedef int * ac__type_sizeof_;
25892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25899 rm -f conftest.$ac_objext
25900 if { (ac_try="$ac_compile"
25901 case "(($ac_try" in
25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903 *) ac_try_echo=$ac_try;;
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906 (eval "$ac_compile") 2>conftest.er1
25908 grep -v '^ *+' conftest.er1 >conftest.err
25910 cat conftest.err >&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && {
25913 test -z "$ac_c_werror_flag" ||
25914 test ! -s conftest.err
25915 } && test -s conftest.$ac_objext; then
25916 ac_lo=$ac_mid; break
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_hi=`expr '(' $ac_mid ')' - 1`
25922 if test $ac_mid -le $ac_hi; then
25926 ac_mid=`expr 2 '*' $ac_mid`
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 # Binary search between lo and hi bounds.
25943 while test "x$ac_lo" != "x$ac_hi"; do
25944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 $ac_includes_default
25952 typedef int * ac__type_sizeof_;
25956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25963 rm -f conftest.$ac_objext
25964 if { (ac_try="$ac_compile"
25965 case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_compile") 2>conftest.er1
25972 grep -v '^ *+' conftest.er1 >conftest.err
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest.$ac_objext; then
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 ac_lo=`expr '(' $ac_mid ')' + 1`
25988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25991 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25992 '') if test "$ac_cv_type_int_p" = yes; then
25993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25994 See \`config.log' for more details." >&5
25995 echo "$as_me: error: cannot compute sizeof (int *)
25996 See \`config.log' for more details." >&2;}
25997 { (exit 77); exit 77; }; }
25999 ac_cv_sizeof_int_p=0
26003 cat >conftest.$ac_ext <<_ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 $ac_includes_default
26010 typedef int * ac__type_sizeof_;
26011 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26012 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26014 #include <stdlib.h>
26019 FILE *f = fopen ("conftest.val", "w");
26022 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26024 long int i = longval ();
26025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26027 fprintf (f, "%ld\n", i);
26031 unsigned long int i = ulongval ();
26032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26034 fprintf (f, "%lu\n", i);
26036 return ferror (f) || fclose (f) != 0;
26042 rm -f conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046 *) ac_try_echo=$ac_try;;
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049 (eval "$ac_link") 2>&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26053 { (case "(($ac_try" in
26054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055 *) ac_try_echo=$ac_try;;
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058 (eval "$ac_try") 2>&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; }; then
26062 ac_cv_sizeof_int_p=`cat conftest.val`
26064 echo "$as_me: program exited with status $ac_status" >&5
26065 echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26068 ( exit $ac_status )
26069 if test "$ac_cv_type_int_p" = yes; then
26070 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26071 See \`config.log' for more details." >&5
26072 echo "$as_me: error: cannot compute sizeof (int *)
26073 See \`config.log' for more details." >&2;}
26074 { (exit 77); exit 77; }; }
26076 ac_cv_sizeof_int_p=0
26079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26083 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
26084 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
26088 cat >>confdefs.h <<_ACEOF
26089 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26094 # Check for sys/types.h types
26095 { echo "$as_me:$LINENO: checking for u_int type" >&5
26096 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26097 if test "${ac_cv_have_u_int+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26101 cat >conftest.$ac_ext <<_ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107 #include <sys/types.h>
26116 rm -f conftest.$ac_objext
26117 if { (ac_try="$ac_compile"
26118 case "(($ac_try" in
26119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120 *) ac_try_echo=$ac_try;;
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123 (eval "$ac_compile") 2>conftest.er1
26125 grep -v '^ *+' conftest.er1 >conftest.err
26127 cat conftest.err >&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } && {
26130 test -z "$ac_c_werror_flag" ||
26131 test ! -s conftest.err
26132 } && test -s conftest.$ac_objext; then
26133 ac_cv_have_u_int="yes"
26135 echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26138 ac_cv_have_u_int="no"
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26146 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26147 if test "x$ac_cv_have_u_int" = "xyes" ; then
26148 cat >>confdefs.h <<\_ACEOF
26149 #define HAVE_U_INT 1
26155 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26156 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26157 if test "${ac_cv_have_intmax_t+set}" = set; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26161 cat >conftest.$ac_ext <<_ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h. */
26167 #include <sys/types.h>
26176 rm -f conftest.$ac_objext
26177 if { (ac_try="$ac_compile"
26178 case "(($ac_try" in
26179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180 *) ac_try_echo=$ac_try;;
26182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183 (eval "$ac_compile") 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } && {
26190 test -z "$ac_c_werror_flag" ||
26191 test ! -s conftest.err
26192 } && test -s conftest.$ac_objext; then
26193 ac_cv_have_intmax_t="yes"
26195 echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26199 cat >conftest.$ac_ext <<_ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26205 #include <stdint.h>
26214 rm -f conftest.$ac_objext
26215 if { (ac_try="$ac_compile"
26216 case "(($ac_try" in
26217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218 *) ac_try_echo=$ac_try;;
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221 (eval "$ac_compile") 2>conftest.er1
26223 grep -v '^ *+' conftest.er1 >conftest.err
26225 cat conftest.err >&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } && {
26228 test -z "$ac_c_werror_flag" ||
26229 test ! -s conftest.err
26230 } && test -s conftest.$ac_objext; then
26231 ac_cv_have_intmax_t="yes"
26233 echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26236 ac_cv_have_intmax_t="no"
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26250 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26251 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26252 cat >>confdefs.h <<\_ACEOF
26253 #define HAVE_INTMAX_T 1
26260 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26261 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26262 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26266 cat >conftest.$ac_ext <<_ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26272 #include <sys/types.h>
26276 u_intmax_t a; a = 1;
26281 rm -f conftest.$ac_objext
26282 if { (ac_try="$ac_compile"
26283 case "(($ac_try" in
26284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285 *) ac_try_echo=$ac_try;;
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288 (eval "$ac_compile") 2>conftest.er1
26290 grep -v '^ *+' conftest.er1 >conftest.err
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } && {
26295 test -z "$ac_c_werror_flag" ||
26296 test ! -s conftest.err
26297 } && test -s conftest.$ac_objext; then
26298 ac_cv_have_u_intmax_t="yes"
26300 echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26304 cat >conftest.$ac_ext <<_ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h. */
26310 #include <stdint.h>
26314 u_intmax_t a; a = 1;
26319 rm -f conftest.$ac_objext
26320 if { (ac_try="$ac_compile"
26321 case "(($ac_try" in
26322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323 *) ac_try_echo=$ac_try;;
26325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326 (eval "$ac_compile") 2>conftest.er1
26328 grep -v '^ *+' conftest.er1 >conftest.err
26330 cat conftest.err >&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } && {
26333 test -z "$ac_c_werror_flag" ||
26334 test ! -s conftest.err
26335 } && test -s conftest.$ac_objext; then
26336 ac_cv_have_u_intmax_t="yes"
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26341 ac_cv_have_u_intmax_t="no"
26345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26353 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26354 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26355 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26356 cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_U_INTMAX_T 1
26364 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26365 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26366 if test "${ac_cv_have_intxx_t+set}" = set; then
26367 echo $ECHO_N "(cached) $ECHO_C" >&6
26370 cat >conftest.$ac_ext <<_ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h. */
26376 #include <sys/types.h>
26380 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26385 rm -f conftest.$ac_objext
26386 if { (ac_try="$ac_compile"
26387 case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392 (eval "$ac_compile") 2>conftest.er1
26394 grep -v '^ *+' conftest.er1 >conftest.err
26396 cat conftest.err >&5
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } && {
26399 test -z "$ac_c_werror_flag" ||
26400 test ! -s conftest.err
26401 } && test -s conftest.$ac_objext; then
26402 ac_cv_have_intxx_t="yes"
26404 echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26407 ac_cv_have_intxx_t="no"
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26414 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26415 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26416 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26417 cat >>confdefs.h <<\_ACEOF
26418 #define HAVE_INTXX_T 1
26424 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26425 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26426 if test "${ac_cv_have_int64_t+set}" = set; then
26427 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 #include <sys/types.h>
26445 rm -f conftest.$ac_objext
26446 if { (ac_try="$ac_compile"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_compile") 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest.$ac_objext; then
26462 ac_cv_have_int64_t="yes"
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 ac_cv_have_int64_t="no"
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26474 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26475 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26476 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26477 cat >>confdefs.h <<\_ACEOF
26478 #define HAVE_INT64_T 1
26484 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26485 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26486 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26487 echo $ECHO_N "(cached) $ECHO_C" >&6
26490 cat >conftest.$ac_ext <<_ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h. */
26496 #include <sys/types.h>
26500 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509 *) ac_try_echo=$ac_try;;
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512 (eval "$ac_compile") 2>conftest.er1
26514 grep -v '^ *+' conftest.er1 >conftest.err
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } && {
26519 test -z "$ac_c_werror_flag" ||
26520 test ! -s conftest.err
26521 } && test -s conftest.$ac_objext; then
26522 ac_cv_have_u_intxx_t="yes"
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_cv_have_u_intxx_t="no"
26531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26534 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26535 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26536 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26537 cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_U_INTXX_T 1
26544 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26545 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26546 if test "${ac_cv_have_u_int64_t+set}" = set; then
26547 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 cat >conftest.$ac_ext <<_ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h. */
26556 #include <sys/types.h>
26560 u_int64_t a; a = 1;
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_compile") 2>conftest.er1
26574 grep -v '^ *+' conftest.er1 >conftest.err
26576 cat conftest.err >&5
26577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest.$ac_objext; then
26582 ac_cv_have_u_int64_t="yes"
26584 echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26587 ac_cv_have_u_int64_t="no"
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26594 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26595 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26596 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26597 cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_U_INT64_T 1
26604 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26605 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26607 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26608 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 #include <sys/bitypes.h>
26619 int8_t a; int16_t b; int32_t c;
26620 u_int8_t e; u_int16_t f; u_int32_t g;
26621 a = b = c = e = f = g = 1;
26626 rm -f conftest.$ac_objext
26627 if { (ac_try="$ac_compile"
26628 case "(($ac_try" in
26629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26630 *) ac_try_echo=$ac_try;;
26632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26633 (eval "$ac_compile") 2>conftest.er1
26635 grep -v '^ *+' conftest.er1 >conftest.err
26637 cat conftest.err >&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); } && {
26640 test -z "$ac_c_werror_flag" ||
26641 test ! -s conftest.err
26642 } && test -s conftest.$ac_objext; then
26643 cat >>confdefs.h <<\_ACEOF
26644 #define HAVE_U_INTXX_T 1
26647 cat >>confdefs.h <<\_ACEOF
26648 #define HAVE_INTXX_T 1
26651 cat >>confdefs.h <<\_ACEOF
26652 #define HAVE_SYS_BITYPES_H 1
26655 { echo "$as_me:$LINENO: result: yes" >&5
26656 echo "${ECHO_T}yes" >&6; }
26658 echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26661 { echo "$as_me:$LINENO: result: no" >&5
26662 echo "${ECHO_T}no" >&6; }
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 if test -z "$have_u_intxx_t" ; then
26670 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26671 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26672 if test "${ac_cv_have_uintxx_t+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26682 #include <sys/types.h>
26686 uint8_t a; uint16_t b;
26687 uint32_t c; a = b = c = 1;
26692 rm -f conftest.$ac_objext
26693 if { (ac_try="$ac_compile"
26694 case "(($ac_try" in
26695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26696 *) ac_try_echo=$ac_try;;
26698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26699 (eval "$ac_compile") 2>conftest.er1
26701 grep -v '^ *+' conftest.er1 >conftest.err
26703 cat conftest.err >&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } && {
26706 test -z "$ac_c_werror_flag" ||
26707 test ! -s conftest.err
26708 } && test -s conftest.$ac_objext; then
26709 ac_cv_have_uintxx_t="yes"
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 ac_cv_have_uintxx_t="no"
26718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26721 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26722 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26723 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26724 cat >>confdefs.h <<\_ACEOF
26725 #define HAVE_UINTXX_T 1
26731 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26732 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26734 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26735 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26736 cat >conftest.$ac_ext <<_ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26742 #include <sys/bitypes.h>
26746 int64_t a; u_int64_t b;
26752 rm -f conftest.$ac_objext
26753 if { (ac_try="$ac_compile"
26754 case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_compile") 2>conftest.er1
26761 grep -v '^ *+' conftest.er1 >conftest.err
26763 cat conftest.err >&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } && {
26766 test -z "$ac_c_werror_flag" ||
26767 test ! -s conftest.err
26768 } && test -s conftest.$ac_objext; then
26769 cat >>confdefs.h <<\_ACEOF
26770 #define HAVE_U_INT64_T 1
26773 cat >>confdefs.h <<\_ACEOF
26774 #define HAVE_INT64_T 1
26777 { echo "$as_me:$LINENO: result: yes" >&5
26778 echo "${ECHO_T}yes" >&6; }
26780 echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 { echo "$as_me:$LINENO: result: no" >&5
26784 echo "${ECHO_T}no" >&6; }
26788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791 if (test -z "$have_uintxx_t" && \
26792 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26794 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26795 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 #include <sys/bitypes.h>
26806 uint8_t a; uint16_t b;
26807 uint32_t c; a = b = c = 1;
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819 (eval "$ac_compile") 2>conftest.er1
26821 grep -v '^ *+' conftest.er1 >conftest.err
26823 cat conftest.err >&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } && {
26826 test -z "$ac_c_werror_flag" ||
26827 test ! -s conftest.err
26828 } && test -s conftest.$ac_objext; then
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_UINTXX_T 1
26833 { echo "$as_me:$LINENO: result: yes" >&5
26834 echo "${ECHO_T}yes" >&6; }
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 { echo "$as_me:$LINENO: result: no" >&5
26840 echo "${ECHO_T}no" >&6; }
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 cat >conftest.$ac_ext <<_ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26894 #define $ac_func innocuous_$ac_func
26896 /* System header to define __stub macros and hopefully few prototypes,
26897 which can conflict with char $ac_func (); below.
26898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26899 <limits.h> exists even on freestanding compilers. */
26902 # include <limits.h>
26904 # include <assert.h>
26909 /* Override any GCC internal prototype to avoid an error.
26910 Use char because int might match the return type of a GCC
26911 builtin and then its argument prototype would still apply. */
26916 /* The GNU C library defines this for functions which it implements
26917 to always fail with ENOSYS. Some functions are actually named
26918 something starting with __ and the normal name is an alias. */
26919 #if defined __stub_$ac_func || defined __stub___$ac_func
26926 return $ac_func ();
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938 (eval "$ac_link") 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } && {
26945 test -z "$ac_c_werror_flag" ||
26946 test ! -s conftest.err
26947 } && test -s conftest$ac_exeext &&
26948 $as_test_x conftest$ac_exeext; then
26949 eval "$as_ac_var=yes"
26951 echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 eval "$as_ac_var=no"
26957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26958 conftest$ac_exeext conftest.$ac_ext
26960 ac_res=`eval echo '${'$as_ac_var'}'`
26961 { echo "$as_me:$LINENO: result: $ac_res" >&5
26962 echo "${ECHO_T}$ac_res" >&6; }
26963 if test `eval echo '${'$as_ac_var'}'` = yes; then
26964 cat >>confdefs.h <<_ACEOF
26965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26969 echo 'configure: cannot find needed function.'; exit 1
26976 for ac_func in fchdir
26978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26984 cat >conftest.$ac_ext <<_ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h. */
26990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26992 #define $ac_func innocuous_$ac_func
26994 /* System header to define __stub macros and hopefully few prototypes,
26995 which can conflict with char $ac_func (); below.
26996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26997 <limits.h> exists even on freestanding compilers. */
27000 # include <limits.h>
27002 # include <assert.h>
27007 /* Override any GCC internal prototype to avoid an error.
27008 Use char because int might match the return type of a GCC
27009 builtin and then its argument prototype would still apply. */
27014 /* The GNU C library defines this for functions which it implements
27015 to always fail with ENOSYS. Some functions are actually named
27016 something starting with __ and the normal name is an alias. */
27017 #if defined __stub_$ac_func || defined __stub___$ac_func
27024 return $ac_func ();
27029 rm -f conftest.$ac_objext conftest$ac_exeext
27030 if { (ac_try="$ac_link"
27031 case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_link") 2>conftest.er1
27038 grep -v '^ *+' conftest.er1 >conftest.err
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } && {
27043 test -z "$ac_c_werror_flag" ||
27044 test ! -s conftest.err
27045 } && test -s conftest$ac_exeext &&
27046 $as_test_x conftest$ac_exeext; then
27047 eval "$as_ac_var=yes"
27049 echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27052 eval "$as_ac_var=no"
27055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27056 conftest$ac_exeext conftest.$ac_ext
27058 ac_res=`eval echo '${'$as_ac_var'}'`
27059 { echo "$as_me:$LINENO: result: $ac_res" >&5
27060 echo "${ECHO_T}$ac_res" >&6; }
27061 if test `eval echo '${'$as_ac_var'}'` = yes; then
27062 cat >>confdefs.h <<_ACEOF
27063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27065 cat >>confdefs.h <<\_ACEOF
27066 #define HAVE_FCHDIR 1
27073 for ac_func in strtoll
27075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27089 #define $ac_func innocuous_$ac_func
27091 /* System header to define __stub macros and hopefully few prototypes,
27092 which can conflict with char $ac_func (); below.
27093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27094 <limits.h> exists even on freestanding compilers. */
27097 # include <limits.h>
27099 # include <assert.h>
27104 /* Override any GCC internal prototype to avoid an error.
27105 Use char because int might match the return type of a GCC
27106 builtin and then its argument prototype would still apply. */
27111 /* The GNU C library defines this for functions which it implements
27112 to always fail with ENOSYS. Some functions are actually named
27113 something starting with __ and the normal name is an alias. */
27114 #if defined __stub_$ac_func || defined __stub___$ac_func
27121 return $ac_func ();
27126 rm -f conftest.$ac_objext conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_link") 2>conftest.er1
27135 grep -v '^ *+' conftest.er1 >conftest.err
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } && {
27140 test -z "$ac_c_werror_flag" ||
27141 test ! -s conftest.err
27142 } && test -s conftest$ac_exeext &&
27143 $as_test_x conftest$ac_exeext; then
27144 eval "$as_ac_var=yes"
27146 echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27149 eval "$as_ac_var=no"
27152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27153 conftest$ac_exeext conftest.$ac_ext
27155 ac_res=`eval echo '${'$as_ac_var'}'`
27156 { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 if test `eval echo '${'$as_ac_var'}'` = yes; then
27159 cat >>confdefs.h <<_ACEOF
27160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27162 cat >>confdefs.h <<\_ACEOF
27163 #define HAVE_STRTOLL 1
27170 for ac_func in posix_fadvise
27172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27186 #define $ac_func innocuous_$ac_func
27188 /* System header to define __stub macros and hopefully few prototypes,
27189 which can conflict with char $ac_func (); below.
27190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27191 <limits.h> exists even on freestanding compilers. */
27194 # include <limits.h>
27196 # include <assert.h>
27201 /* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27208 /* The GNU C library defines this for functions which it implements
27209 to always fail with ENOSYS. Some functions are actually named
27210 something starting with __ and the normal name is an alias. */
27211 #if defined __stub_$ac_func || defined __stub___$ac_func
27218 return $ac_func ();
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (ac_try="$ac_link"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_link") 2>conftest.er1
27232 grep -v '^ *+' conftest.er1 >conftest.err
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } && {
27237 test -z "$ac_c_werror_flag" ||
27238 test ! -s conftest.err
27239 } && test -s conftest$ac_exeext &&
27240 $as_test_x conftest$ac_exeext; then
27241 eval "$as_ac_var=yes"
27243 echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27246 eval "$as_ac_var=no"
27249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27250 conftest$ac_exeext conftest.$ac_ext
27252 ac_res=`eval echo '${'$as_ac_var'}'`
27253 { echo "$as_me:$LINENO: result: $ac_res" >&5
27254 echo "${ECHO_T}$ac_res" >&6; }
27255 if test `eval echo '${'$as_ac_var'}'` = yes; then
27256 cat >>confdefs.h <<_ACEOF
27257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27264 for ac_func in fdatasync
27266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27272 cat >conftest.$ac_ext <<_ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h. */
27278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27280 #define $ac_func innocuous_$ac_func
27282 /* System header to define __stub macros and hopefully few prototypes,
27283 which can conflict with char $ac_func (); below.
27284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27285 <limits.h> exists even on freestanding compilers. */
27288 # include <limits.h>
27290 # include <assert.h>
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27302 /* The GNU C library defines this for functions which it implements
27303 to always fail with ENOSYS. Some functions are actually named
27304 something starting with __ and the normal name is an alias. */
27305 #if defined __stub_$ac_func || defined __stub___$ac_func
27312 return $ac_func ();
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_link") 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest$ac_exeext &&
27334 $as_test_x conftest$ac_exeext; then
27335 eval "$as_ac_var=yes"
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 eval "$as_ac_var=no"
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344 conftest$ac_exeext conftest.$ac_ext
27346 ac_res=`eval echo '${'$as_ac_var'}'`
27347 { echo "$as_me:$LINENO: result: $ac_res" >&5
27348 echo "${ECHO_T}$ac_res" >&6; }
27349 if test `eval echo '${'$as_ac_var'}'` = yes; then
27350 cat >>confdefs.h <<_ACEOF
27351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27359 for ac_func in chflags
27361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27365 echo $ECHO_N "(cached) $ECHO_C" >&6
27367 cat >conftest.$ac_ext <<_ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27375 #define $ac_func innocuous_$ac_func
27377 /* System header to define __stub macros and hopefully few prototypes,
27378 which can conflict with char $ac_func (); below.
27379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27380 <limits.h> exists even on freestanding compilers. */
27383 # include <limits.h>
27385 # include <assert.h>
27390 /* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27397 /* The GNU C library defines this for functions which it implements
27398 to always fail with ENOSYS. Some functions are actually named
27399 something starting with __ and the normal name is an alias. */
27400 #if defined __stub_$ac_func || defined __stub___$ac_func
27407 return $ac_func ();
27412 rm -f conftest.$ac_objext conftest$ac_exeext
27413 if { (ac_try="$ac_link"
27414 case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_link") 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } && {
27426 test -z "$ac_c_werror_flag" ||
27427 test ! -s conftest.err
27428 } && test -s conftest$ac_exeext &&
27429 $as_test_x conftest$ac_exeext; then
27430 eval "$as_ac_var=yes"
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 eval "$as_ac_var=no"
27438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27439 conftest$ac_exeext conftest.$ac_ext
27441 ac_res=`eval echo '${'$as_ac_var'}'`
27442 { echo "$as_me:$LINENO: result: $ac_res" >&5
27443 echo "${ECHO_T}$ac_res" >&6; }
27444 if test `eval echo '${'$as_ac_var'}'` = yes; then
27445 cat >>confdefs.h <<_ACEOF
27446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27457 for ac_func in snprintf vsnprintf gethostid fseeko
27459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27463 echo $ECHO_N "(cached) $ECHO_C" >&6
27465 cat >conftest.$ac_ext <<_ACEOF
27468 cat confdefs.h >>conftest.$ac_ext
27469 cat >>conftest.$ac_ext <<_ACEOF
27470 /* end confdefs.h. */
27471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27473 #define $ac_func innocuous_$ac_func
27475 /* System header to define __stub macros and hopefully few prototypes,
27476 which can conflict with char $ac_func (); below.
27477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27478 <limits.h> exists even on freestanding compilers. */
27481 # include <limits.h>
27483 # include <assert.h>
27488 /* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
27495 /* The GNU C library defines this for functions which it implements
27496 to always fail with ENOSYS. Some functions are actually named
27497 something starting with __ and the normal name is an alias. */
27498 #if defined __stub_$ac_func || defined __stub___$ac_func
27505 return $ac_func ();
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_link") 2>conftest.er1
27519 grep -v '^ *+' conftest.er1 >conftest.err
27521 cat conftest.err >&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } && {
27524 test -z "$ac_c_werror_flag" ||
27525 test ! -s conftest.err
27526 } && test -s conftest$ac_exeext &&
27527 $as_test_x conftest$ac_exeext; then
27528 eval "$as_ac_var=yes"
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 eval "$as_ac_var=no"
27536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27537 conftest$ac_exeext conftest.$ac_ext
27539 ac_res=`eval echo '${'$as_ac_var'}'`
27540 { echo "$as_me:$LINENO: result: $ac_res" >&5
27541 echo "${ECHO_T}$ac_res" >&6; }
27542 if test `eval echo '${'$as_ac_var'}'` = yes; then
27543 cat >>confdefs.h <<_ACEOF
27544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27551 { echo "$as_me:$LINENO: checking for va_copy" >&5
27552 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27553 if test "${ba_cv_va_copy+set}" = set; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
27556 cat >conftest.$ac_ext <<_ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h. */
27563 #include <stdarg.h>
27564 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27565 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27570 call_use_va_copy(1,2,3)
27575 rm -f conftest.$ac_objext conftest$ac_exeext
27576 if { (ac_try="$ac_link"
27577 case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_link") 2>conftest.er1
27584 grep -v '^ *+' conftest.er1 >conftest.err
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); } && {
27589 test -z "$ac_c_werror_flag" ||
27590 test ! -s conftest.err
27591 } && test -s conftest$ac_exeext &&
27592 $as_test_x conftest$ac_exeext; then
27595 echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27602 conftest$ac_exeext conftest.$ac_ext
27604 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27605 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27606 test $ba_cv_va_copy = yes &&
27607 cat >>confdefs.h <<\_ACEOF
27608 #define HAVE_VA_COPY 1
27617 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 cat >conftest.$ac_ext <<_ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27633 #define $ac_func innocuous_$ac_func
27635 /* System header to define __stub macros and hopefully few prototypes,
27636 which can conflict with char $ac_func (); below.
27637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27638 <limits.h> exists even on freestanding compilers. */
27641 # include <limits.h>
27643 # include <assert.h>
27648 /* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
27655 /* The GNU C library defines this for functions which it implements
27656 to always fail with ENOSYS. Some functions are actually named
27657 something starting with __ and the normal name is an alias. */
27658 #if defined __stub_$ac_func || defined __stub___$ac_func
27665 return $ac_func ();
27670 rm -f conftest.$ac_objext conftest$ac_exeext
27671 if { (ac_try="$ac_link"
27672 case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_link") 2>conftest.er1
27679 grep -v '^ *+' conftest.er1 >conftest.err
27681 cat conftest.err >&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } && {
27684 test -z "$ac_c_werror_flag" ||
27685 test ! -s conftest.err
27686 } && test -s conftest$ac_exeext &&
27687 $as_test_x conftest$ac_exeext; then
27688 eval "$as_ac_var=yes"
27690 echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 eval "$as_ac_var=no"
27696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27697 conftest$ac_exeext conftest.$ac_ext
27699 ac_res=`eval echo '${'$as_ac_var'}'`
27700 { echo "$as_me:$LINENO: result: $ac_res" >&5
27701 echo "${ECHO_T}$ac_res" >&6; }
27702 if test `eval echo '${'$as_ac_var'}'` = yes; then
27703 cat >>confdefs.h <<_ACEOF
27704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27711 # If resolver functions are not in libc check for -lnsl or -lresolv.
27712 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27713 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27714 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27715 echo $ECHO_N "(cached) $ECHO_C" >&6
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27723 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27725 #define gethostbyname_r innocuous_gethostbyname_r
27727 /* System header to define __stub macros and hopefully few prototypes,
27728 which can conflict with char gethostbyname_r (); below.
27729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27730 <limits.h> exists even on freestanding compilers. */
27733 # include <limits.h>
27735 # include <assert.h>
27738 #undef gethostbyname_r
27740 /* Override any GCC internal prototype to avoid an error.
27741 Use char because int might match the return type of a GCC
27742 builtin and then its argument prototype would still apply. */
27746 char gethostbyname_r ();
27747 /* The GNU C library defines this for functions which it implements
27748 to always fail with ENOSYS. Some functions are actually named
27749 something starting with __ and the normal name is an alias. */
27750 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27757 return gethostbyname_r ();
27762 rm -f conftest.$ac_objext conftest$ac_exeext
27763 if { (ac_try="$ac_link"
27764 case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_link") 2>conftest.er1
27771 grep -v '^ *+' conftest.er1 >conftest.err
27773 cat conftest.err >&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } && {
27776 test -z "$ac_c_werror_flag" ||
27777 test ! -s conftest.err
27778 } && test -s conftest$ac_exeext &&
27779 $as_test_x conftest$ac_exeext; then
27780 ac_cv_func_gethostbyname_r=yes
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ac_cv_func_gethostbyname_r=no
27788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27789 conftest$ac_exeext conftest.$ac_ext
27791 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27792 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27793 if test $ac_cv_func_gethostbyname_r = yes; then
27794 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27795 echo "${ECHO_T}using libc's resolver" >&6; }
27798 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27799 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27800 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27803 ac_check_lib_save_LIBS=$LIBS
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27812 /* Override any GCC internal prototype to avoid an error.
27813 Use char because int might match the return type of a GCC
27814 builtin and then its argument prototype would still apply. */
27818 char gethostbyname_r ();
27822 return gethostbyname_r ();
27827 rm -f conftest.$ac_objext conftest$ac_exeext
27828 if { (ac_try="$ac_link"
27829 case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834 (eval "$ac_link") 2>conftest.er1
27836 grep -v '^ *+' conftest.er1 >conftest.err
27838 cat conftest.err >&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } && {
27841 test -z "$ac_c_werror_flag" ||
27842 test ! -s conftest.err
27843 } && test -s conftest$ac_exeext &&
27844 $as_test_x conftest$ac_exeext; then
27845 ac_cv_lib_nsl_gethostbyname_r=yes
27847 echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27850 ac_cv_lib_nsl_gethostbyname_r=no
27853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27854 conftest$ac_exeext conftest.$ac_ext
27855 LIBS=$ac_check_lib_save_LIBS
27857 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27858 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27859 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27860 cat >>confdefs.h <<_ACEOF
27861 #define HAVE_LIBNSL 1
27869 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27870 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27871 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lresolv $LIBS"
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27883 /* Override any GCC internal prototype to avoid an error.
27884 Use char because int might match the return type of a GCC
27885 builtin and then its argument prototype would still apply. */
27889 char gethostbyname_r ();
27893 return gethostbyname_r ();
27898 rm -f conftest.$ac_objext conftest$ac_exeext
27899 if { (ac_try="$ac_link"
27900 case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_link") 2>conftest.er1
27907 grep -v '^ *+' conftest.er1 >conftest.err
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } && {
27912 test -z "$ac_c_werror_flag" ||
27913 test ! -s conftest.err
27914 } && test -s conftest$ac_exeext &&
27915 $as_test_x conftest$ac_exeext; then
27916 ac_cv_lib_resolv_gethostbyname_r=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 ac_cv_lib_resolv_gethostbyname_r=no
27924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27925 conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27929 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27930 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27931 cat >>confdefs.h <<_ACEOF
27932 #define HAVE_LIBRESOLV 1
27935 LIBS="-lresolv $LIBS"
27945 for ac_func in inet_pton
27947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27961 #define $ac_func innocuous_$ac_func
27963 /* System header to define __stub macros and hopefully few prototypes,
27964 which can conflict with char $ac_func (); below.
27965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27966 <limits.h> exists even on freestanding compilers. */
27969 # include <limits.h>
27971 # include <assert.h>
27976 /* Override any GCC internal prototype to avoid an error.
27977 Use char because int might match the return type of a GCC
27978 builtin and then its argument prototype would still apply. */
27983 /* The GNU C library defines this for functions which it implements
27984 to always fail with ENOSYS. Some functions are actually named
27985 something starting with __ and the normal name is an alias. */
27986 #if defined __stub_$ac_func || defined __stub___$ac_func
27993 return $ac_func ();
27998 rm -f conftest.$ac_objext conftest$ac_exeext
27999 if { (ac_try="$ac_link"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_link") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } && {
28012 test -z "$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 } && test -s conftest$ac_exeext &&
28015 $as_test_x conftest$ac_exeext; then
28016 eval "$as_ac_var=yes"
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 eval "$as_ac_var=no"
28024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28025 conftest$ac_exeext conftest.$ac_ext
28027 ac_res=`eval echo '${'$as_ac_var'}'`
28028 { echo "$as_me:$LINENO: result: $ac_res" >&5
28029 echo "${ECHO_T}$ac_res" >&6; }
28030 if test `eval echo '${'$as_ac_var'}'` = yes; then
28031 cat >>confdefs.h <<_ACEOF
28032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28034 cat >>confdefs.h <<\_ACEOF
28035 #define HAVE_INET_PTON 1
28042 for ac_func in inet_ntop
28044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28058 #define $ac_func innocuous_$ac_func
28060 /* System header to define __stub macros and hopefully few prototypes,
28061 which can conflict with char $ac_func (); below.
28062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28063 <limits.h> exists even on freestanding compilers. */
28066 # include <limits.h>
28068 # include <assert.h>
28073 /* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply. */
28080 /* The GNU C library defines this for functions which it implements
28081 to always fail with ENOSYS. Some functions are actually named
28082 something starting with __ and the normal name is an alias. */
28083 #if defined __stub_$ac_func || defined __stub___$ac_func
28090 return $ac_func ();
28095 rm -f conftest.$ac_objext conftest$ac_exeext
28096 if { (ac_try="$ac_link"
28097 case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_link") 2>conftest.er1
28104 grep -v '^ *+' conftest.er1 >conftest.err
28106 cat conftest.err >&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } && {
28109 test -z "$ac_c_werror_flag" ||
28110 test ! -s conftest.err
28111 } && test -s conftest$ac_exeext &&
28112 $as_test_x conftest$ac_exeext; then
28113 eval "$as_ac_var=yes"
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28118 eval "$as_ac_var=no"
28121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28122 conftest$ac_exeext conftest.$ac_ext
28124 ac_res=`eval echo '${'$as_ac_var'}'`
28125 { echo "$as_me:$LINENO: result: $ac_res" >&5
28126 echo "${ECHO_T}$ac_res" >&6; }
28127 if test `eval echo '${'$as_ac_var'}'` = yes; then
28128 cat >>confdefs.h <<_ACEOF
28129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28131 cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_INET_NTOP 1
28139 for ac_func in gethostbyname2
28141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28147 cat >conftest.$ac_ext <<_ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28155 #define $ac_func innocuous_$ac_func
28157 /* System header to define __stub macros and hopefully few prototypes,
28158 which can conflict with char $ac_func (); below.
28159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28160 <limits.h> exists even on freestanding compilers. */
28163 # include <limits.h>
28165 # include <assert.h>
28170 /* Override any GCC internal prototype to avoid an error.
28171 Use char because int might match the return type of a GCC
28172 builtin and then its argument prototype would still apply. */
28177 /* The GNU C library defines this for functions which it implements
28178 to always fail with ENOSYS. Some functions are actually named
28179 something starting with __ and the normal name is an alias. */
28180 #if defined __stub_$ac_func || defined __stub___$ac_func
28187 return $ac_func ();
28192 rm -f conftest.$ac_objext conftest$ac_exeext
28193 if { (ac_try="$ac_link"
28194 case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_link") 2>conftest.er1
28201 grep -v '^ *+' conftest.er1 >conftest.err
28203 cat conftest.err >&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); } && {
28206 test -z "$ac_c_werror_flag" ||
28207 test ! -s conftest.err
28208 } && test -s conftest$ac_exeext &&
28209 $as_test_x conftest$ac_exeext; then
28210 eval "$as_ac_var=yes"
28212 echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28215 eval "$as_ac_var=no"
28218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28219 conftest$ac_exeext conftest.$ac_ext
28221 ac_res=`eval echo '${'$as_ac_var'}'`
28222 { echo "$as_me:$LINENO: result: $ac_res" >&5
28223 echo "${ECHO_T}$ac_res" >&6; }
28224 if test `eval echo '${'$as_ac_var'}'` = yes; then
28225 cat >>confdefs.h <<_ACEOF
28226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_GETHOSTBYNAME2 1
28236 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28237 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28238 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28239 echo $ECHO_N "(cached) $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28247 #include <sys/socket.h>
28251 struct sockaddr s; s.sa_len;
28256 rm -f conftest.$ac_objext
28257 if { (ac_try="$ac_compile"
28258 case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_compile") 2>conftest.er1
28265 grep -v '^ *+' conftest.er1 >conftest.err
28267 cat conftest.err >&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } && {
28270 test -z "$ac_c_werror_flag" ||
28271 test ! -s conftest.err
28272 } && test -s conftest.$ac_objext; then
28273 ac_cv_struct_sockaddr_sa_len=yes
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28278 ac_cv_struct_sockaddr_sa_len=no
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28283 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28284 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28286 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_SA_LEN 1
28298 for ac_func in strftime
28300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 cat >conftest.$ac_ext <<_ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h. */
28312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28314 #define $ac_func innocuous_$ac_func
28316 /* System header to define __stub macros and hopefully few prototypes,
28317 which can conflict with char $ac_func (); below.
28318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28319 <limits.h> exists even on freestanding compilers. */
28322 # include <limits.h>
28324 # include <assert.h>
28329 /* Override any GCC internal prototype to avoid an error.
28330 Use char because int might match the return type of a GCC
28331 builtin and then its argument prototype would still apply. */
28336 /* The GNU C library defines this for functions which it implements
28337 to always fail with ENOSYS. Some functions are actually named
28338 something starting with __ and the normal name is an alias. */
28339 #if defined __stub_$ac_func || defined __stub___$ac_func
28346 return $ac_func ();
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_link") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest$ac_exeext &&
28368 $as_test_x conftest$ac_exeext; then
28369 eval "$as_ac_var=yes"
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 eval "$as_ac_var=no"
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378 conftest$ac_exeext conftest.$ac_ext
28380 ac_res=`eval echo '${'$as_ac_var'}'`
28381 { echo "$as_me:$LINENO: result: $ac_res" >&5
28382 echo "${ECHO_T}$ac_res" >&6; }
28383 if test `eval echo '${'$as_ac_var'}'` = yes; then
28384 cat >>confdefs.h <<_ACEOF
28385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28389 # strftime is in -lintl on SCO UNIX.
28390 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28391 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28392 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28393 echo $ECHO_N "(cached) $ECHO_C" >&6
28395 ac_check_lib_save_LIBS=$LIBS
28396 LIBS="-lintl $LIBS"
28397 cat >conftest.$ac_ext <<_ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h. */
28404 /* Override any GCC internal prototype to avoid an error.
28405 Use char because int might match the return type of a GCC
28406 builtin and then its argument prototype would still apply. */
28414 return strftime ();
28419 rm -f conftest.$ac_objext conftest$ac_exeext
28420 if { (ac_try="$ac_link"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_link") 2>conftest.er1
28428 grep -v '^ *+' conftest.er1 >conftest.err
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest$ac_exeext &&
28436 $as_test_x conftest$ac_exeext; then
28437 ac_cv_lib_intl_strftime=yes
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_cv_lib_intl_strftime=no
28445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28446 conftest$ac_exeext conftest.$ac_ext
28447 LIBS=$ac_check_lib_save_LIBS
28449 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28450 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28451 if test $ac_cv_lib_intl_strftime = yes; then
28452 cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_STRFTIME 1
28456 LIBS="-lintl $LIBS"
28463 for ac_func in vprintf
28465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28469 echo $ECHO_N "(cached) $ECHO_C" >&6
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28479 #define $ac_func innocuous_$ac_func
28481 /* System header to define __stub macros and hopefully few prototypes,
28482 which can conflict with char $ac_func (); below.
28483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28484 <limits.h> exists even on freestanding compilers. */
28487 # include <limits.h>
28489 # include <assert.h>
28494 /* Override any GCC internal prototype to avoid an error.
28495 Use char because int might match the return type of a GCC
28496 builtin and then its argument prototype would still apply. */
28501 /* The GNU C library defines this for functions which it implements
28502 to always fail with ENOSYS. Some functions are actually named
28503 something starting with __ and the normal name is an alias. */
28504 #if defined __stub_$ac_func || defined __stub___$ac_func
28511 return $ac_func ();
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (ac_try="$ac_link"
28518 case "(($ac_try" in
28519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_link") 2>conftest.er1
28525 grep -v '^ *+' conftest.er1 >conftest.err
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } && {
28530 test -z "$ac_c_werror_flag" ||
28531 test ! -s conftest.err
28532 } && test -s conftest$ac_exeext &&
28533 $as_test_x conftest$ac_exeext; then
28534 eval "$as_ac_var=yes"
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28539 eval "$as_ac_var=no"
28542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28543 conftest$ac_exeext conftest.$ac_ext
28545 ac_res=`eval echo '${'$as_ac_var'}'`
28546 { echo "$as_me:$LINENO: result: $ac_res" >&5
28547 echo "${ECHO_T}$ac_res" >&6; }
28548 if test `eval echo '${'$as_ac_var'}'` = yes; then
28549 cat >>confdefs.h <<_ACEOF
28550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28553 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28554 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28555 if test "${ac_cv_func__doprnt+set}" = set; then
28556 echo $ECHO_N "(cached) $ECHO_C" >&6
28558 cat >conftest.$ac_ext <<_ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28566 #define _doprnt innocuous__doprnt
28568 /* System header to define __stub macros and hopefully few prototypes,
28569 which can conflict with char _doprnt (); below.
28570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28571 <limits.h> exists even on freestanding compilers. */
28574 # include <limits.h>
28576 # include <assert.h>
28581 /* Override any GCC internal prototype to avoid an error.
28582 Use char because int might match the return type of a GCC
28583 builtin and then its argument prototype would still apply. */
28588 /* The GNU C library defines this for functions which it implements
28589 to always fail with ENOSYS. Some functions are actually named
28590 something starting with __ and the normal name is an alias. */
28591 #if defined __stub__doprnt || defined __stub____doprnt
28603 rm -f conftest.$ac_objext conftest$ac_exeext
28604 if { (ac_try="$ac_link"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_link") 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } && {
28617 test -z "$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 } && test -s conftest$ac_exeext &&
28620 $as_test_x conftest$ac_exeext; then
28621 ac_cv_func__doprnt=yes
28623 echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28626 ac_cv_func__doprnt=no
28629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28630 conftest$ac_exeext conftest.$ac_ext
28632 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28633 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28634 if test $ac_cv_func__doprnt = yes; then
28636 cat >>confdefs.h <<\_ACEOF
28637 #define HAVE_DOPRNT 1
28646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28647 # for constant arguments. Useless!
28648 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28649 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28650 if test "${ac_cv_working_alloca_h+set}" = set; then
28651 echo $ECHO_N "(cached) $ECHO_C" >&6
28653 cat >conftest.$ac_ext <<_ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28659 #include <alloca.h>
28663 char *p = (char *) alloca (2 * sizeof (int));
28669 rm -f conftest.$ac_objext conftest$ac_exeext
28670 if { (ac_try="$ac_link"
28671 case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_link") 2>conftest.er1
28678 grep -v '^ *+' conftest.er1 >conftest.err
28680 cat conftest.err >&5
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); } && {
28683 test -z "$ac_c_werror_flag" ||
28684 test ! -s conftest.err
28685 } && test -s conftest$ac_exeext &&
28686 $as_test_x conftest$ac_exeext; then
28687 ac_cv_working_alloca_h=yes
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28692 ac_cv_working_alloca_h=no
28695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28696 conftest$ac_exeext conftest.$ac_ext
28698 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28699 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28700 if test $ac_cv_working_alloca_h = yes; then
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_ALLOCA_H 1
28708 { echo "$as_me:$LINENO: checking for alloca" >&5
28709 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28710 if test "${ac_cv_func_alloca_works+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28713 cat >conftest.$ac_ext <<_ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h. */
28720 # define alloca __builtin_alloca
28723 # include <malloc.h>
28724 # define alloca _alloca
28726 # ifdef HAVE_ALLOCA_H
28727 # include <alloca.h>
28732 # ifndef alloca /* predefined by HP cc +Olibcalls */
28743 char *p = (char *) alloca (1);
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (ac_try="$ac_link"
28751 case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_link") 2>conftest.er1
28758 grep -v '^ *+' conftest.er1 >conftest.err
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } && {
28763 test -z "$ac_c_werror_flag" ||
28764 test ! -s conftest.err
28765 } && test -s conftest$ac_exeext &&
28766 $as_test_x conftest$ac_exeext; then
28767 ac_cv_func_alloca_works=yes
28769 echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28772 ac_cv_func_alloca_works=no
28775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28776 conftest$ac_exeext conftest.$ac_ext
28778 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28779 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28781 if test $ac_cv_func_alloca_works = yes; then
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_ALLOCA 1
28788 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28789 # that cause trouble. Some versions do not even contain alloca or
28790 # contain a buggy version. If you still want to use their alloca,
28791 # use ar to extract alloca.o from them instead of compiling alloca.c.
28793 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28795 cat >>confdefs.h <<\_ACEOF
28800 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28801 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28802 if test "${ac_cv_os_cray+set}" = set; then
28803 echo $ECHO_N "(cached) $ECHO_C" >&6
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 #if defined CRAY && ! defined CRAY2
28818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28819 $EGREP "webecray" >/dev/null 2>&1; then
28827 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28828 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28829 if test $ac_cv_os_cray = yes; then
28830 for ac_func in _getb67 GETB67 getb67; do
28831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28835 echo $ECHO_N "(cached) $ECHO_C" >&6
28837 cat >conftest.$ac_ext <<_ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28845 #define $ac_func innocuous_$ac_func
28847 /* System header to define __stub macros and hopefully few prototypes,
28848 which can conflict with char $ac_func (); below.
28849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28850 <limits.h> exists even on freestanding compilers. */
28853 # include <limits.h>
28855 # include <assert.h>
28860 /* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28867 /* The GNU C library defines this for functions which it implements
28868 to always fail with ENOSYS. Some functions are actually named
28869 something starting with __ and the normal name is an alias. */
28870 #if defined __stub_$ac_func || defined __stub___$ac_func
28877 return $ac_func ();
28882 rm -f conftest.$ac_objext conftest$ac_exeext
28883 if { (ac_try="$ac_link"
28884 case "(($ac_try" in
28885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886 *) ac_try_echo=$ac_try;;
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889 (eval "$ac_link") 2>conftest.er1
28891 grep -v '^ *+' conftest.er1 >conftest.err
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } && {
28896 test -z "$ac_c_werror_flag" ||
28897 test ! -s conftest.err
28898 } && test -s conftest$ac_exeext &&
28899 $as_test_x conftest$ac_exeext; then
28900 eval "$as_ac_var=yes"
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 eval "$as_ac_var=no"
28908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28909 conftest$ac_exeext conftest.$ac_ext
28911 ac_res=`eval echo '${'$as_ac_var'}'`
28912 { echo "$as_me:$LINENO: result: $ac_res" >&5
28913 echo "${ECHO_T}$ac_res" >&6; }
28914 if test `eval echo '${'$as_ac_var'}'` = yes; then
28916 cat >>confdefs.h <<_ACEOF
28917 #define CRAY_STACKSEG_END $ac_func
28926 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28928 if test "${ac_cv_c_stack_direction+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28931 if test "$cross_compiling" = yes; then
28932 ac_cv_c_stack_direction=0
28934 cat >conftest.$ac_ext <<_ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28940 $ac_includes_default
28942 find_stack_direction ()
28944 static char *addr = 0;
28949 return find_stack_direction ();
28952 return (&dummy > addr) ? 1 : -1;
28958 return find_stack_direction () < 0;
28961 rm -f conftest$ac_exeext
28962 if { (ac_try="$ac_link"
28963 case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_link") 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972 { (case "(($ac_try" in
28973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_try") 2>&5
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 ac_cv_c_stack_direction=1
28983 echo "$as_me: program exited with status $ac_status" >&5
28984 echo "$as_me: failed program was:" >&5
28985 sed 's/^/| /' conftest.$ac_ext >&5
28987 ( exit $ac_status )
28988 ac_cv_c_stack_direction=-1
28990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28995 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28996 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28998 cat >>confdefs.h <<_ACEOF
28999 #define STACK_DIRECTION $ac_cv_c_stack_direction
29005 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29006 # -lseq on Dynix/PTX, -lgen on Unixware.
29007 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29008 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29009 if test "${ac_cv_search_getmntent+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 ac_func_search_save_LIBS=$LIBS
29013 cat >conftest.$ac_ext <<_ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h. */
29020 /* Override any GCC internal prototype to avoid an error.
29021 Use char because int might match the return type of a GCC
29022 builtin and then its argument prototype would still apply. */
29030 return getmntent ();
29035 for ac_lib in '' sun seq gen; do
29036 if test -z "$ac_lib"; then
29037 ac_res="none required"
29040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29042 rm -f conftest.$ac_objext conftest$ac_exeext
29043 if { (ac_try="$ac_link"
29044 case "(($ac_try" in
29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046 *) ac_try_echo=$ac_try;;
29048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049 (eval "$ac_link") 2>conftest.er1
29051 grep -v '^ *+' conftest.er1 >conftest.err
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } && {
29056 test -z "$ac_c_werror_flag" ||
29057 test ! -s conftest.err
29058 } && test -s conftest$ac_exeext &&
29059 $as_test_x conftest$ac_exeext; then
29060 ac_cv_search_getmntent=$ac_res
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29070 if test "${ac_cv_search_getmntent+set}" = set; then
29074 if test "${ac_cv_search_getmntent+set}" = set; then
29077 ac_cv_search_getmntent=no
29079 rm conftest.$ac_ext
29080 LIBS=$ac_func_search_save_LIBS
29082 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29083 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29084 ac_res=$ac_cv_search_getmntent
29085 if test "$ac_res" != no; then
29086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29087 ac_cv_func_getmntent=yes
29089 cat >>confdefs.h <<\_ACEOF
29090 #define HAVE_GETMNTENT 1
29094 ac_cv_func_getmntent=no
29098 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29099 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29100 if test "${ac_cv_func_closedir_void+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29103 if test "$cross_compiling" = yes; then
29104 ac_cv_func_closedir_void=yes
29106 cat >conftest.$ac_ext <<_ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h. */
29112 $ac_includes_default
29113 #include <$ac_header_dirent>
29114 #ifndef __cplusplus
29121 return closedir (opendir (".")) != 0;
29126 rm -f conftest$ac_exeext
29127 if { (ac_try="$ac_link"
29128 case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_link") 2>&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29137 { (case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_try") 2>&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; }; then
29146 ac_cv_func_closedir_void=no
29148 echo "$as_me: program exited with status $ac_status" >&5
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29152 ( exit $ac_status )
29153 ac_cv_func_closedir_void=yes
29155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29160 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29161 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29162 if test $ac_cv_func_closedir_void = yes; then
29164 cat >>confdefs.h <<\_ACEOF
29165 #define CLOSEDIR_VOID 1
29170 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29171 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29172 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 if test "$cross_compiling" = yes; then
29176 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29177 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29178 { (exit 1); exit 1; }; }
29180 cat >conftest.$ac_ext <<_ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h. */
29186 $ac_includes_default
29190 /* If this system has a BSD-style setpgrp which takes arguments,
29191 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29192 exit successfully. */
29193 return setpgrp (1,1) != -1;
29198 rm -f conftest$ac_exeext
29199 if { (ac_try="$ac_link"
29200 case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205 (eval "$ac_link") 2>&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29209 { (case "(($ac_try" in
29210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211 *) ac_try_echo=$ac_try;;
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214 (eval "$ac_try") 2>&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 ac_cv_func_setpgrp_void=no
29220 echo "$as_me: program exited with status $ac_status" >&5
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29224 ( exit $ac_status )
29225 ac_cv_func_setpgrp_void=yes
29227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29232 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29233 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29234 if test $ac_cv_func_setpgrp_void = yes; then
29236 cat >>confdefs.h <<\_ACEOF
29237 #define SETPGRP_VOID 1
29241 # AC_FUNC_FNMATCH dnl use local version
29244 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29245 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29246 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29249 ac_check_lib_save_LIBS=$LIBS
29250 LIBS="-lintl $LIBS"
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29258 /* Override any GCC internal prototype to avoid an error.
29259 Use char because int might match the return type of a GCC
29260 builtin and then its argument prototype would still apply. */
29273 rm -f conftest.$ac_objext conftest$ac_exeext
29274 if { (ac_try="$ac_link"
29275 case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280 (eval "$ac_link") 2>conftest.er1
29282 grep -v '^ *+' conftest.er1 >conftest.err
29284 cat conftest.err >&5
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); } && {
29287 test -z "$ac_c_werror_flag" ||
29288 test ! -s conftest.err
29289 } && test -s conftest$ac_exeext &&
29290 $as_test_x conftest$ac_exeext; then
29291 ac_cv_lib_intl_gettext=yes
29293 echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29296 ac_cv_lib_intl_gettext=no
29299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29300 conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29303 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29304 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29305 if test $ac_cv_lib_intl_gettext = yes; then
29306 LIBS="$LIBS -lintl"
29312 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29313 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29314 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 ac_check_lib_save_LIBS=$LIBS
29319 cat >conftest.$ac_ext <<_ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h. */
29326 /* Override any GCC internal prototype to avoid an error.
29327 Use char because int might match the return type of a GCC
29328 builtin and then its argument prototype would still apply. */
29336 return getpwnam ();
29341 rm -f conftest.$ac_objext conftest$ac_exeext
29342 if { (ac_try="$ac_link"
29343 case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_link") 2>conftest.er1
29350 grep -v '^ *+' conftest.er1 >conftest.err
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } && {
29355 test -z "$ac_c_werror_flag" ||
29356 test ! -s conftest.err
29357 } && test -s conftest$ac_exeext &&
29358 $as_test_x conftest$ac_exeext; then
29359 ac_cv_lib_sun_getpwnam=yes
29361 echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29364 ac_cv_lib_sun_getpwnam=no
29367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29368 conftest$ac_exeext conftest.$ac_ext
29369 LIBS=$ac_check_lib_save_LIBS
29371 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29372 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29373 if test $ac_cv_lib_sun_getpwnam = yes; then
29374 cat >>confdefs.h <<_ACEOF
29375 #define HAVE_LIBSUN 1
29384 for ac_header in zlib.h
29386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 ac_res=`eval echo '${'$as_ac_Header'}'`
29394 { echo "$as_me:$LINENO: result: $ac_res" >&5
29395 echo "${ECHO_T}$ac_res" >&6; }
29397 # Is the header compilable?
29398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29400 cat >conftest.$ac_ext <<_ACEOF
29403 cat confdefs.h >>conftest.$ac_ext
29404 cat >>conftest.$ac_ext <<_ACEOF
29405 /* end confdefs.h. */
29406 $ac_includes_default
29407 #include <$ac_header>
29409 rm -f conftest.$ac_objext
29410 if { (ac_try="$ac_compile"
29411 case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_compile") 2>conftest.er1
29418 grep -v '^ *+' conftest.er1 >conftest.err
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } && {
29423 test -z "$ac_c_werror_flag" ||
29424 test ! -s conftest.err
29425 } && test -s conftest.$ac_objext; then
29426 ac_header_compiler=yes
29428 echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29431 ac_header_compiler=no
29434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29436 echo "${ECHO_T}$ac_header_compiler" >&6; }
29438 # Is the header present?
29439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29441 cat >conftest.$ac_ext <<_ACEOF
29444 cat confdefs.h >>conftest.$ac_ext
29445 cat >>conftest.$ac_ext <<_ACEOF
29446 /* end confdefs.h. */
29447 #include <$ac_header>
29449 if { (ac_try="$ac_cpp conftest.$ac_ext"
29450 case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29457 grep -v '^ *+' conftest.er1 >conftest.err
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } >/dev/null && {
29462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29463 test ! -s conftest.err
29465 ac_header_preproc=yes
29467 echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29470 ac_header_preproc=no
29473 rm -f conftest.err conftest.$ac_ext
29474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29475 echo "${ECHO_T}$ac_header_preproc" >&6; }
29477 # So? What about this header?
29478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29484 ac_header_preproc=yes
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29505 echo $ECHO_N "(cached) $ECHO_C" >&6
29507 eval "$as_ac_Header=\$ac_header_preproc"
29509 ac_res=`eval echo '${'$as_ac_Header'}'`
29510 { echo "$as_me:$LINENO: result: $ac_res" >&5
29511 echo "${ECHO_T}$ac_res" >&6; }
29514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29515 cat >>confdefs.h <<_ACEOF
29516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29523 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29524 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29525 if test "${ac_cv_lib_z_deflate+set}" = set; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29528 ac_check_lib_save_LIBS=$LIBS
29530 cat >conftest.$ac_ext <<_ACEOF
29533 cat confdefs.h >>conftest.$ac_ext
29534 cat >>conftest.$ac_ext <<_ACEOF
29535 /* end confdefs.h. */
29537 /* Override any GCC internal prototype to avoid an error.
29538 Use char because int might match the return type of a GCC
29539 builtin and then its argument prototype would still apply. */
29552 rm -f conftest.$ac_objext conftest$ac_exeext
29553 if { (ac_try="$ac_link"
29554 case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_link") 2>conftest.er1
29561 grep -v '^ *+' conftest.er1 >conftest.err
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } && {
29566 test -z "$ac_c_werror_flag" ||
29567 test ! -s conftest.err
29568 } && test -s conftest$ac_exeext &&
29569 $as_test_x conftest$ac_exeext; then
29570 ac_cv_lib_z_deflate=yes
29572 echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29575 ac_cv_lib_z_deflate=no
29578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29579 conftest$ac_exeext conftest.$ac_ext
29580 LIBS=$ac_check_lib_save_LIBS
29582 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29583 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29584 if test $ac_cv_lib_z_deflate = yes; then
29589 if test x$FDLIBS = x-lz; then
29590 cat >>confdefs.h <<\_ACEOF
29591 #define HAVE_LIBZ 1
29598 # Check for ACL libraries
29601 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29602 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29603 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29604 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29608 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29610 # Is the header compilable?
29611 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29612 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29613 cat >conftest.$ac_ext <<_ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h. */
29619 $ac_includes_default
29620 #include <sys/acl.h>
29622 rm -f conftest.$ac_objext
29623 if { (ac_try="$ac_compile"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629 (eval "$ac_compile") 2>conftest.er1
29631 grep -v '^ *+' conftest.er1 >conftest.err
29633 cat conftest.err >&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } && {
29636 test -z "$ac_c_werror_flag" ||
29637 test ! -s conftest.err
29638 } && test -s conftest.$ac_objext; then
29639 ac_header_compiler=yes
29641 echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29644 ac_header_compiler=no
29647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649 echo "${ECHO_T}$ac_header_compiler" >&6; }
29651 # Is the header present?
29652 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29653 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 #include <sys/acl.h>
29662 if { (ac_try="$ac_cpp conftest.$ac_ext"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } >/dev/null && {
29675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29678 ac_header_preproc=yes
29680 echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29683 ac_header_preproc=no
29686 rm -f conftest.err conftest.$ac_ext
29687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29688 echo "${ECHO_T}$ac_header_preproc" >&6; }
29690 # So? What about this header?
29691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29693 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29694 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29696 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29697 ac_header_preproc=yes
29700 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29701 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29703 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29704 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29705 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29706 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29707 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29708 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29709 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29710 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29711 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29715 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29716 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29717 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29720 ac_cv_header_sys_acl_h=$ac_header_preproc
29722 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29723 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29728 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29729 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29730 if test "${ac_cv_func_acl_get_file+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 cat >conftest.$ac_ext <<_ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29739 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29741 #define acl_get_file innocuous_acl_get_file
29743 /* System header to define __stub macros and hopefully few prototypes,
29744 which can conflict with char acl_get_file (); below.
29745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29746 <limits.h> exists even on freestanding compilers. */
29749 # include <limits.h>
29751 # include <assert.h>
29754 #undef acl_get_file
29756 /* Override any GCC internal prototype to avoid an error.
29757 Use char because int might match the return type of a GCC
29758 builtin and then its argument prototype would still apply. */
29762 char acl_get_file ();
29763 /* The GNU C library defines this for functions which it implements
29764 to always fail with ENOSYS. Some functions are actually named
29765 something starting with __ and the normal name is an alias. */
29766 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29773 return acl_get_file ();
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (ac_try="$ac_link"
29780 case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_link") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } && {
29792 test -z "$ac_c_werror_flag" ||
29793 test ! -s conftest.err
29794 } && test -s conftest$ac_exeext &&
29795 $as_test_x conftest$ac_exeext; then
29796 ac_cv_func_acl_get_file=yes
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 ac_cv_func_acl_get_file=no
29804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29805 conftest$ac_exeext conftest.$ac_ext
29807 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29808 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29809 if test $ac_cv_func_acl_get_file = yes; then
29812 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29813 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29814 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29817 ac_check_lib_save_LIBS=$LIBS
29819 cat >conftest.$ac_ext <<_ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h. */
29826 /* Override any GCC internal prototype to avoid an error.
29827 Use char because int might match the return type of a GCC
29828 builtin and then its argument prototype would still apply. */
29832 char acl_get_file ();
29836 return acl_get_file ();
29841 rm -f conftest.$ac_objext conftest$ac_exeext
29842 if { (ac_try="$ac_link"
29843 case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_link") 2>conftest.er1
29850 grep -v '^ *+' conftest.er1 >conftest.err
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } && {
29855 test -z "$ac_c_werror_flag" ||
29856 test ! -s conftest.err
29857 } && test -s conftest$ac_exeext &&
29858 $as_test_x conftest$ac_exeext; then
29859 ac_cv_lib_acl_acl_get_file=yes
29861 echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29864 ac_cv_lib_acl_acl_get_file=no
29867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29868 conftest$ac_exeext conftest.$ac_ext
29869 LIBS=$ac_check_lib_save_LIBS
29871 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29872 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29873 if test $ac_cv_lib_acl_acl_get_file = yes; then
29874 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29876 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29877 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29878 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29879 echo $ECHO_N "(cached) $ECHO_C" >&6
29881 ac_check_lib_save_LIBS=$LIBS
29883 cat >conftest.$ac_ext <<_ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h. */
29890 /* Override any GCC internal prototype to avoid an error.
29891 Use char because int might match the return type of a GCC
29892 builtin and then its argument prototype would still apply. */
29900 return acltotext ();
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (ac_try="$ac_link"
29907 case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_link") 2>conftest.er1
29914 grep -v '^ *+' conftest.er1 >conftest.err
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } && {
29919 test -z "$ac_c_werror_flag" ||
29920 test ! -s conftest.err
29921 } && test -s conftest$ac_exeext &&
29922 $as_test_x conftest$ac_exeext; then
29923 ac_cv_lib_sec_acltotext=yes
29925 echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29928 ac_cv_lib_sec_acltotext=no
29931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29932 conftest$ac_exeext conftest.$ac_ext
29933 LIBS=$ac_check_lib_save_LIBS
29935 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29936 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29937 if test $ac_cv_lib_sec_acltotext = yes; then
29938 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29947 if test $have_acl = yes; then
29948 cat >>confdefs.h <<\_ACEOF
29955 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29956 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29957 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lpthread $LIBS"
29962 cat >conftest.$ac_ext <<_ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29969 /* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29975 char pthread_create ();
29979 return pthread_create ();
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (ac_try="$ac_link"
29986 case "(($ac_try" in
29987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29988 *) ac_try_echo=$ac_try;;
29990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29991 (eval "$ac_link") 2>conftest.er1
29993 grep -v '^ *+' conftest.er1 >conftest.err
29995 cat conftest.err >&5
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); } && {
29998 test -z "$ac_c_werror_flag" ||
29999 test ! -s conftest.err
30000 } && test -s conftest$ac_exeext &&
30001 $as_test_x conftest$ac_exeext; then
30002 ac_cv_lib_pthread_pthread_create=yes
30004 echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30007 ac_cv_lib_pthread_pthread_create=no
30010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30011 conftest$ac_exeext conftest.$ac_ext
30012 LIBS=$ac_check_lib_save_LIBS
30014 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
30015 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
30016 if test $ac_cv_lib_pthread_pthread_create = yes; then
30017 PTHREAD_LIB="-lpthread"
30019 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
30020 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
30021 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 ac_check_lib_save_LIBS=$LIBS
30025 LIBS="-lpthreads $LIBS"
30026 cat >conftest.$ac_ext <<_ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h. */
30033 /* Override any GCC internal prototype to avoid an error.
30034 Use char because int might match the return type of a GCC
30035 builtin and then its argument prototype would still apply. */
30039 char pthread_create ();
30043 return pthread_create ();
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (ac_try="$ac_link"
30050 case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055 (eval "$ac_link") 2>conftest.er1
30057 grep -v '^ *+' conftest.er1 >conftest.err
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } && {
30062 test -z "$ac_c_werror_flag" ||
30063 test ! -s conftest.err
30064 } && test -s conftest$ac_exeext &&
30065 $as_test_x conftest$ac_exeext; then
30066 ac_cv_lib_pthreads_pthread_create=yes
30068 echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30071 ac_cv_lib_pthreads_pthread_create=no
30074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30075 conftest$ac_exeext conftest.$ac_ext
30076 LIBS=$ac_check_lib_save_LIBS
30078 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30079 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
30080 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30081 PTHREAD_LIB="-lpthreads"
30083 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30084 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
30085 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30088 ac_check_lib_save_LIBS=$LIBS
30090 cat >conftest.$ac_ext <<_ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30097 /* Override any GCC internal prototype to avoid an error.
30098 Use char because int might match the return type of a GCC
30099 builtin and then its argument prototype would still apply. */
30103 char pthread_create ();
30107 return pthread_create ();
30112 rm -f conftest.$ac_objext conftest$ac_exeext
30113 if { (ac_try="$ac_link"
30114 case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_link") 2>conftest.er1
30121 grep -v '^ *+' conftest.er1 >conftest.err
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && {
30126 test -z "$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 } && test -s conftest$ac_exeext &&
30129 $as_test_x conftest$ac_exeext; then
30130 ac_cv_lib_c_r_pthread_create=yes
30132 echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30135 ac_cv_lib_c_r_pthread_create=no
30138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30139 conftest$ac_exeext conftest.$ac_ext
30140 LIBS=$ac_check_lib_save_LIBS
30142 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30143 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30144 if test $ac_cv_lib_c_r_pthread_create = yes; then
30145 PTHREAD_LIB="-lc_r"
30147 { echo "$as_me:$LINENO: checking for pthread_create" >&5
30148 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30149 if test "${ac_cv_func_pthread_create+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30160 #define pthread_create innocuous_pthread_create
30162 /* System header to define __stub macros and hopefully few prototypes,
30163 which can conflict with char pthread_create (); below.
30164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165 <limits.h> exists even on freestanding compilers. */
30168 # include <limits.h>
30170 # include <assert.h>
30173 #undef pthread_create
30175 /* Override any GCC internal prototype to avoid an error.
30176 Use char because int might match the return type of a GCC
30177 builtin and then its argument prototype would still apply. */
30181 char pthread_create ();
30182 /* The GNU C library defines this for functions which it implements
30183 to always fail with ENOSYS. Some functions are actually named
30184 something starting with __ and the normal name is an alias. */
30185 #if defined __stub_pthread_create || defined __stub___pthread_create
30192 return pthread_create ();
30197 rm -f conftest.$ac_objext conftest$ac_exeext
30198 if { (ac_try="$ac_link"
30199 case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_link") 2>conftest.er1
30206 grep -v '^ *+' conftest.er1 >conftest.err
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } && {
30211 test -z "$ac_c_werror_flag" ||
30212 test ! -s conftest.err
30213 } && test -s conftest$ac_exeext &&
30214 $as_test_x conftest$ac_exeext; then
30215 ac_cv_func_pthread_create=yes
30217 echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30220 ac_cv_func_pthread_create=no
30223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30224 conftest$ac_exeext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30227 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30240 cat >>confdefs.h <<\_ACEOF
30246 CFLAGS=${CFLAGS--O}
30248 if test x$have_gcc = xyes ; then
30249 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30250 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30252 LDFLAGS=${LDFLAGS--O}
30253 DB_LIBS="${SQL_LFLAGS}"
30254 CPPFLAGS="$CPPFLAGS"
30282 # Finally we set appropriate distribution specific
30283 # variables and defaults
30285 # PFILES are platform specific files
30286 PFILES="platforms/Makefile"
30290 hostname=`uname -n | cut -d '.' -f 1`
30291 if test x${hostname} = x ; then
30292 hostname="localhost"
30294 case "$DISTNAME" in
30297 PSCMD="ps -e -o pid,comm"
30298 PFILES="${PFILES} \
30299 platforms/aix/Makefile"
30300 TAPEDRIVE="/dev/rmt0.1"
30304 PTHREAD_LIB="-lpthread -lexc"
30305 if test "${CC}" = "gcc" ; then
30312 TAPEDRIVE="/dev/nrmt0"
30315 DISTVER=`uname -a |awk '{print $3}'`
30316 TAPEDRIVE="/dev/nrmt0"
30317 PTHREAD_LIB="-pthread"
30318 CFLAGS="${CFLAGS} -pthread"
30319 PSCMD="ps -ax -o pid,command"
30322 PFILES="${PFILES} \
30323 platforms/bsdi/Makefile \
30324 platforms/bsdi/bacula-fd \
30325 platforms/bsdi/bacula-sd \
30326 platforms/bsdi/bacula-dir"
30327 largefile_support="yes"
30330 DISTVER=`uname -a |awk '{print $3}'`
30331 TAPEDRIVE="/dev/nrst0"
30333 WCFLAGS="-mwindows"
30334 WLDFLAGS="-mwindows"
30338 TAPEDRIVE="/dev/nst0"
30339 PSCMD="ps -e -o pid,command"
30341 PFILES="${PFILES} \
30342 platforms/darwin/Makefile"
30345 # Make sure hostname is resolved
30346 ping -c 1 $hostname 2>&1 1>/dev/null
30347 if test ! $? = 0; then
30348 hostname="localhost"
30350 if `grep -q ubuntu /etc/apt/sources.list`; then
30353 DISTVER=`cat /etc/debian_version`
30354 if test -f /etc/lsb-release ; then
30356 if test "x$DISTRIB_ID" != "x" ; then
30357 DISTNAME=$DISTRIB_ID
30359 if test "x$DISTRIB_RELEASE" != "x" ; then
30360 DISTVER=$DISTRIB_RELEASE
30363 if test "$DISTNAME" = "Ubuntu" ; then
30366 TAPEDRIVE="/dev/nst0"
30367 PSCMD="ps -e -o pid,command"
30368 if test "$DISTNAME" = "ubuntu" ; then
30369 PFILES="${PFILES} \
30370 platforms/ubuntu/Makefile \
30371 platforms/ubuntu/bacula-fd \
30372 platforms/ubuntu/bacula-sd \
30373 platforms/ubuntu/bacula-dir"
30375 PFILES="${PFILES} \
30376 platforms/debian/Makefile \
30377 platforms/debian/bacula-fd \
30378 platforms/debian/bacula-sd \
30379 platforms/debian/bacula-dir"
30383 # Make sure hostname is resolved
30384 ping -c 1 $hostname 2>&1 1>/dev/null
30385 if test ! $? = 0; then
30386 hostname="localhost"
30388 if `grep -q ubuntu /etc/apt/sources.list`; then
30391 DISTVER=`uname -a |awk '{print $3}'`
30392 VER=`echo $DISTVER | cut -c 1`
30393 if test x$VER = x4 ; then
30394 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30395 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30399 TAPEDRIVE="/dev/nrsa0"
30400 PSCMD="ps -ax -o pid,command"
30401 PFILES="${PFILES} \
30402 platforms/freebsd/Makefile \
30403 platforms/freebsd/bacula-fd \
30404 platforms/freebsd/bacula-sd \
30405 platforms/freebsd/bacula-dir"
30406 largefile_support="yes"
30409 PSCMD="UNIX95=1; ps -e -o pid,comm"
30410 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30412 TAPEDRIVE="/dev/rmt/0hnb"
30413 PTHREAD_LIB="-lpthread"
30414 cat >>confdefs.h <<\_ACEOF
30415 #define _INCLUDE_LONGLONG 1
30421 TAPEDRIVE="/dev/rmt/0cbn"
30422 PSCMD="ps -e -o pid,comm"
30423 PFILES="${PFILES} \
30424 platforms/irix/Makefile \
30425 platforms/irix/bacula-fd \
30426 platforms/irix/bacula-sd \
30427 platforms/irix/bacula-dir"
30430 DISTVER=`uname -a |awk '{print $3}'`
30433 TAPEDRIVE="/dev/nrst0"
30434 PSCMD="ps -ax -o pid,command"
30435 PTHREAD_LIB="-pthread"
30436 CFLAGS="${CFLAGS} -pthread"
30439 DISTVER=`uname -a |awk '{print $3}'`
30442 TAPEDRIVE="/dev/nrst0"
30443 PSCMD="ps -ax -o pid,command"
30444 PTHREAD_LIB="-pthread"
30445 CFLAGS="${CFLAGS} -pthread"
30446 PFILES="${PFILES} \
30447 platforms/openbsd/Makefile \
30448 platforms/openbsd/bacula-fd \
30449 platforms/openbsd/bacula-sd \
30450 platforms/openbsd/bacula-dir"
30453 # Make sure hostname is resolved
30454 ping -c 1 $hostname 2>&1 1>/dev/null
30455 if test ! $? = 0; then
30456 hostname="localhost"
30458 if `grep -q ubuntu /etc/apt/sources.list`; then
30461 if test -f /etc/whitebox-release ; then
30462 f=/etc/whitebox-release
30464 f=/etc/redhat-release
30466 if test `cat $f | grep release |\
30467 cut -f 3 -d ' '`x = "Enterprise"x ; then
30468 DISTVER="Enterprise "`cat $f | grep release |\
30471 DISTVER=`cat /etc/redhat-release | grep release |\
30474 TAPEDRIVE="/dev/nst0"
30475 PSCMD="ps -e -o pid,command"
30476 PFILES="${PFILES} \
30477 platforms/redhat/Makefile \
30478 platforms/redhat/bacula-fd \
30479 platforms/redhat/bacula-sd \
30480 platforms/redhat/bacula-dir \
30481 platforms/redhat/bacula.spec \
30485 # Make sure hostname is resolved
30486 ping -c 1 $hostname 2>&1 1>/dev/null
30487 if test ! $? = 0; then
30488 hostname="localhost"
30490 if `grep -q ubuntu /etc/apt/sources.list`; then
30493 DISTVER=`cat /etc/mandrake-release | grep release |\
30495 TAPEDRIVE="/dev/nst0"
30496 PSCMD="ps -e -o pid,command"
30497 PFILES="${PFILES} \
30498 platforms/mandrake/Makefile \
30499 platforms/mandrake/bacula-fd \
30500 platforms/mandrake/bacula-sd \
30501 platforms/mandrake/bacula-dir \
30502 platforms/mandrake/bacula.spec \
30506 # Make sure hostname is resolved
30507 ping -c 1 $hostname 2>&1 1>/dev/null
30508 if test ! $? = 0; then
30509 hostname="localhost"
30511 if `grep -q ubuntu /etc/apt/sources.list`; then
30514 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30515 TAPEDRIVE="/dev/nst0"
30516 PSCMD="ps -e -o pid,command"
30517 PFILES="${PFILES} \
30518 platforms/gentoo/Makefile \
30519 platforms/gentoo/bacula-init \
30520 platforms/gentoo/bacula-fd \
30521 platforms/gentoo/bacula-sd \
30522 platforms/gentoo/bacula-dir"
30525 # Make sure hostname is resolved
30526 ping -c 1 $hostname 2>&1 1>/dev/null
30527 if test ! $? = 0; then
30528 hostname="localhost"
30530 if `grep -q ubuntu /etc/apt/sources.list`; then
30533 DISTVER=`cat /etc/slackware-version`
30534 TAPEDRIVE="/dev/nst0"
30535 PSCMD="ps -e -o pid,command"
30536 PFILES="${PFILES} \
30537 platforms/slackware/Makefile \
30538 platforms/slackware/rc.bacula-fd \
30539 platforms/slackware/rc.bacula-sd \
30540 platforms/slackware/rc.bacula-dir\
30541 platforms/slackware/functions.bacula"
30545 TAPEDRIVE="/dev/rmt/0cbn"
30546 PSCMD="ps -e -o pid,comm"
30547 PFILES="${PFILES} \
30548 platforms/solaris/Makefile \
30549 platforms/solaris/bacula-fd \
30550 platforms/solaris/bacula-sd \
30551 platforms/solaris/bacula-dir"
30552 if test x$DISTVER = x5.6 ; then
30553 cat >>confdefs.h <<\_ACEOF
30554 #define HAVE_OLD_SOCKOPT 1
30558 LIBS="$LIBS -lresolv"
30561 # Make sure hostname is resolved
30562 ping -c 1 $hostname 2>&1 1>/dev/null
30563 if test ! $? = 0; then
30564 hostname="localhost"
30566 if `grep -q ubuntu /etc/apt/sources.list`; then
30569 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30571 TAPEDRIVE="/dev/nst0"
30572 PSCMD="ps -e -o pid,command"
30573 PFILES="${PFILES} \
30574 platforms/suse/Makefile \
30575 platforms/suse/bacula-fd \
30576 platforms/suse/bacula-sd \
30577 platforms/suse/bacula-dir \
30578 platforms/suse/bacula \
30579 platforms/suse/bacula.spec"
30582 # Make sure hostname is resolved
30583 ping -c 1 $hostname 2>&1 1>/dev/null
30584 if test ! $? = 0; then
30585 hostname="localhost"
30587 if `grep -q ubuntu /etc/apt/sources.list`; then
30592 TAPEDRIVE="/dev/nst0"
30593 PSCMD="ps -e -o pid,command"
30594 PFILES="${PFILES} \
30595 platforms/suse/Makefile \
30596 platforms/suse/bacula-fd \
30597 platforms/suse/bacula-sd \
30598 platforms/suse/bacula-dir"
30602 TAPEDRIVE="/dev/nst0"
30605 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30611 LIBS="$PTHREAD_LIB $LIBS"
30613 cat >>confdefs.h <<_ACEOF
30617 cat >>confdefs.h <<_ACEOF
30628 MCOMMON=./autoconf/Make.common
30631 if test "x${subsysdir}" = "x${sbindir}" ; then
30634 echo "You have set both --sbindir and --with-subsys-dir"
30635 echo " equal to: ${subsysdir} "
30636 echo "This is not permitted. Please reconfigure."
30638 echo "Aborting configuration ..."
30644 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile 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"
30646 ac_config_commands="$ac_config_commands default"
30648 cat >confcache <<\_ACEOF
30649 # This file is a shell script that caches the results of configure
30650 # tests run on this system so they can be shared between configure
30651 # scripts and configure runs, see configure's option --config-cache.
30652 # It is not useful on other systems. If it contains results you don't
30653 # want to keep, you may remove or edit it.
30655 # config.status only pays attention to the cache file if you give it
30656 # the --recheck option to rerun configure.
30658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30660 # following values.
30664 # The following way of writing the cache mishandles newlines in values,
30665 # but we know of no workaround that is simple, portable, and efficient.
30666 # So, we kill variables containing newlines.
30667 # Ultrix sh set writes to stderr and can't be redirected directly,
30668 # and sets the high bit in the cache file unless we assign to the vars.
30670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30671 eval ac_val=\$$ac_var
30675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30679 _ | IFS | as_nl) ;; #(
30680 *) $as_unset $ac_var ;;
30686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30687 *${as_nl}ac_space=\ *)
30688 # `set' does not quote correctly, so add quotes (double-quote
30689 # substitution turns \\\\ into \\, and sed turns \\ into \).
30692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30695 # `set' quotes correctly as required by POSIX, so do not add quotes.
30696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30710 if test -w "$cache_file"; then
30711 test "x$cache_file" != "x/dev/null" &&
30712 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30713 echo "$as_me: updating cache $cache_file" >&6;}
30714 cat confcache >$cache_file
30716 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30717 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30723 # Let make expand exec_prefix.
30724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30726 DEFS=-DHAVE_CONFIG_H
30730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30731 # 1. Remove the extension, and $U if already installed.
30732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30733 ac_i=`echo "$ac_i" | sed "$ac_script"`
30734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30735 # will be set to the directory where LIBOBJS objects are built.
30736 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30737 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30739 LIBOBJS=$ac_libobjs
30741 LTLIBOBJS=$ac_ltlibobjs
30745 : ${CONFIG_STATUS=./config.status}
30746 ac_clean_files_save=$ac_clean_files
30747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30748 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30749 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30750 cat >$CONFIG_STATUS <<_ACEOF
30752 # Generated by $as_me.
30753 # Run this file to recreate the current configuration.
30754 # Compiler output produced by configure, useful for debugging
30755 # configure, is in config.log if it exists.
30758 ac_cs_recheck=false
30760 SHELL=\${CONFIG_SHELL-$SHELL}
30763 cat >>$CONFIG_STATUS <<\_ACEOF
30764 ## --------------------- ##
30765 ## M4sh Initialization. ##
30766 ## --------------------- ##
30768 # Be more Bourne compatible
30769 DUALCASE=1; export DUALCASE # for MKS sh
30770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30773 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30774 # is contrary to our usage. Disable this feature.
30775 alias -g '${1+"$@"}'='"$@"'
30776 setopt NO_GLOB_SUBST
30778 case `(set -o) 2>/dev/null` in
30779 *posix*) set -o posix ;;
30788 # Avoid depending upon Character Ranges.
30789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792 as_cr_digits='0123456789'
30793 as_cr_alnum=$as_cr_Letters$as_cr_digits
30795 # The user is always right.
30796 if test "${PATH_SEPARATOR+set}" != set; then
30797 echo "#! /bin/sh" >conf$$.sh
30798 echo "exit 0" >>conf$$.sh
30800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30808 # Support unset when possible.
30809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30817 # We need space, tab and new line, in precisely that order. Quoting is
30818 # there to prevent editors from complaining about space-tab.
30819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30820 # splitting by setting IFS to empty value.)
30825 # Find who we are. Look in the path if we contain no directory separator.
30827 *[\\/]* ) as_myself=$0 ;;
30828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829 for as_dir in $PATH
30832 test -z "$as_dir" && as_dir=.
30833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30839 # We did not find ourselves, most probably we were run as `sh COMMAND'
30840 # in which case we are not to be found in the path.
30841 if test "x$as_myself" = x; then
30844 if test ! -f "$as_myself"; then
30845 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30846 { (exit 1); exit 1; }
30849 # Work around bugs in pre-3.0 UWIN ksh.
30850 for as_var in ENV MAIL MAILPATH
30851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30859 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30860 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30861 LC_TELEPHONE LC_TIME
30863 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30864 eval $as_var=C; export $as_var
30866 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30870 # Required to use basename.
30871 if expr a : '\(a\)' >/dev/null 2>&1 &&
30872 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30879 as_basename=basename
30885 # Name of the executable.
30886 as_me=`$as_basename -- "$0" ||
30887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30888 X"$0" : 'X\(//\)$' \| \
30889 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30891 sed '/^.*\/\([^/][^/]*\)\/*$/{
30910 as_lineno_1=$LINENO
30911 as_lineno_2=$LINENO
30912 test "x$as_lineno_1" != "x$as_lineno_2" &&
30913 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30916 # uniformly replaced by the line number. The first 'sed' inserts a
30917 # line-number line after each line using $LINENO; the second 'sed'
30918 # does the real work. The second script uses 'N' to pair each
30919 # line-number line with the line containing $LINENO, and appends
30920 # trailing '-' during substitution so that $LINENO is not a special
30921 # case at line end.
30922 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30923 # scripts with optimization help from Paolo Bonzini. Blame Lee
30924 # E. McMahon (1931-1989) for sed's syntax. :-)
30936 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30939 ' >$as_me.lineno &&
30940 chmod +x "$as_me.lineno" ||
30941 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30942 { (exit 1); exit 1; }; }
30944 # Don't try to exec as it changes $[0], causing all sort of problems
30945 # (the dirname of $[0] is not the place where we might find the
30946 # original and so on. Autoconf is especially sensitive to this).
30947 . "./$as_me.lineno"
30948 # Exit status is that of the last command.
30953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30959 ECHO_C= ECHO_N= ECHO_T=
30960 case `echo -n x` in
30962 case `echo 'x\c'` in
30963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30970 if expr a : '\(a\)' >/dev/null 2>&1 &&
30971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30977 rm -f conf$$ conf$$.exe conf$$.file
30978 if test -d conf$$.dir; then
30979 rm -f conf$$.dir/conf$$.file
30985 if ln -s conf$$.file conf$$ 2>/dev/null; then
30987 # ... but there are two gotchas:
30988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30990 # In both cases, we have to default to `cp -p'.
30991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30993 elif ln conf$$.file conf$$ 2>/dev/null; then
30998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30999 rmdir conf$$.dir 2>/dev/null
31001 if mkdir -p . 2>/dev/null; then
31004 test -d ./-p && rmdir ./-p
31008 if test -x / >/dev/null 2>&1; then
31009 as_test_x='test -x'
31011 if ls -dL / >/dev/null 2>&1; then
31018 if test -d "$1"; then
31024 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31025 ???[sx]*):;;*)false;;esac;fi
31029 as_executable_p=$as_test_x
31031 # Sed expression to map a string onto a valid CPP name.
31032 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31034 # Sed expression to map a string onto a valid variable name.
31035 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31040 # Save the log message, to keep $[0] and so on meaningful, and to
31041 # report actual input values of CONFIG_FILES etc. instead of their
31042 # values after options handling.
31044 This file was extended by $as_me, which was
31045 generated by GNU Autoconf 2.61. Invocation command line was
31047 CONFIG_FILES = $CONFIG_FILES
31048 CONFIG_HEADERS = $CONFIG_HEADERS
31049 CONFIG_LINKS = $CONFIG_LINKS
31050 CONFIG_COMMANDS = $CONFIG_COMMANDS
31053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31058 cat >>$CONFIG_STATUS <<_ACEOF
31059 # Files that config.status was made for.
31060 config_files="$ac_config_files"
31061 config_headers="$ac_config_headers"
31062 config_commands="$ac_config_commands"
31066 cat >>$CONFIG_STATUS <<\_ACEOF
31068 \`$as_me' instantiates files from templates according to the
31069 current configuration.
31071 Usage: $0 [OPTIONS] [FILE]...
31073 -h, --help print this help, then exit
31074 -V, --version print version number and configuration settings, then exit
31075 -q, --quiet do not print progress messages
31076 -d, --debug don't remove temporary files
31077 --recheck update $as_me by reconfiguring in the same conditions
31078 --file=FILE[:TEMPLATE]
31079 instantiate the configuration file FILE
31080 --header=FILE[:TEMPLATE]
31081 instantiate the configuration header FILE
31083 Configuration files:
31086 Configuration headers:
31089 Configuration commands:
31092 Report bugs to <bug-autoconf@gnu.org>."
31095 cat >>$CONFIG_STATUS <<_ACEOF
31098 configured by $0, generated by GNU Autoconf 2.61,
31099 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31101 Copyright (C) 2006 Free Software Foundation, Inc.
31102 This config.status script is free software; the Free Software Foundation
31103 gives unlimited permission to copy, distribute and modify it."
31110 cat >>$CONFIG_STATUS <<\_ACEOF
31111 # If no file are specified by the user, then we need to provide default
31112 # value. By we need to know if files were specified by the user.
31118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31130 # Handling of the options.
31131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31134 echo "$ac_cs_version"; exit ;;
31135 --debug | --debu | --deb | --de | --d | -d )
31137 --file | --fil | --fi | --f )
31139 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31140 ac_need_defaults=false;;
31141 --header | --heade | --head | --hea )
31143 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31144 ac_need_defaults=false;;
31146 # Conflict between --help and --header
31147 { echo "$as_me: error: ambiguous option: $1
31148 Try \`$0 --help' for more information." >&2
31149 { (exit 1); exit 1; }; };;
31150 --help | --hel | -h )
31151 echo "$ac_cs_usage"; exit ;;
31152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31156 # This is an error.
31157 -*) { echo "$as_me: error: unrecognized option: $1
31158 Try \`$0 --help' for more information." >&2
31159 { (exit 1); exit 1; }; } ;;
31161 *) ac_config_targets="$ac_config_targets $1"
31162 ac_need_defaults=false ;;
31168 ac_configure_extra_args=
31170 if $ac_cs_silent; then
31172 ac_configure_extra_args="$ac_configure_extra_args --silent"
31176 cat >>$CONFIG_STATUS <<_ACEOF
31177 if \$ac_cs_recheck; then
31178 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31179 CONFIG_SHELL=$SHELL
31180 export CONFIG_SHELL
31181 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31185 cat >>$CONFIG_STATUS <<\_ACEOF
31189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31190 ## Running $as_me. ##
31196 cat >>$CONFIG_STATUS <<_ACEOF
31200 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31201 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31203 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31204 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31205 LINGUAS="${LINGUAS-%UNSET%}"
31210 cat >>$CONFIG_STATUS <<\_ACEOF
31212 # Handling of arguments.
31213 for ac_config_target in $ac_config_targets
31215 case $ac_config_target in
31216 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31218 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31220 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31221 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31222 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31223 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31224 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31225 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31226 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31227 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31228 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31229 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31230 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31231 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31232 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31233 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31234 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31235 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31236 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31237 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31238 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31239 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31240 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31241 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31242 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31243 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31244 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31245 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31246 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31247 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31248 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31249 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31250 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31251 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31252 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31253 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31254 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31255 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31256 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31257 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31258 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31259 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31260 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31261 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31262 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31263 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31264 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31265 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31266 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31267 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31268 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31269 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31270 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31271 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31272 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31273 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31274 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31275 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31276 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31277 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31278 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31279 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31280 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31281 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31282 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31283 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31284 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31285 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31286 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31287 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31288 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31289 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31290 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31291 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31292 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31293 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31294 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31295 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31296 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31297 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31298 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31299 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31300 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31301 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31302 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31303 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31304 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31305 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31306 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31307 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31308 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31309 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31310 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31311 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31312 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31313 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31314 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31315 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31316 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31317 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31318 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31319 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31320 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31321 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31322 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31323 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31324 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31325 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31326 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31328 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31329 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31330 { (exit 1); exit 1; }; };;
31335 # If the user did not use the arguments to specify the items to instantiate,
31336 # then the envvar interface is used. Set only those that are not.
31337 # We use the long form for the default assignment because of an extremely
31338 # bizarre bug on SunOS 4.1.3.
31339 if $ac_need_defaults; then
31340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31345 # Have a temporary directory for convenience. Make it in the build tree
31346 # simply because there is no reason against having it here, and in addition,
31347 # creating and moving files from /tmp can sometimes cause problems.
31348 # Hook for its removal unless debugging.
31349 # Note that there is a small window in which the directory will not be cleaned:
31350 # after its creation but before its name has been assigned to `$tmp'.
31354 trap 'exit_status=$?
31355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31357 trap '{ (exit 1); exit 1; }' 1 2 13 15
31359 # Create a (secure) tmp directory for tmp files.
31362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31363 test -n "$tmp" && test -d "$tmp"
31366 tmp=./conf$$-$RANDOM
31367 (umask 077 && mkdir "$tmp")
31370 echo "$me: cannot create a temporary directory in ." >&2
31371 { (exit 1); exit 1; }
31375 # Set up the sed scripts for CONFIG_FILES section.
31378 # No need to generate the scripts if there are no CONFIG_FILES.
31379 # This happens for instance when ./config.status config.h
31380 if test -n "$CONFIG_FILES"; then
31384 # Create sed commands to just substitute file output variables.
31386 # Remaining file output variables are in a fragment that also has non-file
31392 for ac_last_try in false false false false false :; do
31393 cat >conf$$subs.sed <<_ACEOF
31394 SHELL!$SHELL$ac_delim
31395 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31396 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31397 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31398 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31399 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31400 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31401 exec_prefix!$exec_prefix$ac_delim
31402 prefix!$prefix$ac_delim
31403 program_transform_name!$program_transform_name$ac_delim
31404 bindir!$bindir$ac_delim
31405 sbindir!$sbindir$ac_delim
31406 libexecdir!$libexecdir$ac_delim
31407 datarootdir!$datarootdir$ac_delim
31408 datadir!$datadir$ac_delim
31409 sysconfdir!$sysconfdir$ac_delim
31410 sharedstatedir!$sharedstatedir$ac_delim
31411 localstatedir!$localstatedir$ac_delim
31412 includedir!$includedir$ac_delim
31413 oldincludedir!$oldincludedir$ac_delim
31414 docdir!$docdir$ac_delim
31415 infodir!$infodir$ac_delim
31416 htmldir!$htmldir$ac_delim
31417 dvidir!$dvidir$ac_delim
31418 pdfdir!$pdfdir$ac_delim
31419 psdir!$psdir$ac_delim
31420 libdir!$libdir$ac_delim
31421 localedir!$localedir$ac_delim
31422 mandir!$mandir$ac_delim
31423 DEFS!$DEFS$ac_delim
31424 ECHO_C!$ECHO_C$ac_delim
31425 ECHO_N!$ECHO_N$ac_delim
31426 ECHO_T!$ECHO_T$ac_delim
31427 LIBS!$LIBS$ac_delim
31428 build_alias!$build_alias$ac_delim
31429 host_alias!$host_alias$ac_delim
31430 target_alias!$target_alias$ac_delim
31431 BUILD_DIR!$BUILD_DIR$ac_delim
31432 TOP_DIR!$TOP_DIR$ac_delim
31433 TRUEPRG!$TRUEPRG$ac_delim
31434 FALSEPRG!$FALSEPRG$ac_delim
31435 VERSION!$VERSION$ac_delim
31436 DATE!$DATE$ac_delim
31437 LSMDATE!$LSMDATE$ac_delim
31439 CFLAGS!$CFLAGS$ac_delim
31440 LDFLAGS!$LDFLAGS$ac_delim
31441 CPPFLAGS!$CPPFLAGS$ac_delim
31442 ac_ct_CC!$ac_ct_CC$ac_delim
31443 EXEEXT!$EXEEXT$ac_delim
31444 OBJEXT!$OBJEXT$ac_delim
31446 CXXFLAGS!$CXXFLAGS$ac_delim
31447 ac_ct_CXX!$ac_ct_CXX$ac_delim
31449 GREP!$GREP$ac_delim
31450 EGREP!$EGREP$ac_delim
31451 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31452 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31453 INSTALL_DATA!$INSTALL_DATA$ac_delim
31454 RANLIB!$RANLIB$ac_delim
31459 ECHO!$ECHO$ac_delim
31463 OPENSSL!$OPENSSL$ac_delim
31466 MKISOFS!$MKISOFS$ac_delim
31467 PYTHON!$PYTHON$ac_delim
31468 GROWISOFS!$GROWISOFS$ac_delim
31469 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31470 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31471 PKGCONFIG!$PKGCONFIG$ac_delim
31472 QMAKE!$QMAKE$ac_delim
31473 QMAKEQT4!$QMAKEQT4$ac_delim
31474 WXCONFIG!$WXCONFIG$ac_delim
31475 WXFLAGS!$WXFLAGS$ac_delim
31476 CDRECORD!$CDRECORD$ac_delim
31477 PIDOF!$PIDOF$ac_delim
31479 ARFLAGS!$ARFLAGS$ac_delim
31480 MAKE_SHELL!$MAKE_SHELL$ac_delim
31481 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31482 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31483 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31484 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31485 build!$build$ac_delim
31486 build_cpu!$build_cpu$ac_delim
31487 build_vendor!$build_vendor$ac_delim
31490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31492 elif $ac_last_try; then
31493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31494 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31495 { (exit 1); exit 1; }; }
31497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31501 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31502 if test -n "$ac_eof"; then
31503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31504 ac_eof=`expr $ac_eof + 1`
31507 cat >>$CONFIG_STATUS <<_ACEOF
31508 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31510 /^[ ]*@MCOMMON@[ ]*$/{
31516 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31517 s/^/s,@/; s/!/@,|#_!!_#|/
31520 s/'"$ac_delim"'$/,g/; t
31522 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31523 ' >>$CONFIG_STATUS <conf$$subs.sed
31524 rm -f conf$$subs.sed
31525 cat >>$CONFIG_STATUS <<_ACEOF
31531 for ac_last_try in false false false false false :; do
31532 cat >conf$$subs.sed <<_ACEOF
31533 build_os!$build_os$ac_delim
31534 host!$host$ac_delim
31535 host_cpu!$host_cpu$ac_delim
31536 host_vendor!$host_vendor$ac_delim
31537 host_os!$host_os$ac_delim
31538 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31539 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31540 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31541 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31542 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31543 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31544 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31545 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31546 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31547 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31548 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31549 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31550 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31551 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31552 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31553 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31554 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31555 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31556 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31557 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31558 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31559 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31560 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31561 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31562 SET_MAKE!$SET_MAKE$ac_delim
31563 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31564 USE_NLS!$USE_NLS$ac_delim
31565 MSGFMT!$MSGFMT$ac_delim
31566 GMSGFMT!$GMSGFMT$ac_delim
31567 XGETTEXT!$XGETTEXT$ac_delim
31568 MSGMERGE!$MSGMERGE$ac_delim
31569 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31570 LIBICONV!$LIBICONV$ac_delim
31571 LTLIBICONV!$LTLIBICONV$ac_delim
31572 INTLLIBS!$INTLLIBS$ac_delim
31573 LIBINTL!$LIBINTL$ac_delim
31574 LTLIBINTL!$LTLIBINTL$ac_delim
31575 POSUB!$POSUB$ac_delim
31576 GLIBC2!$GLIBC2$ac_delim
31577 ALLOCA!$ALLOCA$ac_delim
31578 GLIBC21!$GLIBC21$ac_delim
31579 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31580 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31581 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31582 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31583 INTLBISON!$INTLBISON$ac_delim
31584 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31585 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31586 CATOBJEXT!$CATOBJEXT$ac_delim
31587 DATADIRNAME!$DATADIRNAME$ac_delim
31588 INSTOBJEXT!$INSTOBJEXT$ac_delim
31589 GENCAT!$GENCAT$ac_delim
31590 INTLOBJS!$INTLOBJS$ac_delim
31591 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31592 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31593 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31594 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31595 GNOME_LIBS!$GNOME_LIBS$ac_delim
31596 GNOME_DIR!$GNOME_DIR$ac_delim
31597 BAT_DIR!$BAT_DIR$ac_delim
31598 QWT_INC!$QWT_INC$ac_delim
31599 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31600 QWT_LIB!$QWT_LIB$ac_delim
31602 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31603 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31604 WX_DIR!$WX_DIR$ac_delim
31605 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31606 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31607 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31608 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31609 STATIC_FD!$STATIC_FD$ac_delim
31610 STATIC_SD!$STATIC_SD$ac_delim
31611 STATIC_DIR!$STATIC_DIR$ac_delim
31612 STATIC_CONS!$STATIC_CONS$ac_delim
31613 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31614 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31615 ALL_DIRS!$ALL_DIRS$ac_delim
31616 DIRD_DIR!$DIRD_DIR$ac_delim
31617 DIR_TOOLS!$DIR_TOOLS$ac_delim
31618 STORED_DIR!$STORED_DIR$ac_delim
31619 CONS_INC!$CONS_INC$ac_delim
31620 CONS_OBJ!$CONS_OBJ$ac_delim
31621 CONS_SRC!$CONS_SRC$ac_delim
31622 CONS_LIBS!$CONS_LIBS$ac_delim
31623 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31624 READLINE_SRC!$READLINE_SRC$ac_delim
31625 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31626 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31627 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31628 OPENSSL_INC!$OPENSSL_INC$ac_delim
31629 working_dir!$working_dir$ac_delim
31632 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31634 elif $ac_last_try; then
31635 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31636 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31637 { (exit 1); exit 1; }; }
31639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31643 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31644 if test -n "$ac_eof"; then
31645 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31646 ac_eof=`expr $ac_eof + 1`
31649 cat >>$CONFIG_STATUS <<_ACEOF
31650 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31654 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31655 s/^/s,@/; s/!/@,|#_!!_#|/
31658 s/'"$ac_delim"'$/,g/; t
31660 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31661 ' >>$CONFIG_STATUS <conf$$subs.sed
31662 rm -f conf$$subs.sed
31663 cat >>$CONFIG_STATUS <<_ACEOF
31669 for ac_last_try in false false false false false :; do
31670 cat >conf$$subs.sed <<_ACEOF
31671 archivedir!$archivedir$ac_delim
31672 scriptdir!$scriptdir$ac_delim
31673 plugindir!$plugindir$ac_delim
31674 dump_email!$dump_email$ac_delim
31675 job_email!$job_email$ac_delim
31676 smtp_host!$smtp_host$ac_delim
31677 piddir!$piddir$ac_delim
31678 subsysdir!$subsysdir$ac_delim
31679 baseport!$baseport$ac_delim
31680 dir_port!$dir_port$ac_delim
31681 fd_port!$fd_port$ac_delim
31682 sd_port!$sd_port$ac_delim
31683 dir_password!$dir_password$ac_delim
31684 fd_password!$fd_password$ac_delim
31685 sd_password!$sd_password$ac_delim
31686 mon_dir_password!$mon_dir_password$ac_delim
31687 mon_fd_password!$mon_fd_password$ac_delim
31688 mon_sd_password!$mon_sd_password$ac_delim
31689 db_name!$db_name$ac_delim
31690 db_user!$db_user$ac_delim
31691 db_password!$db_password$ac_delim
31692 db_port!$db_port$ac_delim
31693 dir_user!$dir_user$ac_delim
31694 dir_group!$dir_group$ac_delim
31695 sd_user!$sd_user$ac_delim
31696 sd_group!$sd_group$ac_delim
31697 fd_user!$fd_user$ac_delim
31698 fd_group!$fd_group$ac_delim
31699 SBINPERM!$SBINPERM$ac_delim
31700 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31701 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31702 SQL_BINDIR!$SQL_BINDIR$ac_delim
31703 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31704 uncomment_dbi!$uncomment_dbi$ac_delim
31705 DB_PROG!$DB_PROG$ac_delim
31706 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31707 cats!$cats$ac_delim
31708 DB_TYPE!$DB_TYPE$ac_delim
31709 GETCONF!$GETCONF$ac_delim
31710 XMKMF!$XMKMF$ac_delim
31711 X_CFLAGS!$X_CFLAGS$ac_delim
31712 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31713 X_LIBS!$X_LIBS$ac_delim
31714 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31715 LIBOBJS!$LIBOBJS$ac_delim
31716 FDLIBS!$FDLIBS$ac_delim
31717 DEBUG!$DEBUG$ac_delim
31718 DINCLUDE!$DINCLUDE$ac_delim
31719 DLIB!$DLIB$ac_delim
31720 DB_LIBS!$DB_LIBS$ac_delim
31721 WCFLAGS!$WCFLAGS$ac_delim
31722 WLDFLAGS!$WLDFLAGS$ac_delim
31723 WRAPLIBS!$WRAPLIBS$ac_delim
31724 OBJLIST!$OBJLIST$ac_delim
31725 hostname!$hostname$ac_delim
31726 TAPEDRIVE!$TAPEDRIVE$ac_delim
31727 PSCMD!$PSCMD$ac_delim
31728 WIN32!$WIN32$ac_delim
31729 MACOSX!$MACOSX$ac_delim
31730 DISTNAME!$DISTNAME$ac_delim
31731 DISTVER!$DISTVER$ac_delim
31732 LTLIBOBJS!$LTLIBOBJS$ac_delim
31735 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
31737 elif $ac_last_try; then
31738 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31739 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31740 { (exit 1); exit 1; }; }
31742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31746 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31747 if test -n "$ac_eof"; then
31748 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31749 ac_eof=`expr $ac_eof + 1`
31752 cat >>$CONFIG_STATUS <<_ACEOF
31753 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31757 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31758 s/^/s,@/; s/!/@,|#_!!_#|/
31761 s/'"$ac_delim"'$/,g/; t
31763 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31764 ' >>$CONFIG_STATUS <conf$$subs.sed
31765 rm -f conf$$subs.sed
31766 cat >>$CONFIG_STATUS <<_ACEOF
31773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31775 # trailing colons and then remove the whole line if VPATH becomes empty
31776 # (actually we leave an empty line to preserve line numbers).
31777 if test "x$srcdir" = x.; then
31778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31779 s/:*\$(srcdir):*/:/
31780 s/:*\${srcdir}:*/:/
31782 s/^\([^=]*=[ ]*\):*/\1/
31788 cat >>$CONFIG_STATUS <<\_ACEOF
31789 fi # test -n "$CONFIG_FILES"
31792 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31795 :[FHLC]) ac_mode=$ac_tag; continue;;
31797 case $ac_mode$ac_tag in
31799 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31800 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31801 { (exit 1); exit 1; }; };;
31802 :[FH]-) ac_tag=-:-;;
31803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31820 -) ac_f="$tmp/stdin";;
31821 *) # Look for the file first in the build tree, then in the source tree
31822 # (if the path is not absolute). The absolute path cannot be DOS-style,
31823 # because $ac_f cannot contain `:'.
31827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31829 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31830 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31831 { (exit 1); exit 1; }; };;
31833 ac_file_inputs="$ac_file_inputs $ac_f"
31836 # Let's still pretend it is `configure' which instantiates (i.e., don't
31837 # use $as_me), people would be surprised to read:
31838 # /* config.h. Generated by config.status. */
31839 configure_input="Generated from "`IFS=:
31840 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31841 if test x"$ac_file" != x-; then
31842 configure_input="$ac_file. $configure_input"
31843 { echo "$as_me:$LINENO: creating $ac_file" >&5
31844 echo "$as_me: creating $ac_file" >&6;}
31848 *:-:* | *:-) cat >"$tmp/stdin";;
31853 ac_dir=`$as_dirname -- "$ac_file" ||
31854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31855 X"$ac_file" : 'X\(//\)[^/]' \| \
31856 X"$ac_file" : 'X\(//\)$' \| \
31857 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31863 /^X\(\/\/\)[^/].*/{
31878 -*) as_dir=./$as_dir;;
31880 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31884 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31885 *) as_qdir=$as_dir;;
31887 as_dirs="'$as_qdir' $as_dirs"
31888 as_dir=`$as_dirname -- "$as_dir" ||
31889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31890 X"$as_dir" : 'X\(//\)[^/]' \| \
31891 X"$as_dir" : 'X\(//\)$' \| \
31892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31898 /^X\(\/\/\)[^/].*/{
31911 test -d "$as_dir" && break
31913 test -z "$as_dirs" || eval "mkdir $as_dirs"
31914 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31915 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31916 { (exit 1); exit 1; }; }; }
31920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31923 # A ".." for each directory in $ac_dir_suffix.
31924 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31925 case $ac_top_builddir_sub in
31926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31930 ac_abs_top_builddir=$ac_pwd
31931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31932 # for backward compatibility:
31933 ac_top_builddir=$ac_top_build_prefix
31936 .) # We are building in place.
31938 ac_top_srcdir=$ac_top_builddir_sub
31939 ac_abs_top_srcdir=$ac_pwd ;;
31940 [\\/]* | ?:[\\/]* ) # Absolute name.
31941 ac_srcdir=$srcdir$ac_dir_suffix;
31942 ac_top_srcdir=$srcdir
31943 ac_abs_top_srcdir=$srcdir ;;
31944 *) # Relative name.
31945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31946 ac_top_srcdir=$ac_top_build_prefix$srcdir
31947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31960 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31964 cat >>$CONFIG_STATUS <<\_ACEOF
31965 # If the template does not know about datarootdir, expand it.
31966 # FIXME: This hack should be removed a few years after 2.60.
31967 ac_datarootdir_hack=; ac_datarootdir_seen=
31969 case `sed -n '/datarootdir/ {
31978 ' $ac_file_inputs` in
31979 *datarootdir*) ac_datarootdir_seen=yes;;
31980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31981 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31982 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31984 cat >>$CONFIG_STATUS <<_ACEOF
31985 ac_datarootdir_hack='
31986 s&@datadir@&$datadir&g
31987 s&@docdir@&$docdir&g
31988 s&@infodir@&$infodir&g
31989 s&@localedir@&$localedir&g
31990 s&@mandir@&$mandir&g
31991 s&\\\${datarootdir}&$datarootdir&g' ;;
31995 # Neutralize VPATH when `$srcdir' = `.'.
31996 # Shell code in configure.ac might set extrasub.
31997 # FIXME: do we really want to maintain this feature?
31998 cat >>$CONFIG_STATUS <<_ACEOF
32002 cat >>$CONFIG_STATUS <<\_ACEOF
32004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32005 s&@configure_input@&$configure_input&;t t
32006 s&@top_builddir@&$ac_top_builddir_sub&;t t
32007 s&@srcdir@&$ac_srcdir&;t t
32008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32009 s&@top_srcdir@&$ac_top_srcdir&;t t
32010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32011 s&@builddir@&$ac_builddir&;t t
32012 s&@abs_builddir@&$ac_abs_builddir&;t t
32013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32014 s&@INSTALL@&$ac_INSTALL&;t t
32015 $ac_datarootdir_hack
32016 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32019 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32021 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32022 which seems to be undefined. Please make sure it is defined." >&5
32023 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32024 which seems to be undefined. Please make sure it is defined." >&2;}
32028 -) cat "$tmp/out"; rm -f "$tmp/out";;
32029 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32038 # Transform confdefs.h into a sed script `conftest.defines', that
32039 # substitutes the proper values into config.h.in to produce config.h.
32040 rm -f conftest.defines conftest.tail
32041 # First, append a space to every undef/define line, to ease matching.
32042 echo 's/$/ /' >conftest.defines
32043 # Then, protect against being on the right side of a sed subst, or in
32044 # an unquoted here document, in config.status. If some macros were
32045 # called several times there might be several #defines for the same
32046 # symbol, which is useless. But do not sort them, since the last
32047 # AC_DEFINE must be honored.
32048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32049 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32050 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32051 # PARAMS is the parameter list in the macro definition--in most cases, it's
32052 # just an empty string.
32053 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32054 ac_dB='\\)[ (].*,\\1define\\2'
32062 s/^[ ]*#[ ]*define[ ][ ]*//
32067 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32068 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32069 ' >>conftest.defines
32071 # Remove the space that was appended to ease matching.
32072 # Then replace #undef with comments. This is necessary, for
32073 # example, in the case of _POSIX_SOURCE, which is predefined and required
32074 # on some systems where configure will not decide to define it.
32075 # (The regexp can be short, since the line contains either #define or #undef.)
32077 s,^[ #]*u.*,/* & */,' >>conftest.defines
32079 # Break up conftest.defines:
32080 ac_max_sed_lines=50
32082 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32083 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32084 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32086 ac_in='$ac_file_inputs'
32087 ac_out='"$tmp/out1"'
32088 ac_nxt='"$tmp/out2"'
32092 # Write a here document:
32093 cat >>$CONFIG_STATUS <<_ACEOF
32094 # First, check the format of the line:
32095 cat >"\$tmp/defines.sed" <<\\CEOF
32096 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32097 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32101 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32103 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32104 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32105 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32106 grep . conftest.tail >/dev/null || break
32107 rm -f conftest.defines
32108 mv conftest.tail conftest.defines
32110 rm -f conftest.defines conftest.tail
32112 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32113 cat >>$CONFIG_STATUS <<\_ACEOF
32114 if test x"$ac_file" != x-; then
32115 echo "/* $configure_input */" >"$tmp/config.h"
32116 cat "$ac_result" >>"$tmp/config.h"
32117 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32118 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32119 echo "$as_me: $ac_file is unchanged" >&6;}
32122 mv "$tmp/config.h" $ac_file
32125 echo "/* $configure_input */"
32131 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32132 echo "$as_me: executing $ac_file commands" >&6;}
32137 case $ac_file$ac_mode in
32139 for ac_file in $CONFIG_FILES; do
32140 # Support "outfile[:infile[:infile...]]"
32142 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32144 # PO directories have a Makefile.in generated from Makefile.in.in.
32145 case "$ac_file" in */Makefile.in)
32146 # Adjust a relative srcdir.
32147 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32148 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32149 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32150 # In autoconf-2.13 it is called $ac_given_srcdir.
32151 # In autoconf-2.50 it is called $srcdir.
32152 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32153 case "$ac_given_srcdir" in
32154 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32155 /*) top_srcdir="$ac_given_srcdir" ;;
32156 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32158 # Treat a directory as a PO directory if and only if it has a
32159 # POTFILES.in file. This allows packages to have multiple PO
32160 # directories under different names or in different locations.
32161 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32162 rm -f "$ac_dir/POTFILES"
32163 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32164 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32165 POMAKEFILEDEPS="POTFILES.in"
32166 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32167 # on $ac_dir but don't depend on user-specified configuration
32169 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32170 # The LINGUAS file contains the set of available languages.
32171 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32172 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32174 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32175 # Hide the ALL_LINGUAS assigment from automake.
32176 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32177 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32179 # The set of available languages was given in configure.in.
32180 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32183 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32184 # Compute UPDATEPOFILES
32185 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32186 # Compute DUMMYPOFILES
32187 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32189 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32190 case "$ac_given_srcdir" in
32192 *) srcdirpre='$(srcdir)/' ;;
32198 for lang in $ALL_LINGUAS; do
32199 POFILES="$POFILES $srcdirpre$lang.po"
32200 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32201 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32202 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32204 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32205 # environment variable.
32207 if test -n "$ALL_LINGUAS"; then
32208 for presentlang in $ALL_LINGUAS; do
32210 if test "%UNSET%" != "$LINGUAS"; then
32211 desiredlanguages="$LINGUAS"
32213 desiredlanguages="$ALL_LINGUAS"
32215 for desiredlang in $desiredlanguages; do
32216 # Use the presentlang catalog if desiredlang is
32217 # a. equal to presentlang, or
32218 # b. a variant of presentlang (because in this case,
32219 # presentlang can be used as a fallback for messages
32220 # which are not translated in the desiredlang catalog).
32221 case "$desiredlang" in
32222 "$presentlang"*) useit=yes;;
32225 if test $useit = yes; then
32226 INST_LINGUAS="$INST_LINGUAS $presentlang"
32231 if test -n "$INST_LINGUAS"; then
32232 for lang in $INST_LINGUAS; do
32233 CATALOGS="$CATALOGS $lang.gmo"
32236 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32237 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"
32238 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32239 if test -f "$f"; then
32241 *.orig | *.bak | *~) ;;
32242 *) cat "$f" >> "$ac_dir/Makefile" ;;
32257 { (exit 0); exit 0; }
32259 chmod +x $CONFIG_STATUS
32260 ac_clean_files=$ac_clean_files_save
32263 # configure is writing to config.log, and then calls config.status.
32264 # config.status does its own redirection, appending to config.log.
32265 # Unfortunately, on DOS this fails, as config.log is still kept open
32266 # by configure, so config.status won't be able to write to it; its
32267 # output is simply discarded. So we exec the FD to /dev/null,
32268 # effectively closing config.log, so it can be properly (re)opened and
32269 # appended to by config.status. When coming back to configure, we
32270 # need to make the FD available again.
32271 if test "$no_create" != yes; then
32273 ac_config_status_args=
32274 test "$silent" = yes &&
32275 ac_config_status_args="$ac_config_status_args --quiet"
32277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32280 # would make configure fail if this is the last instruction.
32281 $ac_cs_success || { (exit 1); exit 1; }
32285 if test "${support_bat}" = "yes" ; then
32286 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32287 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32293 if test "x$QMAKEQT4" != "xnone"; then
32298 chmod 755 install_conf_file build-depkgs-qt-console
32299 echo "Creating bat Makefile"
32305 echo "Doing make of dependencies"
32306 ${MAKE:-make} depend
32309 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32310 chmod 755 dvd-handler dvd-simulator
32311 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32315 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
32316 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
32320 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32321 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32323 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32324 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32326 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32327 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32329 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32330 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32332 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32333 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32335 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32336 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32338 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32339 chmod 755 $c/sqlite
32342 chmod 755 src/win32/build-depkgs-mingw32
32346 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32347 largefile_support="yes"
32351 # A whole lot of hand springs to get the compiler version.
32352 # This is because gcc changed the output in version 3.0
32354 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32355 if test "x${CCVERSION}" = "x" ; then
32356 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32358 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32359 if test x"${CXXVERSION}" = x ; then
32360 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32363 if test "x${subsysdir}" = "x${sbindir}" ; then
32366 echo "You have set --sbindir and --with-subsys-dir"
32367 echo " both equal to: ${subsysdir} "
32368 echo " This is not permitted. Please reconfigure."
32370 echo "Aborting configuration ..."
32376 if test "x${db_type}" = "xInternal" ; then
32379 echo "You have not specified either --enable-client-only or one of the"
32380 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32381 echo " This is not permitted. Please reconfigure."
32383 echo "Aborting the configuration ..."
32390 Configuration on `date`:
32392 Host: $host -- ${DISTNAME} ${DISTVER}
32393 Bacula version: ${VERSION} (${DATE})
32394 Source code location: ${srcdir}
32395 Install binaries: ${sbindir}
32396 Install config files: ${sysconfdir}
32397 Scripts directory: ${scriptdir}
32398 Archive directory: ${archivedir}
32399 Working directory: ${working_dir}
32400 PID directory: ${piddir}
32401 Subsys directory: ${subsysdir}
32402 Man directory: ${mandir}
32403 Data directory: ${datadir}
32404 C Compiler: ${CC} ${CCVERSION}
32405 C++ Compiler: ${CXX} ${CXXVERSION}
32406 Compiler flags: ${WCFLAGS} ${CFLAGS}
32407 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32409 Statically Linked Tools: ${support_static_tools}
32410 Statically Linked FD: ${support_static_fd}
32411 Statically Linked SD: ${support_static_sd}
32412 Statically Linked DIR: ${support_static_dir}
32413 Statically Linked CONS: ${support_static_cons}
32414 Database type: ${db_type}
32415 Database port: ${db_port}
32416 Database lib: ${DB_LIBS}
32417 Database name: ${db_name}
32418 Database user: ${db_user}
32420 Job Output Email: ${job_email}
32421 Traceback Email: ${dump_email}
32422 SMTP Host Address: ${smtp_host}
32424 Director Port: ${dir_port}
32425 File daemon Port: ${fd_port}
32426 Storage daemon Port: ${sd_port}
32428 Director User: ${dir_user}
32429 Director Group: ${dir_group}
32430 Storage Daemon User: ${sd_user}
32431 Storage DaemonGroup: ${sd_group}
32432 File Daemon User: ${fd_user}
32433 File Daemon Group: ${fd_group}
32435 SQL binaries Directory ${SQL_BINDIR}
32437 Large file support: $largefile_support
32438 Bacula conio support: ${got_conio} ${CONS_LIBS}
32439 readline support: ${got_readline} ${PRTREADLINE_SRC}
32440 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32441 TLS support: ${support_tls}
32442 Encryption support: ${support_crypto}
32443 ZLIB support: ${have_zlib}
32444 enable-smartalloc: ${support_smartalloc}
32445 bat support: ${support_bat} ${QWT_LDFLAGS}
32446 enable-gnome: ${support_gnome} ${gnome_version}
32447 enable-bwx-console: ${support_wx_console} ${wx_version}
32448 enable-tray-monitor: ${support_tray_monitor}
32449 client-only: ${build_client_only}
32450 build-dird: ${build_dird}
32451 build-stored: ${build_stored}
32452 ACL support: ${have_acl}
32453 Python support: ${support_python} ${PYTHON_LIBS}
32454 Batch insert enabled: ${support_batch_insert}